/* 
  OtakuSpace Premium Design System
  Author: Antigravity Team
  Theme: AMOLED dark with neon aura accents
*/

:root {
  --bg-dark: #050608;
  --bg-card: rgba(13, 17, 24, 0.7);
  --bg-card-hover: rgba(20, 26, 38, 0.85);
  --border-color: rgba(255, 255, 255, 0.05);
  --border-color-hover: rgba(139, 92, 246, 0.3);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  
  /* Brand gradients */
  --accent-purple: #8b5cf6;
  --accent-blue: #06b6d4;
  --accent-pink: #ec4899;
  
  --grad-primary: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  --grad-pink-blue: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
  --grad-card-overlay: linear-gradient(to top, rgba(5, 6, 8, 0.9) 0%, rgba(5, 6, 8, 0.3) 50%, rgba(5, 6, 8, 0) 100%);
  
  /* Shadows and glows */
  --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.15);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Manrope', 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.06) 0%, transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Main Layout Shell */
.site-shell {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Topbar Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(13, 17, 24, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 100;
  position: sticky;
  top: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--grad-primary);
  color: #fff;
  font-family: 'Space Grotesk', 'Bebas Neue', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-copy small {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.15rem;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 320px;
  flex-grow: 1;
  margin: 0 2rem;
  transition: var(--transition-smooth);
}

.header-search input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.25rem;
  background: rgba(5, 6, 8, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-smooth);
}

.header-search input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
  background: rgba(5, 6, 8, 0.95);
}

.header-search .search-icon {
  position: absolute;
  left: 0.8rem;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header-search input:focus + .search-icon {
  color: var(--accent-purple);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.topnav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

.topnav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: var(--transition-smooth);
}

.topnav a:hover {
  color: var(--text-main);
}

.topnav a:hover::after,
.topnav a.active::after {
  width: 100%;
}

.topnav a.active {
  color: var(--text-main);
  font-weight: 600;
}

/* Pinterest Style Masonry Grid */
.wallpaper-grid {
  column-count: 3;
  column-gap: 1.5rem;
  margin-top: 1.5rem;
}

.wallpaper-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  display: block;
}

.wallpaper-art {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.wallpaper-art img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wallpaper-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-card-overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  z-index: 2;
}

.wallpaper-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-hover);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15), var(--shadow-card);
}

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

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

.overlay-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.overlay-meta .res {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.overlay-meta .downloads {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.overlay-meta .downloads svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Card details (visible on card footer) */
.wallpaper-card-info {
  padding: 1.25rem;
  border-t: 1px solid var(--border-color);
  background: rgba(10, 13, 19, 0.4);
}

.wallpaper-card-info .series-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
  display: inline-block;
}

.wallpaper-card-info h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
  background: rgba(13, 17, 24, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  margin-top: 0.5rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-copy .badge {
  align-self: flex-start;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #c084fc;
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-copy h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 30%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

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

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

.hero-panel {
  display: flex;
  justify-content: center;
}

.featured-drop-wrapper {
  width: 100%;
  max-width: 320px;
  perspective: 1000px;
}

.featured-drop-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 0.75rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: var(--transition-smooth);
}

.featured-drop-card:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
  border-color: var(--accent-purple);
}

.featured-drop-card .img-container {
  aspect-ratio: 9/16;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.featured-drop-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.featured-info-overlay span {
  font-size: 0.7rem;
  color: var(--accent-blue);
  font-weight: 700;
  text-transform: uppercase;
}

.featured-info-overlay h3 {
  font-size: 1rem;
  font-weight: 600;
}

/* Search bar with suggestion chips */
.search-strip {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  background: rgba(13, 17, 24, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 24px;
}

.search-header h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

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

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 1.1rem 1.5rem;
  padding-right: 3rem;
  border-radius: 14px;
  background: rgba(5, 6, 8, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.search-icon {
  position: absolute;
  right: 1.25rem;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.search-chips span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chip-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  color: var(--text-main);
}

/* Sections Configuration */
.section-block {
  margin-top: 1.5rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding-bottom: 0.75rem;
}

.section-head-title h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.section-head-title p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.section-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.section-link:hover {
  color: var(--accent-blue);
  transform: translateX(3px);
}

/* Collections Grid (Home Category cards) */
.collections-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.collection-summary-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.collection-summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  opacity: 0.7;
}

.collection-summary-card:nth-child(2)::before {
  background: var(--grad-pink-blue);
}

.collection-summary-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.collection-summary-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.collection-summary-card p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Series grid styling (Home shelf) */
.series-shelves-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.series-shelf-card {
  padding: 1.5rem;
  background: rgba(13, 17, 24, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.series-shelf-card:hover {
  border-color: var(--accent-blue);
  transform: scale(1.01);
}

.series-shelf-card .count-badge {
  align-self: flex-start;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-blue);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.series-shelf-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.series-shelf-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  flex-grow: 1;
}

/* Category Page Hero Section */
.category-hero {
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.category-hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-hero-info span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-purple);
  font-weight: 700;
}

.category-hero-info h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  letter-spacing: -0.02em;
}

.category-hero-info p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.6;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.meta-card {
  background: rgba(5, 6, 8, 0.3);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
}

.meta-card .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.meta-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Device Preview Toggle */
.device-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: rgba(13, 17, 24, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.4rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.device-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: 'Manrope', sans-serif;
}

.device-toggle-btn svg {
  width: 16px;
  height: 16px;
}

.device-toggle-btn:hover {
  color: var(--text-main);
}

.device-toggle-btn.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.device-preview-container {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 400px;
}

.device-preview {
  display: none;
}

.device-preview.active {
  display: flex;
  justify-content: center;
}

/* Desktop / Monitor Mockup */
.desktop-monitor-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
}

.desktop-mockup {
  width: 100%;
  border: 12px solid #1e222b;
  border-bottom: 20px solid #1e222b;
  border-radius: 14px 14px 10px 10px;
  position: relative;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.8),
    var(--shadow-glow);
  background: #000;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-mockup:hover {
  transform: scale(1.02);
}

