/* ================================================================
   OFPIC — Directorio de Fotógrafos · Premium Light Theme v2
   Override for dark theme in ofpic-pages.css (L3079-3451)
   Palette: #1a1a1a neutral · #B89A5B warm gold · #FAFAFA surface
   ================================================================ */

/* ── Page background ────────────────────────────────────────── */
.fotografos-page {
  background: var(--color-bg);
}

/* ── Hero ────────────────────────────────────────────────────── */
.fotografos-hero {
  background:
    linear-gradient(180deg,
      var(--color-surface-soft) 0%,
      var(--color-bg) 100%);
  padding: 100px 0 70px;
  border-bottom: 1px solid var(--color-border);
}

.fotografos-hero::before {
  background: radial-gradient(
    circle,
    var(--accent-warm-light) 0%,
    transparent 70%
  );
  opacity: 0.6;
}

.fotografos-hero-content {
  max-width: 720px;
}

.fotografos-hero h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.fotografos-hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-warm) 0%, #C9A84C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fotografos-hero p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Search box ─────────────────────────────────────────────── */
.fotografos-search-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: none;
}

.search-field label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.search-field select,
.search-field input[type="text"] {
  padding: 14px 16px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.search-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B6B6B' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: var(--color-surface-soft);
  cursor: pointer;
}

.search-field select:focus,
.search-field input:focus {
  outline: none;
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 3px var(--accent-warm-light);
  background-color: var(--color-surface);
}

.search-field select option {
  background: var(--color-surface);
  color: var(--color-text);
}

.search-field input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.btn-search {
  padding: 14px 32px;
  background: var(--color-text);
  border: none;
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  height: auto;
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.18);
}

.btn-search:hover {
  background: var(--accent-warm);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-warm-shadow);
}

/* ── Results header ─────────────────────────────────────────── */
.fotografos-results {
  padding: 60px 0 100px;
  background: var(--color-bg);
}

.results-count {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-muted);
}

.results-count strong {
  color: var(--accent-warm);
  font-weight: 700;
}

/* ── Photographer cards ─────────────────────────────────────── */
.fotografos-grid {
  gap: 28px;
}

.fotografo-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease-out);
}

.fotografo-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-warm);
  box-shadow:
    0 12px 32px rgba(26, 26, 26, 0.08),
    0 0 0 1px var(--accent-warm);
}

.fotografo-avatar {
  height: 230px;
  background: var(--color-surface-soft);
}

.fotografo-avatar::after {
  background: linear-gradient(
    to top,
    var(--color-surface) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  height: 80px;
}

.fotografo-info {
  padding: 24px 24px 28px;
  margin-top: -24px;
}

.fotografo-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.fotografo-location {
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 13px;
}

.fotografo-location i {
  color: var(--accent-warm);
  font-size: 12px;
}

.fotografo-description {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ── "Ver perfil" button ────────────────────────────────────── */
.btn-ver-perfil {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  transition: all var(--duration-base) var(--ease-out);
}

.fotografo-card:hover .btn-ver-perfil {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.18);
}

/* ── No results ─────────────────────────────────────────────── */
.no-results {
  background: var(--color-surface-soft);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-xl);
}

.no-results-icon {
  background: var(--accent-warm-light);
}

.no-results-icon i {
  color: var(--accent-warm);
}

.no-results h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: 700;
}

.no-results p {
  color: var(--color-text-muted);
}

/* ── Pagination ─────────────────────────────────────────────── */
.fotografos-pagination .btn-pagina,
.fotografos-pagination .pagina-activo {
  background: var(--color-surface) !important;
  color: var(--color-text-muted) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-body) !important;
}

.fotografos-pagination .btn-pagina:hover,
.fotografos-pagination .pagina-activo:hover {
  background: var(--color-surface-soft) !important;
  color: var(--color-text) !important;
  border-color: var(--color-text) !important;
}

.fotografos-pagination .pagina-inactivo {
  background: var(--color-text) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.18) !important;
}

