/* gallery.css — Avant-Garde Black & White Luxury Digital Gallery for 757 (Mugurel Emanuel Manea) */

:root {
  /* Ultra-Modern High-Contrast Monochromatic Theme */
  --bg-primary: #030305;
  --bg-surface: #090a0e;
  --bg-card: #0f1117;
  --bg-elevated: #161822;
  --bg-overlay: rgba(3, 3, 5, 0.95);
  
  --border: rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-hover: rgba(255, 255, 255, 0.45);
  
  --text-primary: #ffffff;
  --text-secondary: #a3a8b7;
  --text-muted: #5e6475;
  --text-on-accent: #030305;

  --accent-gold: #ffffff;
  --accent-gold-glow: rgba(255, 255, 255, 0.22);
  --accent-rust: #d6d9e2;
  --accent-cyan: #e2e5eb;
  --accent-silver: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.25);

  --font-serif: 'Cormorant Garamond', 'Cinzel', Georgia, serif;
  --font-display: 'Cinzel', 'Cormorant Garamond', serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', SFMono-Regular, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --transition-fast: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  /* White Cube Minimalist Gallery */
  --bg-primary: #ffffff;
  --bg-surface: #f6f7f9;
  --bg-card: #ffffff;
  --bg-elevated: #ededf0;
  --bg-overlay: rgba(255, 255, 255, 0.97);

  --border: rgba(0, 0, 0, 0.12);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.55);

  --text-primary: #000000;
  --text-secondary: #333333;
  --text-muted: #666666;
  --text-on-accent: #ffffff;

  --accent-gold: #000000;
  --accent-gold-glow: rgba(0, 0, 0, 0.12);
  --accent-rust: #222222;
  --accent-cyan: #444444;
  --accent-silver: #000000;
  --accent-glow: rgba(0, 0, 0, 0.15);
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  background-attachment: fixed;
}

/* Bleeding-Edge Interactive Magnetic Spotlight Cursor */
#ambient-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(750px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(255, 255, 255, 0.038) 0%, transparent 70%);
  transition: opacity 0.3s ease;
}

[data-theme="light"] #ambient-spotlight {
  background: radial-gradient(750px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(0, 0, 0, 0.025) 0%, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Topbar */
.luxury-topbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 0.5rem 1.5rem;
}

.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-tag {
  background: var(--accent-gold);
  color: var(--text-on-accent);
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
}

.topbar-fqdn a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

/* Avant-Garde Kinetic Marquee Ticker */
.kinetic-ticker {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.45rem 0;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  position: relative;
  user-select: none;
}

.ticker-track {
  display: inline-flex;
  animation: tickerFlow 36s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerFlow {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.ticker-item strong {
  color: var(--text-primary);
  font-weight: 700;
}

.ticker-sep {
  color: var(--text-muted);
}

/* Header */
.luxury-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-smooth);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand-group {
  display: flex;
  flex-direction: column;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.brand-sig {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-primary);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  gap: 1.8rem;
}

.nav-item {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 0.2rem;
  transition: color var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
  color: var(--accent-gold);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-gold);
}

.btn-control {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-control:hover {
  border-color: var(--accent-gold);
  background: var(--bg-card);
}

[data-theme="dark"] .icon-light { display: none; }
[data-theme="dark"] .icon-dark { display: inline-flex; }
[data-theme="light"] .icon-dark { display: none; }
[data-theme="light"] .icon-light { display: inline-flex; }

/* Hero */
.hero-section {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% 20%, var(--bg-surface) 0%, var(--bg-primary) 70%);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-glow);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-luxury {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-luxury.primary {
  background: var(--accent-gold);
  color: var(--text-on-accent);
  font-weight: 600;
  border: 1px solid var(--accent-gold);
}

.btn-luxury.primary:hover {
  background: transparent;
  color: var(--accent-gold);
}

.btn-luxury.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-luxury.secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Gallery Wrapper & Controls */
.gallery-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.gallery-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.category-pills {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar { display: none; }

.cat-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-pill:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

.cat-pill.active {
  background: var(--bg-card);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 600;
}

.pill-count {
  font-size: 0.65rem;
  opacity: 0.7;
}

.toolbar-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.65rem 2.2rem 0.65rem 2.5rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--accent-gold);
}

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