.desktop-screen {
  width: 100%;
  aspect-ratio: 16/10;
  position: relative;
  background: #000;
}

.monitor-stand {
  width: 40px;
  height: 55px;
  background: linear-gradient(to right, #2e3440, #1e222b);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: -2px;
  box-shadow: inset 0 10px 15px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}

.monitor-base {
  width: 160px;
  height: 8px;
  background: linear-gradient(to right, #2e3440, #1e222b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}

.desktop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}


/* Wallpaper Detail Page */
.wallpaper-detail {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.wallpaper-main-preview {
  display: flex;
  justify-content: center;
  background: rgba(13, 17, 24, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 3rem;
}

/* CSS Phone Mockup (Highly premium lock screen simulation) */
.phone-mockup {
  width: 290px;
  height: 580px;
  border: 12px solid #1e222b;
  border-radius: 44px;
  position: relative;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    var(--shadow-glow);
  background: #000;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-mockup:hover {
  transform: scale(1.03);
}

.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #1e222b;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 20;
}

.phone-notch::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #2e3440;
  border-radius: 99px;
}

.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  z-index: 20;
}

.phone-lockscreen-ui {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3.5rem 1.5rem 2rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 35%, transparent 70%, rgba(0,0,0,0.3) 100%);
  color: #fff;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.phone-mockup:hover .phone-lockscreen-ui {
  opacity: 0.1; /* Fade lock screen UI on hover to preview full artwork */
}

.phone-time {
  font-size: 2.8rem;
  font-weight: 200;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.phone-date {
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.25rem;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  text-transform: capitalize;
}

.phone-bottom-icons {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 0.5rem;
}

.phone-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Wallpaper Aside Panels */
.wallpaper-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wallpaper-meta-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.wallpaper-meta-card .series-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-purple);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.wallpaper-meta-card h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.wallpaper-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Tech Specs grid on Detail page */
.tech-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  margin-bottom: 1.75rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-item span {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-item strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Download widget container */
.download-action-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-download-primary {
  background: var(--grad-primary);
  color: #fff;
  font-size: 1.05rem;
  padding: 1.1rem 2rem;
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-download-primary svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-download-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.55);
}

.download-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Chip tags row */
.tags-block {
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}

.tags-block h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 500;
}

.chip:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-purple);
  color: var(--text-main);
  transform: translateY(-1px);
}

/* Footer Section */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: #020305;
  padding: 3rem 0;
}

.footer-content {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 320px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  font-weight: 700;
}

.footer-column a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-column a:hover {
  color: var(--accent-purple);
}

.footer-bottom {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.02);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* Toast Notifications styling */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background: #0d1118;
  border-left: 4px solid var(--accent-blue);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  color: var(--accent-blue);
  display: flex;
  align-items: center;
}

/* Skeletal state & errors */
.empty-state {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border: 1px dashed var(--border-color);
  border-radius: 20px;
  margin-top: 1.5rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

.empty-state p {
  font-size: 0.9rem;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.skeleton-card-pulse {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 20px;
  aspect-ratio: 9/16;
  border: 1px solid var(--border-color);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Ad Container — blends with dark theme */
.ad-container {
  margin: 2rem 0;
  padding: 1rem;
  background: rgba(13, 17, 24, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-container ins {
  border-radius: 8px;
}

.ad-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.15);
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Responsive configurations */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    text-align: center;
  }
  
  .hero-copy .badge {
    align-self: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .wallpaper-grid {
    column-count: 2;
  }
  
  .collections-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .series-shelves-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .wallpaper-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .wallpaper-main-preview {
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
    top: 0.5rem;
  }
  
  .header-search {
    order: 3;
    margin: 0;
    max-width: 100%;
    width: 100%;
  }

  .topnav {
    gap: 1rem;
  }
  
  .topnav a {
    font-size: 0.8rem;
  }
  
  .hero {
    padding: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
  
  .wallpaper-grid {
    column-count: 1;
  }
  
  .collections-summary-grid {
    grid-template-columns: 1fr;
  }
  
  .series-shelves-grid {
    grid-template-columns: 1fr;
  }
  
  .facts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tech-specs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wallpaper-main-preview {
    padding: 1rem;
    border-radius: 20px;
  }

  .phone-mockup {
    width: 270px;
    height: 540px;
  }
}
