/* =========================================================
   PixelAura 4K - Modern, Ultra-Responsive Design System
   Pure Vanilla CSS with Apple iOS & Dark/Light Mode Support
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Dark Theme (Default) - Emerald Green & Rich Bronze Brown Aesthetic */
  --bg-primary: #07080c;
  --bg-secondary: #0d0f17;
  --bg-card: rgba(18, 20, 30, 0.85);
  --bg-card-hover: rgba(28, 32, 48, 0.95);
  --bg-glass: rgba(13, 15, 23, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.6);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-primary: #10b981; /* Emerald Green */
  --accent-cyan: #34d399;    /* Mint Light */
  --accent-pink: #b45309;    /* Warm Bronze Brown */
  --accent-purple: #059669;  /* Deep Forest Green */
  --accent-brown: #78350f;   /* Mocha Brown */
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 45%, #b45309 100%);
  --accent-glow: rgba(16, 185, 129, 0.38);
  --success: #10b981;
  --danger: #ef4444;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --header-height: 72px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-glass: rgba(248, 250, 252, 0.85);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(99, 102, 241, 0.6);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --accent-glow: rgba(99, 102, 241, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

/* Base Reset & Apple iOS Optimization */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: var(--header-height);
  padding-bottom: env(safe-area-inset-bottom);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding-top: env(safe-area-inset-top);
  transition: var(--transition-smooth);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #047857 45%, #78350f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.45), 0 0 10px rgba(120, 53, 15, 0.4);
  border: 1px solid rgba(52, 211, 153, 0.4);
  position: relative;
  overflow: hidden;
}

.brand-icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
  border-radius: 12px 12px 0 0;
}

.brand-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent-cyan);
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-weight: 700;
  margin-left: 4px;
}

/* Search Bar */
.search-wrapper {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.search-input-box {
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  transition: var(--transition-smooth);
}

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

.search-icon {
  color: var(--text-dim);
  margin-right: 10px;
  font-size: 1.05rem;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.92rem;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-shortcut {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-weight: 600;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-cyan);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  position: relative;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--accent-pink);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-btn {
  display: none;
}

/* =========================================================
   HERO SECTION (GRAND & EXPANSIVE WITH 3D CANVAS)
   ========================================================= */
.hero-section {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--border-subtle);
  background: #07080c;
}

/* Interactive Dual-Layer Image Reveal Background & Parallax Grid (Subtle & Semi-Invisible) */
.hero-reveal-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.reveal-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.base-layer {
  z-index: 0;
  opacity: 0.25;
  filter: brightness(0.6) contrast(1.15) grayscale(20%);
}

.spotlight-layer {
  z-index: 1;
  opacity: 0.45;
  filter: brightness(0.8) contrast(1.2);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.parallax-grid-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.08;
  z-index: 2;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(5, 150, 105, 0.12) 0%, rgba(7, 8, 12, 0.82) 65%, #07080c 100%),
              linear-gradient(180deg, rgba(7, 8, 12, 0.6) 0%, rgba(7, 8, 12, 0.98) 100%);
  z-index: 3;
}

#hero-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 10px 25px var(--accent-glow);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.hero-tags-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ticker-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

.tag-pill {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tag-pill:hover {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.3);
}

/* =========================================================
   LIVE STATS STRIP
   ========================================================= */
.stats-strip {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 2px;
}

/* =========================================================
   POPULAR CATEGORIES SECTION
   ========================================================= */
.section-title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.categories-section {
  padding: 50px 0 20px;
}

.categories-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) transparent;
  -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
  height: 6px;
}

.categories-scroll::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 10px;
}