.btn-clear.visible { display: block; }

.view-modes {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

.btn-view {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-view:hover {
  color: var(--text-primary);
}

.btn-view.active {
  background: var(--bg-card);
  color: var(--accent-gold);
}

.gallery-feedback {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.restoration-badge {
  color: #34d399;
}

/* Gallery Display Modes */

/* Mode 1: Salon Editorial (Cu separare fizică și plăcuță 3D atârnată de cui) */
.gallery-container.view-editorial {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 3.5rem 2.2rem;
}

.art-card {
  background: transparent;
  border: none;
  overflow: visible;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  perspective: 1200px;
  transform-style: preserve-3d;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* 1. Pictura înrămată pe perete (Cu luciu specular 3D) */
.art-frame {
  position: relative;
  background: #090a0e;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.7), 0 3px 10px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  transform-style: preserve-3d;
}

/* Luciu specular dinamic lichid ce urmărește unghiul luminii */
.card-specular-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.14) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
  border-radius: inherit;
}

.art-card:hover .card-specular-glare {
  opacity: 1;
}

[data-theme="light"] .art-frame {
  background: #ffffff;
  box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .card-specular-glare {
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(0, 0, 0, 0.06) 0%, transparent 60%);
}

.art-card:hover .art-frame {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 26px 52px -10px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .art-card:hover .art-frame {
  border-color: rgba(0, 0, 0, 0.55);
  box-shadow: 0 22px 46px -8px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.art-media {
  position: relative;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.art-media img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-smooth);
}

.art-card:hover .art-media img {
  transform: scale(1.03);
}

.art-badge-overlay {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: rgba(7, 8, 11, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  z-index: 2;
}

/* 2. Mecanism de Atârnare: Cui în perete + Sfoară 3D */
.hanging-rig {
  position: relative;
  width: 100%;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4px 0 0 0;
  pointer-events: none;
  z-index: 3;
}

/* Cuiul bătut în perete */
.wall-nail {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  z-index: 5;
}

.nail-shadow {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 75%);
  filter: blur(1.5px);
}

.nail-cap {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #b8bcc8 35%, #424652 75%, #181920 100%);
  box-shadow: 1px 3px 6px rgba(0, 0, 0, 0.75), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .nail-cap {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #d2d5dc 40%, #757984 80%, #202227 100%);
  box-shadow: 1px 3px 6px rgba(0, 0, 0, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.4);
}

/* Sfoara întinsă în V — Cablu de Titan & Argint Împletit */
.hanging-twine {
  width: 100%;
  height: 48px;
  display: block;
  overflow: visible;
}

.twine-cord {
  stroke: #e2e5eb;
  stroke-width: 1.8;
  stroke-dasharray: 4, 1.2;
  stroke-linecap: round;
}

[data-theme="light"] .twine-cord {
  stroke: #333742;
  stroke-width: 1.8;
  stroke-dasharray: 4, 1.2;
}

.twine-shadow {
  stroke: rgba(0, 0, 0, 0.65);
  stroke-width: 2.6;
  stroke-linecap: round;
  filter: blur(1px);
}

[data-theme="light"] .twine-shadow {
  stroke: rgba(0, 0, 0, 0.25);
  stroke-width: 2.2;
  filter: blur(0.8px);
}

/* 3. Plăcuța cu descriere atârnată (3D Cartellino din Obsidian / Oglindă Afumată) */
.art-hanging-tag {
  position: relative;
  background: linear-gradient(160deg, #111319 0%, #07080b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem 1.4rem;
  box-shadow: 0 16px 34px -6px rgba(0, 0, 0, 0.7), 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform-origin: 50% 0%;
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(2.5deg);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.45s cubic-bezier(0.2, 0.9, 0.3, 1), border-color var(--transition-fast);
}

[data-theme="light"] .art-hanging-tag {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.art-card:hover .art-hanging-tag {
  transform: perspective(800px) translateY(3px) rotateX(5deg) rotateZ(-0.8deg);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 24px 46px -6px rgba(0, 0, 0, 0.85), 0 6px 14px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .art-card:hover .art-hanging-tag {
  border-color: rgba(0, 0, 0, 0.45);
  box-shadow: 0 22px 42px -8px rgba(0, 0, 0, 0.22), 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Ocheți metalici la marginea superioară a plăcuței */
.tag-eyelets {
  position: absolute;
  top: -6px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 calc(22.5% - 6px);
  pointer-events: none;
}

.eyelet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #d4a359 0%, #6e4e1a 70%, #150f04 100%);
  border: 1.5px solid #2a1e0b;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6), inset 0 0 2px #000;
  position: relative;
}

.eyelet::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bg-primary);
}

[data-theme="light"] .eyelet {
  background: radial-gradient(circle at 40% 40%, #b39f82 0%, #524433 70%, #17120a 100%);
  border: 1.5px solid #241d14;
}

.archival-stamp {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  opacity: 0.85;
}

[data-theme="light"] .archival-stamp {
  color: #8b6528;
  border-color: #8b6528;
}

.art-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.art-id {
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.art-cat-name {
  color: var(--text-muted);
  font-size: 0.64rem;
}

.art-card-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

.art-critic-snippet {
  font-family: var(--font-sans);
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mode 2: Atelier Imersiv (Scară Mare 1:1) */
.gallery-container.view-immersive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 3rem;
}

.gallery-container.view-immersive .art-media {
  aspect-ratio: auto;
  max-height: 680px;
}

.gallery-container.view-immersive .art-card-title {
  font-size: 1.4rem;
}

.gallery-container.view-immersive .art-critic-snippet {
  -webkit-line-clamp: 4;
}

/* Mode 3: Catalog Muzeal (Ledger) */
.gallery-container.view-ledger {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.gallery-container.view-ledger .art-card {
  flex-direction: row;
  align-items: center;
  padding: 0.6rem 1.2rem;
  gap: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.gallery-container.view-ledger .art-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.gallery-container.view-ledger .art-frame {
  box-shadow: none;
  border: none;
}

.gallery-container.view-ledger .hanging-rig {
  display: none;
}

.gallery-container.view-ledger .art-media {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
}

.gallery-container.view-ledger .art-hanging-tag {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex: 1;
  transform: none !important;
}

.gallery-container.view-ledger .tag-eyelets {
  display: none;
}

.gallery-container.view-ledger .art-card-title {
  font-size: 1rem;
  min-width: 200px;
}

.gallery-container.view-ledger .art-critic-snippet {
  flex: 1;
  -webkit-line-clamp: 1;
  font-size: 0.8rem;
}

/* Pagination */
.gallery-pagination {
  margin-top: 3.5rem;
  text-align: center;
}

/* Thematic Section (Cele 5 Direcții) */
.section-directii, .section-artist, .section-raport {
  padding: 6rem 1.5rem;
  border-top: 1px solid var(--border);
}

.section-container {
  max-width: 1440px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-lead {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.directii-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.directie-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2.2rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.directie-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.directie-index {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent-gold);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}

.directie-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
}

.directie-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.8rem;
  flex: 1;
}

.directie-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.btn-quick-filter {
  background: none;
  border: none;
  color: var(--accent-gold);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

/* Artist Section */
.artist-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 4rem;
  align-items: center;
}

.artist-visual {
  text-align: center;
}

.avatar-frame {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  padding: 6px;
  margin: 0 auto 1.5rem;
  background: var(--bg-card);
}

.artist-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.artist-monogram {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
}

.artist-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.artist-credentials {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.artist-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.artist-text p {
  margin-bottom: 1.2rem;
}

.artist-domains {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.domain-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.domain-lbl {
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
}

.domain-link {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Raport Curatorial */
.raport-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.raport-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: var(--radius-sm);
}

.raport-box h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.raport-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Modal Dialog */
.luxury-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  border: none;
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.luxury-modal[open] {
  display: flex;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.95);
  backdrop-filter: blur(16px);
  z-index: 1;
}

.modal-dialog {
  position: relative;
  z-index: 2;
  width: 96vw;
  max-width: 1680px;
  height: 92vh;
  margin: auto;
  background: #07080c;
  border: 1px solid rgba(212, 163, 89, 0.3);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 40px rgba(212, 163, 89, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  height: 64px;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(212, 163, 89, 0.2);
  background: #0a0c12;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.modal-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: #f3f4f6;
  letter-spacing: 0.02em;
}

.modal-header-actions {
  display: flex;
  gap: 0.6rem;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(212, 163, 89, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Modal Body: 2 Columns - Canvas Left & 3D Plaque Right */
.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  flex: 1;
  height: calc(92vh - 64px);
  min-height: 0;
  overflow: hidden;
}

/* Visual Canvas Pane */
.modal-canvas-pane {
  background: radial-gradient(circle at center, #131722 0%, #06070a 90%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 1.5rem 3.8rem;
  user-select: none;
}

.image-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}

.image-wrapper {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.modal-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  pointer-events: auto;
  display: block;
}

.image-wrapper.zoomed {
  transform: scale(2.4);
  cursor: grab;
}

.image-wrapper.zoomed:active {
  cursor: grabbing;
}

/* Side Gutter Navigation Arrows (Hidden from canvas to keep artwork 100% clean) */
.modal-canvas-arrow {
  display: none !important;
}

/* Bottom Discrete Status Pill (Hidden from canvas) */
.modal-canvas-status {
  display: none !important;
}

/* Curatorial Dossier Column: 3D Hanging Plaque */
.modal-info {
  background: #07080b;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 2.2rem 1.8rem 3rem;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.modal-info::-webkit-scrollbar {
  width: 6px;
}
.modal-info::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

/* Mecanism de Atârnare: Cui Bătut în Perete + Sfoară 3D */
.modal-hanging-rig {
  position: relative;
  width: 100%;
  height: 52px;
  margin-bottom: -10px;
  z-index: 3;
  pointer-events: none;
}

.modal-hanging-rig .wall-nail {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  z-index: 4;
}

.modal-hanging-rig .nail-shadow {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.8) 0%, transparent 80%);
  filter: blur(2px);
}

.modal-hanging-rig .nail-cap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #b8bcc8 35%, #424652 75%, #181920 100%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.85), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.modal-hanging-rig .hanging-twine {
  width: 100%;
  height: 100%;
  display: block;
}

.modal-hanging-rig .twine-cord {
  stroke: #e2e5eb;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 4, 1.5;
}

.modal-hanging-rig .twine-shadow {
  stroke: rgba(0, 0, 0, 0.65);
  stroke-width: 3.5;
  stroke-linecap: round;
  filter: blur(2px);
}

/* Plăcuța Curatorială 3D Atârnată de Cui (Obsidian & Titan) */
.modal-plaque-card {
  position: relative;
  background: linear-gradient(175deg, #12141a 0%, #08090d 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 2rem 1.8rem;
  transform: perspective(1000px) rotateX(1.2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-plaque-card:hover {
  transform: perspective(1000px) rotateX(0deg);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.98), 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Chrome Eyelets */
.plaque-eyelets {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 32px;
  pointer-events: none;
}

.plaque-eyelets .eyelet {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #a4a8b5 45%, #2a2c34 90%);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

/* Top Meta */
.plaque-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.plaque-stamp {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.16em;
  color: #ffffff;
  font-weight: 700;
}

/* Info Sections & High Contrast Typography */
.info-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.info-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 700;
}

.info-val {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #ffffff;
}

.info-val.code {
  font-family: var(--font-mono);
  color: #ffffff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.info-val.medium-val {
  color: #d1d5db;
  font-style: italic;
}

.info-text {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  line-height: 1.7;
  color: #c5c9d6;
  letter-spacing: 0.01em;
}

.info-quote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  color: #ffffff;
  border-left: 2px solid #ffffff;
  padding: 0.8rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 4px 4px 0;
  margin: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.grid-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.info-val.status {
  font-size: 0.82rem;
  color: #10b981;
  font-family: var(--font-mono);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-cloud .tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  transition: all var(--transition-fast);
}

.tag-cloud .tag:hover {
  background: rgba(212, 163, 89, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.provenance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.prov-file {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-prov {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.btn-prov:hover {
  color: #fff;
  text-decoration: underline;
}

/* Plaque Navigation Buttons */
.modal-plaque-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-plaque-nav {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 163, 89, 0.3);
  color: #f3f4f6;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-plaque-nav:hover {
  background: var(--accent-gold);
  color: #07080c;
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 163, 89, 0.4);
}

/* Footer */
.luxury-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 4rem 1.5rem 2rem;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.f-sig {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  display: block;
}

.f-name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.8rem;
}

.f-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 420px;
}

.footer-links h4, .footer-domains h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links ul, .footer-domains ul {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a:hover, .footer-domains a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   CELE 5 SĂLI TEMATICE (CURATED WINGS VIEW)
   ========================================================================== */
.gallery-wings-container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  width: 100%;
}

.gallery-wing {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3rem 2.5rem 3.5rem;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition-normal);
}

.gallery-wing:hover {
  border-color: var(--border-hover);
}

.wing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
  gap: 2rem;
  flex-wrap: wrap;
}

.wing-title-group {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.wing-roman-badge {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  opacity: 0.9;
  text-shadow: 0 0 25px rgba(212, 163, 89, 0.35);
  min-width: 65px;
}

.wing-heading-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.wing-category-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.wing-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.wing-subtitle-en {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
}

.wing-critic-summary {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 650px;
  margin: 0.5rem 0 0;
}

.wing-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-wing-fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.15) 0%, rgba(212, 163, 89, 0.05) 100%);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-wing-fullscreen:hover {
  background: var(--accent-gold);
  color: #0b0c10;
  box-shadow: 0 0 25px rgba(212, 163, 89, 0.4);
  transform: translateY(-2px);
}

.wing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

/* ==========================================================================
   LUXURY FULLSCREEN EXPERIENTIAL OVERLAY (CELE 5 ANIMAȚII)
   ========================================================================== */
.luxury-fs-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #050608;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-fs-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Top HUD */
.fs-hud-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 2.5rem;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0.9) 0%, transparent 100%);
  pointer-events: none;
}

.fs-hud-top > * {
  pointer-events: auto;
}

.fs-meta-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fs-wing-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fs-wing-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
  animation: fsDotPulse 2s infinite ease-in-out;
}

.fs-artwork-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: #f0ede6;
  letter-spacing: 0.02em;
}

.fs-anim-indicator {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fs-controls-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-fs-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f0ede6;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.btn-fs-icon:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #050608;
  box-shadow: 0 0 20px rgba(212, 163, 89, 0.5);
  transform: scale(1.08);
}

/* Stage Area */
.fs-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  overflow: hidden;
}

.fs-artwork-frame {
  position: relative;
  max-width: 86vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform, filter;
}

.fs-artwork-frame img {
  max-width: 86vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.85);
  pointer-events: auto;
  user-select: none;
}

/* Bottom HUD */
.fs-hud-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(to top, rgba(5, 6, 8, 0.9) 0%, transparent 100%);
  pointer-events: none;
}

