/* ========================================================
   ANDRES KEIL · STUDIO PORTRAITS LUXURY PORTFOLIO CSS
   ======================================================== */

:root {
  --bg-core: #060709;
  --bg-surface: #0e1015;
  --bg-card: #12151c;
  --bg-card-hover: #161a24;
  --bg-glass: rgba(10, 12, 16, 0.75);
  
  --gold-primary: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-subtle: #9c8230;
  --gold-light: #f5e6b8;
  
  --text-main: #f5f6f8;
  --text-secondary: #9da4b2;
  --text-muted: #5e6473;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-gold: rgba(212, 175, 55, 0.25);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-brand: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-core);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-core);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Subtle Lighting in Background */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 50vh;
  background: radial-gradient(circle at 50% 10%, rgba(212, 175, 55, 0.05) 0%, rgba(14, 16, 21, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* ========================================================
   HEADER
   ======================================================== */
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 7, 9, 0.85);
  backdrop-filter: blur(20px);
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--text-main);
  transition: var(--transition);
}

.brand-title:hover {
  color: var(--gold-primary);
}

.brand-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--gold-primary);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}

.header-stats {
  display: flex;
  gap: 16px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ========================================================
   HERO SECTION
   ======================================================== */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 80px 32px 50px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-label {
  font-family: var(--font-brand);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 24px;
}

.hero-headline em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #ffffff 20%, var(--gold-primary) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hl-tag {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* ========================================================
   STICKY CONTROLS & FILTER BAR
   ======================================================== */
.controls-section {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 7, 9, 0.92);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 32px;
  margin-bottom: 40px;
  transition: var(--transition);
}

.controls-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Search Box */
.search-box {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 360px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 38px 10px 42px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 15px var(--gold-glow);
}

.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Filter Pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.pill.active {
  background: var(--gold-primary);
  color: #060709;
  font-weight: 600;
  border-color: var(--gold-primary);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.pill .badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
}

.pill.active .badge {
  background: rgba(0, 0, 0, 0.18);
  color: #060709;
}

/* View Controls */
.view-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.results-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.density-toggles {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
}

.density-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.density-btn.active, .density-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
}

/* ========================================================
   GALLERY CONTAINER & MASONRY GRID
   ======================================================== */
.gallery-container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 32px 100px;
  min-height: 60vh;
}

/* CSS Column-based Masonry Grid */
.gallery-grid {
  column-gap: 24px;
}

.gallery-grid.spacious {
  column-count: 4;
}

.gallery-grid.dense {
  column-count: 6;
}

@media (max-width: 1400px) {
  .gallery-grid.spacious { column-count: 3; }
  .gallery-grid.dense { column-count: 4; }
}

@media (max-width: 900px) {
  .gallery-grid.spacious { column-count: 2; }
  .gallery-grid.dense { column-count: 3; }
}

@media (max-width: 600px) {
  .gallery-grid.spacious, .gallery-grid.dense { column-count: 1; }
}

/* Photo Card */
.photo-card {
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: var(--transition);
  transform: translateZ(0);
}

.photo-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-hover);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #090b0e;
}

.card-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  loading: lazy;
}

.photo-card:hover .card-img {
  transform: scale(1.04);
}

/* Card Gradient Overlay on Hover */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 7, 9, 0.95) 0%, rgba(6, 7, 9, 0.4) 40%, transparent 80%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px;
  pointer-events: none;
}

.photo-card:hover .card-overlay {
  opacity: 1;
}

.card-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.card-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
}

.card-action-hint {
  font-size: 0.75rem;
  color: var(--gold-primary);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.05em;
}

/* Loading State */
.loading-state, .empty-state {
  text-align: center;
  padding: 80px 20px;
  width: 100%;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================================
   FULLSCREEN LIGHTBOX MODAL
   ======================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.96);
  backdrop-filter: blur(28px);
}

.lightbox-content {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Lightbox Header */
.lightbox-header {
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-tag {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  margin-top: 2px;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lightbox-counter {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-right: 8px;
}

.lb-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lb-btn:hover {
  background: var(--gold-primary);
  color: #060709;
  border-color: var(--gold-primary);
}

/* Stage */
.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

.lightbox-media-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
}

.lb-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 7, 9, 0.6);
}

.lb-loader.active {
  display: flex;
}

/* Nav Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18, 21, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 20;
}

.nav-btn:hover {
  background: var(--gold-primary);
  color: #060709;
  border-color: var(--gold-primary);
  transform: translateY(-50%) scale(1.08);
}

.prev-btn { left: 32px; }
.next-btn { right: 32px; }

/* Filmstrip bottom carousel */
.lightbox-filmstrip-wrapper {
  padding: 16px 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 16, 0.85);
  overflow-x: auto;
}

.lightbox-filmstrip {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.filmstrip-thumb {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.45;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.filmstrip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filmstrip-thumb:hover {
  opacity: 0.8;
  border-color: rgba(255, 255, 255, 0.3);
}

.filmstrip-thumb.active {
  opacity: 1;
  border-color: var(--gold-primary);
  transform: scale(1.1);
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #040507;
  padding: 60px 32px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-brand);
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.footer-note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 20px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #060709;
}

::-webkit-scrollbar-thumb {
  background: #20242e;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Person Selector Dropdown & Akt Nav Pill */
.akt-nav-btn:hover {
  background: var(--gold-primary) !important;
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 20px var(--gold-glow);
}
.akt-nav-btn:hover .stat-label {
  color: #060709 !important;
}

.person-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.person-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.person-select:focus, .person-select:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
}

.person-select option {
  background: #0e1015;
  color: #fff;
  padding: 8px;
}
