/* Global Styles & Variables */
:root {
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --bg-dark: #0a0516;
  --bg-darker: #05020c;
  
  --primary-glow: #6366f1; /* Electric Blue/Indigo */
  --secondary-glow: #ec4899; /* Pink */
  --tertiary-glow: #10b981; /* Green */
  --accent-glow: #a855f7; /* Purple */
  --warn-glow: #f59e0b; /* Orange */
  
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-glow: rgba(99, 102, 241, 0.25);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  border: 2px solid var(--bg-darker);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-glow);
}

/* Typography */
h1, h2, h3, h4, .badge, .stat-val, .btn {
  font-family: var(--font-header);
}

/* Background Animated Orbs */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
  top: -100px;
  left: -100px;
  animation: floatOrb 20s infinite alternate;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
  bottom: -200px;
  right: -100px;
  animation: floatOrb 25s infinite alternate-reverse;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(0,0,0,0) 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseOrb 15s infinite ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 50px) scale(1.1); }
}

@keyframes pulseOrb {
  0%, 100% { opacity: 0.25; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.4; transform: translate(-45%, -55%) scale(1.15); }
}

/* Container */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Glassmorphism Common */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Audio Control Bar */
.audio-control-bar {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
}

.sound-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.sound-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.sound-btn.playing {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary-glow);
  color: #a5b4fc;
  animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.2); }
  100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-spring);
  border: 1px solid transparent;
  outline: none;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary-glow), #4f46e5);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  border-color: var(--text-secondary);
}

.game-btn {
  background: linear-gradient(135deg, var(--secondary-glow), #be185d);
  color: white;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
}

.game-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.6);
}

.danger-btn {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.danger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.6);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 1.5rem;
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 5rem;
}

.hero-content {
  max-width: 800px;
  z-index: 10;
}

