@import url('../colors.css');
@import url('../fonts.css');

/* Status do anúncio e botão de edição (copiado do ad-card.css) */
.admin-badges-container {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 100;
}

.status-badge {
  background-color: var(--yellow-color);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--black-color);
  display: inline-block;
}

.highlight-badge {
  background-color: #28a745;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.edit-button {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0.5rem;
  color: var(--black-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--yellow-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 0;
  border: 1px solid var(--yellow-color);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.edit-button:hover {
  background-color: var(--yellow-color-light);
  border-color: var(--yellow-color-light);
}

/* Layout principal */
.ads-details-carousel {
  position: relative;
}

.ads-details-img {
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
}

/* Miniaturas */
.ads-thumbnails {
  max-width: 100%;
  overflow-x: auto;
}

.ads-thumbnail {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.ads-thumbnail:hover {
  border-color: var(--main-color);
  opacity: 0.8;
}

.ads-thumbnail.active {
  border-color: var(--main-color);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(1, 30, 36, 0.3);
}

/* Características */
.ads-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid var(--gray-stroke-color);
}

.ads-feature i {
  color: var(--main-color);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.ads-feature .fw-bold {
  font-size: 1.1rem;
  color: var(--black-color);
}

/* Sidebar */
.ads-sidebar {
  position: sticky;
  top: 100px;
}

.ads-price-card {
  border: 2px solid var(--main-color);
  border-radius: 4px;
}

.ads-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 8px;
}

/* Informações adicionais */
.ads-info-item {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.ads-info-item:last-child {
  border-bottom: none;
}

/* Badge code style */
.ad-card-code {
  background-color: var(--yellow-color);
  color: var(--black-color);
  font-weight: 500;
}

/* Cards */
.card {
  border: 1px solid var(--gray-stroke-color);
  border-radius: 4px;
  box-shadow: none;
}

.card-header {
  background: #f8f9fa;
  border-bottom: 1px solid var(--gray-stroke-color);
  border-radius: 4px 4px 0 0 !important;
  padding: 15px 20px;
}

.card-body {
  font-size: 0.9rem;
  padding: 20px;
}

/* Badges */
.badge {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 4px;
}

/* Botões */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 500;
  padding: 12px 20px;
  font-size: 0.95rem;
  height: 42px;
  width: auto;
}

.btn-success {
  background: var(--green-color);
  border-color: var(--green-color);
}

.btn-success:hover {
  background: var(--green-color-light);
  border-color: var(--green-color-light);
}

.btn-dark {
  background: var(--main-color);
  border-color: var(--main-color);
  margin: 0;
}

.btn-dark:hover {
  background: var(--main-color);
  border-color: var(--main-color);
  opacity: 0.9;
}

/* Títulos */
h2.fw-bold {
  font-size: 1.8rem;
  color: var(--black-color);
  line-height: 1.3;
}

h4.fw-bold {
  font-size: 1.4rem;
  color: var(--black-color);
}

h5.fw-bold,
h6.fw-bold {
  color: var(--black-color);
}

.text-main-color {
  color: var(--main-color);
}

/* Responsividade */
@media (max-width: 768px) {
  .ads-details-img {
    height: 250px;
  }

  .ads-price {
    font-size: 1.6rem;
  }

  .ads-feature {
    padding: 12px;
  }

  .card-body {
    padding: 15px;
  }

  h2.fw-bold {
    font-size: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .ads-details-img {
    height: 200px;
  }

  .ads-thumbnail {
    height: 50px;
  }

  .ads-feature {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .ads-feature i {
    font-size: 1.5rem;
  }
}