.fs-hud-bottom > * {
  pointer-events: auto;
}

.fs-nav-arrows {
  display: flex;
  gap: 1rem;
}

.fs-critic-strip {
  max-width: 55%;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: rgba(240, 237, 230, 0.8);
  font-style: italic;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.fs-category-pills {
  display: flex;
  gap: 0.5rem;
}

.btn-fs-cat-switch {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-fs-cat-switch.active, .btn-fs-cat-switch:hover {
  background: rgba(212, 163, 89, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   ANIMAȚIA 1: BIOMECHANICAL OSTEOLOGY ("THE BIOMECHANICAL OSTEO-PULSE")
   -------------------------------------------------------------------------- */
.fs-overlay[data-category="biomechanical-osteology"] .fs-artwork-frame {
  animation: osteoPulseEntrance 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes osteoPulseEntrance {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    filter: contrast(160%) brightness(70%) blur(6px);
  }
  35% {
    opacity: 0.8;
    transform: scale(1.03) translateY(-3px);
    filter: contrast(130%) brightness(95%) blur(1px);
  }
  65% {
    transform: scale(0.985) translateY(1px);
    filter: contrast(105%) brightness(102%) blur(0);
  }
  85% {
    transform: scale(1.008) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: contrast(100%) brightness(100%) blur(0);
  }
}

.fs-overlay[data-category="biomechanical-osteology"] .fs-osteo-scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(180, 200, 230, 0.85) 50%, transparent 100%);
  box-shadow: 0 0 15px rgba(180, 200, 230, 0.9);
  animation: osteoScanSweep 2.4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 10;
}

@keyframes osteoScanSweep {
  0% { top: 2%; opacity: 0; }
  15% { opacity: 0.95; }
  85% { opacity: 0.95; }
  100% { top: 98%; opacity: 0; }
}

.fs-caliper {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(212, 163, 89, 0.85);
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 12;
}

.fs-overlay[data-category="biomechanical-osteology"] .fs-caliper.top-left {
  top: -12px; left: -12px; border-top: 2px solid; border-left: 2px solid;
  animation: caliperTL 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fs-overlay[data-category="biomechanical-osteology"] .fs-caliper.top-right {
  top: -12px; right: -12px; border-top: 2px solid; border-right: 2px solid;
  animation: caliperTR 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fs-overlay[data-category="biomechanical-osteology"] .fs-caliper.bottom-left {
  bottom: -12px; left: -12px; border-bottom: 2px solid; border-left: 2px solid;
  animation: caliperBL 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fs-overlay[data-category="biomechanical-osteology"] .fs-caliper.bottom-right {
  bottom: -12px; right: -12px; border-bottom: 2px solid; border-right: 2px solid;
  animation: caliperBR 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes caliperTL {
  0% { transform: translate(-20px, -20px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
@keyframes caliperTR {
  0% { transform: translate(20px, -20px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
@keyframes caliperBL {
  0% { transform: translate(-20px, 20px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
@keyframes caliperBR {
  0% { transform: translate(20px, 20px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   ANIMAȚIA 2: CRYPTIC TOTEMS ("THE MONOLITHIC ASCENSION & RUNIC REVEAL")
   -------------------------------------------------------------------------- */
.fs-overlay[data-category="cryptic-totems"] .fs-artwork-frame {
  animation: monolithicAscend 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  box-shadow: 0 0 60px rgba(212, 163, 89, 0.25), 0 30px 80px rgba(0, 0, 0, 0.9);
}

@keyframes monolithicAscend {
  0% {
    opacity: 0;
    transform: perspective(1200px) translateY(120px) scale(0.9) rotateX(12deg);
    filter: brightness(60%) saturate(80%);
  }
  60% {
    transform: perspective(1200px) translateY(-8px) scale(1.01) rotateX(-1deg);
    filter: brightness(115%) saturate(110%);
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) translateY(0) scale(1) rotateX(0deg);
    filter: brightness(100%) saturate(100%);
  }
}

.fs-overlay[data-category="cryptic-totems"] .fs-runic-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, transparent 0%, rgba(212, 163, 89, 0.45) 50%, transparent 100%);
  mix-blend-mode: color-dodge;
  pointer-events: none;
  animation: runicBeamGlide 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  z-index: 8;
}

@keyframes runicBeamGlide {
  0% { transform: translateY(100%); opacity: 0; }
  20% { opacity: 0.85; }
  80% { opacity: 0.85; }
  100% { transform: translateY(-100%); opacity: 0; }
}

.fs-overlay[data-category="cryptic-totems"] .fs-ambient-runes {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(212, 163, 89, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: runeAmbience 6s ease-in-out infinite alternate;
}

@keyframes runeAmbience {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.05); }
}

/* --------------------------------------------------------------------------
   ANIMAȚIA 3: CHROMATIC EXPRESSIONS ("THE PRISMATIC PIGMENT BLOOM")
   -------------------------------------------------------------------------- */
.fs-overlay[data-category="chromatic-expressions"] .fs-artwork-frame {
  animation: prismaticPigmentBloom 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes prismaticPigmentBloom {
  0% {
    opacity: 0;
    transform: scale(0.85) rotate(-3deg);
    filter: drop-shadow(-15px 0 25px rgba(220, 60, 40, 0.7)) 
            drop-shadow(15px 0 25px rgba(20, 160, 200, 0.7)) 
            blur(8px);
  }
  40% {
    opacity: 0.9;
    transform: scale(1.04) rotate(1deg);
    filter: drop-shadow(-8px 0 15px rgba(220, 60, 40, 0.5)) 
            drop-shadow(8px 0 15px rgba(20, 160, 200, 0.5)) 
            blur(2px);
  }
  75% {
    transform: scale(0.99) rotate(-0.5deg);
    filter: drop-shadow(-2px 0 8px rgba(220, 60, 40, 0.2)) 
            drop-shadow(2px 0 8px rgba(20, 160, 200, 0.2)) 
            blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.8)) blur(0);
  }
}

.fs-overlay[data-category="chromatic-expressions"] .fs-pigment-aura {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at 40% 45%, rgba(205, 92, 58, 0.22) 0%, rgba(38, 140, 150, 0.18) 45%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  animation: pigmentAuraPulse 4s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes pigmentAuraPulse {
  0% { transform: scale(0.9) rotate(0deg); opacity: 0.5; }
  100% { transform: scale(1.1) rotate(5deg); opacity: 0.85; }
}

/* --------------------------------------------------------------------------
   ANIMAȚIA 4: CYBERNETIC ASSEMBLAGES ("THE 3D KINETIC HOLOGRAM & PLATTER SPIN")
   -------------------------------------------------------------------------- */
.fs-overlay[data-category="cybernetic-assemblages"] .fs-stage {
  perspective: 1800px;
}

.fs-overlay[data-category="cybernetic-assemblages"] .fs-artwork-frame {
  animation: cyberneticSpinEntrance 1.6s cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
  box-shadow: 0 0 50px rgba(0, 220, 255, 0.15), 0 30px 80px rgba(0, 0, 0, 0.9);
}

@keyframes cyberneticSpinEntrance {
  0% {
    opacity: 0;
    transform: rotateY(-40deg) rotateX(18deg) translateZ(-250px) scale(0.8);
    filter: hue-rotate(60deg) brightness(140%) contrast(120%);
  }
  50% {
    opacity: 0.95;
    transform: rotateY(10deg) rotateX(-4deg) translateZ(30px) scale(1.02);
    filter: hue-rotate(15deg) brightness(110%) contrast(110%);
  }
  75% {
    transform: rotateY(-3deg) rotateX(1deg) translateZ(-5px) scale(0.995);
    filter: hue-rotate(0deg) brightness(100%) contrast(100%);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) rotateX(0deg) translateZ(0) scale(1);
    filter: none;
  }
}

.fs-overlay[data-category="cybernetic-assemblages"] .fs-platter-gleam {
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, rgba(0, 240, 255, 0.3) 53%, transparent 62%);
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: platterGleamSweep 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 10;
}

@keyframes platterGleamSweep {
  0% { transform: translateX(-80%); opacity: 0; }
  25% { opacity: 0.9; }
  100% { transform: translateX(80%); opacity: 0; }
}

.fs-telemetry-hud {
  position: absolute;
  inset: -25px;
  border: 1px dashed rgba(0, 220, 255, 0.25);
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 11;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 10px 15px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(0, 220, 255, 0.7);
  animation: hudFadeIn 1.2s ease forwards;
}

@keyframes hudFadeIn {
  0% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* --------------------------------------------------------------------------
   ANIMAȚIA 5: MONUMENTAL PERSPECTIVES ("THE INFINITE VANISHING POINT ZOOM")
   -------------------------------------------------------------------------- */
.fs-overlay[data-category="monumental-perspectives"] .fs-stage {
  perspective: 2000px;
}

.fs-overlay[data-category="monumental-perspectives"] .fs-artwork-frame {
  animation: monumentalZoomEntrance 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 0 80px rgba(212, 163, 89, 0.15), 0 40px 100px rgba(0, 0, 0, 0.95);
}

@keyframes monumentalZoomEntrance {
  0% {
    opacity: 0;
    transform: perspective(2000px) translateZ(-700px) scale(0.5) translateY(-50px);
    filter: blur(10px) contrast(150%);
  }
  45% {
    opacity: 0.85;
    transform: perspective(2000px) translateZ(60px) scale(1.04) translateY(4px);
    filter: blur(2px) contrast(115%);
  }
  75% {
    transform: perspective(2000px) translateZ(-15px) scale(0.99) translateY(-1px);
    filter: blur(0) contrast(100%);
  }
  100% {
    opacity: 1;
    transform: perspective(2000px) translateZ(0) scale(1) translateY(0);
    filter: none;
  }
}

.fs-axonometric-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background-image: 
    linear-gradient(to right, rgba(212, 163, 89, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 163, 89, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: axonometricFade 2.5s ease forwards;
}

@keyframes axonometricFade {
  0% { opacity: 0; transform: scale(1.4); }
  40% { opacity: 0.7; }
  100% { opacity: 0.25; transform: scale(1); }
}

@keyframes fsDotPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Modal Fullscreen Button */
.btn-modal-fs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 163, 89, 0.12);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-modal-fs:hover {
  background: var(--accent-gold);
  color: #0b0c10;
  box-shadow: 0 0 15px rgba(212, 163, 89, 0.4);
}

/* Ambience Synthesizer Toggle */
.btn-ambience {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(212, 163, 89, 0.08);
  border: 1px solid rgba(212, 163, 89, 0.25);
  color: var(--text-secondary);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-ambience .amb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--transition-fast);
}

.btn-ambience.active {
  background: rgba(0, 229, 255, 0.12);
  border-color: #00e5ff;
  color: #00e5ff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.btn-ambience.active .amb-dot {
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  animation: ambPulse 1.8s infinite ease-in-out;
}

@keyframes ambPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
}

.btn-icon.active {
  background: var(--accent-gold);
  color: #07080c;
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 163, 89, 0.4);
}

@media (max-width: 1024px) {
  .modal-dialog {
    width: 98vw;
    height: 96vh;
    margin: 2vh auto;
  }
  .modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: 55vh minmax(0, 1fr);
    height: calc(96vh - 64px);
  }
  .modal-canvas-pane {
    height: 55vh;
    padding: 1rem 2.8rem;
  }
  .modal-info {
    border-left: none;
    border-top: 1px solid rgba(212, 163, 89, 0.2);
    height: auto;
    overflow-y: auto;
    padding: 1.5rem 1.2rem 2.5rem;
  }
  .artist-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header-container { flex-direction: column; gap: 1rem; }
  .main-nav { flex-wrap: wrap; justify-content: center; }
  .gallery-container.view-editorial { grid-template-columns: 1fr; }
  .gallery-container.view-immersive { grid-template-columns: 1fr; }
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