.hero-title {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-title .highlight {
  background: linear-gradient(to right, #818cf8, var(--secondary-glow), var(--accent-glow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* Stats Banner */
.stats-banner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 2.5rem;
  margin: -2rem auto 6rem auto;
  max-width: 900px;
  z-index: 10;
  position: relative;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-val {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-lbl {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
  .stats-banner {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
  }
  .stat-divider {
    display: none;
  }
}

/* Section Common Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

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

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Vault Grid */
.vault-section {
  margin-bottom: 8rem;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.2rem;
  perspective: 1200px; /* Enable 3D environment */
}

/* Interactive 3D Memory Card */
.memory-card {
  position: relative;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.memory-card.border-glow {
  border-color: var(--card-border-glow);
  box-shadow: 0 0 15px var(--card-border-glow), 0 15px 35px rgba(0, 0, 0, 0.4);
}

.card-inner {
  padding: 0.5rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateZ(20px); /* Lift inner content in 3D */
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  transform: translateZ(30px); /* Lift image more */
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.memory-card:hover .card-image {
  transform: scale(1.08);
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 500;
}

.card-content {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
}

.card-category {
  font-family: var(--font-header);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-glow);
}

.card-date {
  color: var(--text-muted);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Creation Section */
.create-section {
  margin-bottom: 8rem;
}

.create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.preview-card-wrap {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 380px;
}

.preview-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.form-wrapper {
  padding: 3rem;
}

.memory-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-glow);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hidden {
  display: none !important;
}

/* Image Option Selector Grid */
.image-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.img-opt-label {
  cursor: pointer;
  position: relative;
}

.img-opt-label input {
  position: absolute;
  opacity: 0;
}

.img-opt-thumb {
  width: 100%;
  height: 70px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.3rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.img-opt-thumb span {
  font-size: 0.65rem;
  font-family: var(--font-header);
  font-weight: 600;
  text-align: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  width: 110%;
  padding: 0.2rem 0;
  color: white;
}

.custom-thumb {
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-opt-label input:checked + .img-opt-thumb {
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.custom-url-input {
  margin-top: 0.6rem;
}

/* Theme Color Picker Grid */
.color-picker-grid {
  display: flex;
  gap: 0.8rem;
}

.color-opt-label {
  cursor: pointer;
  position: relative;
}

.color-opt-label input {
  position: absolute;
  opacity: 0;
}

.color-dot {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--theme-color);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-spring);
}

.color-opt-label input:checked + .color-dot {
  transform: scale(1.2);
  border-color: white;
  box-shadow: 0 0 15px var(--theme-color);
}

.submit-btn {
  margin-top: 1rem;
  padding: 1rem;
}

@media (max-width: 850px) {
  .create-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .preview-card-wrap {
    max-width: 100%;
  }
}

/* Interactive Memory Matcher Game */
.game-section {
  margin-bottom: 8rem;
}

.game-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  padding: 3rem;
  align-items: center;
}

.game-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.game-stat {
  display: flex;
  flex-direction: column;
}

.game-stat-lbl {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.game-stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.game-board-container {
  display: flex;
  justify-content: center;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
}

.board-placeholder {
  grid-column: span 4;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  font-family: var(--font-header);
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 2rem;
}

/* Flip Cards */
.game-card {
  perspective: 1000px;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  position: relative;
}

.game-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  border-radius: 12px;
}

.game-card.flipped .game-card-inner {
  transform: rotateY(180deg);
}

.game-card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-card-front {
  background: var(--bg-darker);
  /* Dynamic cover image set via JS */
  background-size: cover;
  background-position: center;
  transform: rotateY(180deg);
}

.game-card-back {
  background: radial-gradient(circle at center, #1e1b4b 0%, #03001e 100%);
  border-color: rgba(99, 102, 241, 0.2);
  color: var(--primary-glow);
}

.game-card-back svg {
  width: 32px;
  height: 32px;
  animation: pulseLogo 3s infinite alternate;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
}

@keyframes pulseLogo {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}

.game-card.matched .game-card-inner {
  transform: rotateY(180deg) scale(0.95);
  opacity: 0.6;
  border-color: var(--tertiary-glow);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
  cursor: default;
}

@media (max-width: 850px) {
  .game-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Timeline Section */
.timeline-section {
  margin-bottom: 8rem;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0 auto;
  padding: 2rem 0;
}

/* Timeline Center Line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, rgba(99, 102, 241, 0) 0%, rgba(99, 102, 241, 0.3) 10%, rgba(99, 102, 241, 0.3) 90%, rgba(99, 102, 241, 0) 100%);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 3.5rem;
  width: 100%;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

/* Timeline Nodes/Dots */
.timeline-node {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--primary-glow);
  box-shadow: 0 0 10px var(--primary-glow);
  transform: translateX(-50%);
  z-index: 10;
  transition: var(--transition-spring);
}

.timeline-item:hover .timeline-node {
  transform: translateX(-50%) scale(1.3);
  background: var(--primary-glow);
}

.timeline-card {
  width: 85%;
  margin-right: auto;
  padding: 1.5rem;
  cursor: pointer;
}

.timeline-item:nth-child(even) .timeline-card {
  margin-right: 0;
  margin-left: auto;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.timeline-tag {
  font-family: var(--font-header);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-glow);
  text-transform: uppercase;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.timeline-snippet {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }
  .timeline-item {
    padding-right: 0;
    padding-left: 45px;
    justify-content: flex-start !important;
  }
  .timeline-item:nth-child(even) {
    padding-left: 45px;
  }
  .timeline-node {
    left: 20px;
  }
  .timeline-card {
    width: 100%;
  }
}

/* Details Modal Dialog */
.details-dialog {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  display: none; /* Controlled via CSS class/JS showModal */
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.details-dialog[open] {
  display: flex;
}

.details-dialog::backdrop {
  background: rgba(5, 2, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog-content {
  width: 90%;
  max-width: 600px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalReveal {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.close-modal-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 32px;
  cursor: pointer;
  z-index: 20;
  transition: var(--transition-smooth);
}

.close-modal-btn:hover {
  background: var(--secondary-glow);
  transform: scale(1.1);
}

.dialog-hero-image {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
}

.dialog-body {
  padding: 2.2rem;
}

.dialog-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
}

.dialog-meta .badge {
  margin-bottom: 0;
}

.dialog-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dialog-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.dialog-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
}

/* Footer */
.app-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg-darker);
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 8rem;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