.fotografos-pagination .btn,
.fotografos-pagination a,
.fotografos-pagination span {
  border-radius: var(--radius-md) !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 992px) {
  .fotografos-hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .fotografos-hero {
    padding: 70px 0 50px;
  }

  .fotografos-hero h1 {
    font-size: 32px;
  }

  .fotografos-search-box {
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  .btn-search {
    width: 100%;
    justify-content: center;
  }

  .fotografo-info {
    padding: 20px 20px 24px;
  }
}

@media (max-width: 480px) {
  .fotografos-hero h1 {
    font-size: 28px;
  }

  .fotografos-hero p {
    font-size: 15px;
  }

  .fotografo-avatar {
    height: 180px;
  }
}

/* ================================================================
   Photographer Detail Page (detallar.phtml)
   Override dark theme in ofpic-pages.css (L3453-3856)
   ================================================================ */

/* ── Container ──────────────────────────────────────────────── */
.photographer-profile {
  max-width: 960px;
  padding: 40px 20px 60px;
  font-family: var(--font-body);
}

/* ── Profile header ─────────────────────────────────────────── */
.profile-header {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.profile-header::before {
  display: none;   /* php syntax in static CSS — broken anyway */
}

/* ── Avatar ─────────────────────────────────────────────────── */
.profile-avatar img {
  width: 110px;
  height: 110px;
  border: 3px solid var(--accent-warm);
  box-shadow: 0 6px 24px var(--accent-warm-shadow);
}

/* ── Name & location ────────────────────────────────────────── */
.profile-info h1 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 1.85em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.profile-location {
  color: var(--color-text-muted);
  font-size: 0.95em;
}

.profile-location i {
  color: var(--accent-warm);
}

/* ── Social links ───────────────────────────────────────────── */
.profile-social a {
  width: 36px;
  height: 36px;
  background: var(--accent-warm-light);
  color: var(--accent-warm);
  font-size: 1em;
  border-radius: 50%;
}

.profile-social a:hover {
  background: var(--accent-warm);
  color: #fff;
  transform: scale(1.12);
}

/* ── Website pill ───────────────────────────────────────────── */
.profile-web {
  background: var(--color-text);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.profile-web:hover {
  background: var(--accent-warm);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-warm-shadow);
}

/* ── Description ────────────────────────────────────────────── */
.profile-description {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--accent-warm);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 32px;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Section titles ─────────────────────────────────────────── */
.section-title h2 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-title .icon {
  width: 38px;
  height: 38px;
  background: var(--accent-warm);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1.1em;
}

/* ── Portfolio grid ─────────────────────────────────────────── */
.portfolio-section {
  margin-bottom: 40px;
}

.portfolio-grid {
  gap: 14px;
}

.portfolio-item {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.portfolio-item:hover {
  box-shadow:
    0 12px 32px rgba(26, 26, 26, 0.1),
    0 0 0 2px var(--accent-warm);
}

.portfolio-item .overlay {
  background: linear-gradient(to top, rgba(26, 26, 26, 0.7) 0%, transparent 60%);
}

.portfolio-item .overlay span {
  background: var(--accent-warm);
  width: 44px;
  height: 44px;
  font-size: 1.6em;
}

/* ── CTA banner ─────────────────────────────────────────────── */
.cta-section {
  background: var(--color-text);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  margin-bottom: 40px;
  border: none;
}

.cta-section h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.35em;
  font-weight: 700;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 15px;
}

.cta-section a {
  background: var(--accent-warm);
  color: #fff;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.cta-section a:hover {
  background: var(--accent-warm-hover);
  transform: scale(1.05);
  box-shadow: 0 8px 24px var(--accent-warm-shadow);
  color: #fff;
}

/* ── Event cards ────────────────────────────────────────────── */
.events-section {
  margin-bottom: 40px;
}

.events-grid {
  gap: 24px;
}

.event-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.35s var(--ease-out);
}

.event-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-warm);
  box-shadow:
    0 16px 40px rgba(26, 26, 26, 0.08),
    0 0 0 1px var(--accent-warm);
}

.event-card .event-image {
  height: 190px;
}

.event-card .event-image .photo-count {
  background: var(--color-text);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.event-card .event-image .private-badge {
  background: rgba(26, 26, 26, 0.75);
  color: #fff;
  font-size: 0.78em;
  border-radius: var(--radius-sm);
}

.event-card .event-details {
  padding: 18px 20px 14px;
}

.event-card .event-details h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 1.05em;
  font-weight: 700;
}

.event-card .event-details .event-meta {
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.85em;
}

.event-card .event-details .event-meta i {
  color: var(--accent-warm);
}

.event-card .view-btn {
  background: var(--color-surface-soft);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 0.88em;
  font-weight: 700;
  padding: 13px;
  letter-spacing: 0.02em;
  border-top: 1px solid var(--color-border);
  transition: all var(--duration-base) var(--ease-out);
}

.event-card .view-btn:hover {
  background: var(--color-text);
  color: #fff;
  opacity: 1;
}

.event-card .view-btn i {
  margin-right: 4px;
}

/* ── Empty state ────────────────────────────────────────────── */
.photographer-profile .empty-state {
  padding: 50px 40px;
  color: var(--color-text-muted);
}

.photographer-profile .empty-state i {
  color: var(--accent-warm);
  font-size: 2.8em;
  opacity: 0.5;
}

.photographer-profile .empty-state p {
  font-family: var(--font-body);
  font-size: 15px;
}

/* ── Pagination (detail page) ───────────────────────────────── */
.photographer-profile .paginacion a,
.photographer-profile .paginacion span {
  background: var(--color-surface) !important;
  color: var(--color-text-muted) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-body) !important;
  padding: 8px 14px !important;
  transition: all var(--duration-fast) !important;
}

.photographer-profile .paginacion a:hover {
  border-color: var(--color-text) !important;
  color: var(--color-text) !important;
  background: var(--color-surface-soft) !important;
}

.photographer-profile .paginacion .pagina-inactivo,
.photographer-profile .paginacion .active {
  background: var(--color-text) !important;
  color: #fff !important;
  border-color: var(--color-text) !important;
}

/* ── Detail page responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .photographer-profile {
    padding: 24px 16px 48px;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }

  .profile-social {
    justify-content: center;
  }

  .profile-info h1 {
    font-size: 1.5em;
  }

  .profile-web-container {
    text-align: center;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 28px 20px;
  }

  .cta-section h3 {
    font-size: 1.15em;
  }
}

@media (max-width: 480px) {
  .profile-avatar img {
    width: 90px;
    height: 90px;
  }

  .profile-info h1 {
    font-size: 1.3em;
  }

  .event-card .event-image {
    height: 160px;
  }
}