.category-card {
  flex: 0 0 170px;
  height: 140px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card:hover {
  border-color: var(--border-focus);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.cat-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-count {
  font-size: 0.75rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* =========================================================
   MONETAG AD CONTAINERS (CLEAN & NON-INTRUSIVE)
   ========================================================= */
.monetag-ad-slot {
  margin: 36px auto;
  max-width: 970px;
  min-height: 110px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 16px;
  text-align: center;
}

.ad-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.ad-placeholder-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================================
   ADVANCED FILTER SYSTEM
   ========================================================= */
.filter-wrapper {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-card);
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.custom-select {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.custom-select:focus {
  border-color: var(--border-focus);
}

.custom-select option {
  background: var(--bg-secondary);
  color: var(--text-main);
}

.color-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-dot:hover,
.color-dot.active {
  transform: scale(1.25);
  border-color: white;
  box-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.btn-reset-filters {
  font-size: 0.82rem;
  color: var(--accent-pink);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(236, 72, 153, 0.1);
  transition: var(--transition-smooth);
}

.btn-reset-filters:hover {
  background: rgba(236, 72, 153, 0.2);
}

/* =========================================================
   RESPONSIVE WALLPAPER MASONRY / GRID GALLERY
   Desktop: 4-5 cols, Tablet: 3 cols, Mobile: 2 cols
   ========================================================= */
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

@media (min-width: 1500px) {
  .wallpaper-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.wallpaper-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111420;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.wallpaper-card:hover .card-media img {
  transform: scale(1.06);
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.badge-res {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-cat {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: white;
}

.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  z-index: 3;
  transition: var(--transition-smooth);
}

.card-fav-btn:hover,
.card-fav-btn.favorited {
  color: var(--accent-pink);
  transform: scale(1.15);
}

.card-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tag-micro {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.btn-card-view {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition-smooth);
}

.btn-card-view:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-card-dl {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-smooth);
}

.btn-card-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* =========================================================
   COLLECTIONS VIEW (PAGE 2)
   ========================================================= */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.collection-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-card:hover img {
  transform: scale(1.08);
}

.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.92) 85%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.collection-badge-count {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.collection-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}

.collection-card-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-view-collection {
  align-self: flex-start;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.collection-card:hover .btn-view-collection {
  background: var(--accent-gradient);
}

/* =========================================================
   COLLECTION DETAIL VIEW (PAGE 3)
   ========================================================= */
.collection-hero {
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 30px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(18, 20, 30, 0.8));
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.collection-hero h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.collection-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin-bottom: 20px;
}

/* =========================================================
   WALLPAPER DETAIL PAGE (PAGE 4)
   ========================================================= */
.wallpaper-detail-container {
  padding: 30px 0 60px;
}

.detail-stage-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 36px;
}

.stage-image-box {
  position: relative;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #030407;
  cursor: zoom-in;
}

.stage-image-box img {
  max-height: 75vh;
  width: auto;
  object-fit: contain;
}

.detail-info-grid {
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
}

.detail-specs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.spec-box {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.spec-box label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  display: block;
}

.spec-box span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Download Engine Actions Panel */
.download-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-panel-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dl-badge-verified {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
}

.btn-dl-large {
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.98rem;
  transition: var(--transition-smooth);
}

.btn-dl-4k {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 10px 25px var(--accent-glow);
}

.btn-dl-4k:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px var(--accent-glow);
}

.btn-dl-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-dl-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-favorite-action {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-favorite-action:hover,
.btn-favorite-action.favorited {
  background: rgba(236, 72, 153, 0.15);
  color: var(--accent-pink);
  border-color: rgba(236, 72, 153, 0.4);
}

/* =========================================================
   SITE FOOTER
   ========================================================= */
.site-footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 25px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

/* =========================================================
   MODAL / POPUP
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.4rem;
  color: var(--text-dim);
  cursor: pointer;
  z-index: 10;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (MOBILE & TABLET)
   Tablet: 3 columns, Mobile: 2 columns
   ========================================================= */
@media (max-width: 1100px) {
  .wallpaper-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-menu {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .wallpaper-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .card-media {
    aspect-ratio: 1 / 1;
  }
  .collections-grid {
    grid-template-columns: 1fr;
  }
  .search-wrapper {
    display: none;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}
