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

/* =====================================================
   WallZone - Complete Stylesheet
   ===================================================== */

:root {
   --bg-dark: #0a0a0a;
   --bg-main: #121212;
   --bg-surface: #1a1a1a;
   --bg-elevated: #242424;
   --bg-hover: #2a2a2a;
   --primary: #7c3aed;
   --primary-light: #a78bfa;
   --primary-dark: #5b21b6;
   --primary-glow: rgba(124, 58, 237, 0.3);
   --accent-pink: #ec4899;
   --accent-orange: #f97316;
   --accent-cyan: #06b6d4;
   --text-primary: #ffffff;
   --text-secondary: #a1a1aa;
   --text-muted: #71717a;
   --border-color: #27272a;
   --border-light: #3f3f46;
   --success: #22c55e;
   --error: #ef4444;
   --radius-sm: 6px;
   --radius-md: 12px;
   --radius-lg: 16px;
   --radius-xl: 24px;
   --radius-full: 9999px;
   --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
   --header-height: 64px;
}

.cta-play-button {
    display: block;
    line-height: 0;
    border-radius: 8px;
    width: fit-content;
    margin: 0 auto;
}

.cta-play-button img {
    display: block;
    height: 150px;
    width: auto;
}

/* Icon Utilities */
.icon {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 20px;
   height: 20px;
   flex-shrink: 0;
}

.icon-sm {
   width: 16px;
   height: 16px;
}

.icon-lg {
   width: 24px;
   height: 24px;
}

.icon-xl {
   width: 32px;
   height: 32px;
}

.icon svg {
   width: 100%;
   height: 100%;
}

.section-icon {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 28px;
   height: 28px;
   border-radius: 8px;
   margin-right: 10px;
}

.section-icon.fire {
   background: linear-gradient(135deg, #f97316, #ef4444);
}

.section-icon.sparkle {
   background: linear-gradient(135deg, #a78bfa, #ec4899);
}

.section-icon.palette {
   background: linear-gradient(135deg, #06b6d4, #8b5cf6);
}

.section-icon.grid {
   background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

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

html {
   scroll-behavior: smooth;
}

body {
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
   background-color: var(--bg-main);
   color: var(--text-primary);
   line-height: 1.6;
   min-height: 100vh;
}

a {
   color: inherit;
   text-decoration: none;
   transition: color 0.2s;
}

a:hover {
   color: var(--primary-light);
}

img {
   max-width: 100%;
   height: auto;
   display: block;
}

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

ul,
ol {
   list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
   font-family: 'Outfit', sans-serif;
   font-weight: 700;
   line-height: 1.2;
}

h1 {
   font-size: 2.5rem;
}

h2 {
   font-size: 1.75rem;
}

h3 {
   font-size: 1.25rem;
}

.text-gradient {
   background: linear-gradient(135deg, var(--primary) 0%, var(--accent-pink) 100%);
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
}

.container {
   width: 100%;
   max-width: 1400px;
   margin: 0 auto;
   padding: 0 24px;
}

/* Header */
.header {
   position: sticky;
   top: 0;
   z-index: 1000;
   height: var(--header-height);
   background: rgba(10, 10, 10, 0.95);
   backdrop-filter: blur(20px);
   border-bottom: 1px solid var(--border-color);
}

.header-inner {
   height: 100%;
   display: flex;
   align-items: center;
   gap: 24px;
}

.logo {
   display: flex;
   align-items: center;
   gap: 8px;
   font-family: 'Outfit', sans-serif;
   font-size: 1.5rem;
   font-weight: 800;
}

.logo-icon {
   width: 36px;
   height: 36px;
   background: linear-gradient(135deg, var(--primary), var(--accent-pink));
   border-radius: 10px;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   font-size: 1.25rem;
}

.nav-main {
   display: flex;
   align-items: center;
   gap: 4px;
}

.nav-link {
   padding: 8px 16px;
   font-size: 0.875rem;
   font-weight: 500;
   color: var(--text-secondary);
   border-radius: 8px;
   transition: all 0.25s ease;
   text-decoration: none;
}

.nav-link:hover {
   background: var(--bg-surface);
   color: var(--primary-light);
}

.nav-link.active {
   background: var(--bg-surface);
   color: var(--text-primary);
}

.search-bar {
   flex: 1;
   max-width: 500px;
}

.search-wrapper {
   display: flex;
   align-items: center;
   background: var(--bg-surface);
   border: 1px solid var(--border-color);
   border-radius: var(--radius-full);
   overflow: hidden;
}

.search-wrapper:focus-within {
   border-color: var(--primary);
   box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-input {
   flex: 1;
   padding: 10px 16px;
   background: transparent;
   border: none;
   color: var(--text-primary);
   font-size: 0.875rem;
   outline: none;
}

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

.search-btn {
   padding: 10px 16px;
   color: var(--text-muted);
   background: none;
   border: none;
   cursor: pointer;
}

.header-actions {
   display: flex;
   align-items: center;
   gap: 16px;
   margin-left: auto;
}

/* Buttons */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   padding: 10px 20px;
   font-size: 0.875rem;
   font-weight: 600;
   border-radius: var(--radius-full);
   transition: all 0.25s ease;
   cursor: pointer;
   border: none;
   text-decoration: none;
}

.btn:hover {
   transform: translateY(-2px);
}

.btn:active {
   transform: translateY(0);
}

.btn-primary {
   background: var(--primary);
   color: white;
   box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
   background: var(--primary-light);
   box-shadow: 0 6px 20px var(--primary-glow);
   color: white;
}

.btn-primary:active {
   background: var(--primary-dark);
}

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

.btn-secondary:hover {
   background: var(--bg-hover);
   border-color: var(--border-light);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
   color: white;
}

.btn-secondary:active {
   background: var(--bg-surface);
}

.btn-lg {
   padding: 14px 28px;
   font-size: 1rem;
}

.btn-sm {
   padding: 6px 14px;
   font-size: 0.75rem;
}

.btn-sm:hover {
   transform: translateY(-1px);
}

/* Hero */
.hero {
   padding: 80px 0;
   text-align: center;
   background: linear-gradient(to bottom, var(--bg-dark), var(--bg-main));
   position: relative;
}

.hero::before {
   content: '';
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 600px;
   height: 600px;
   background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
   pointer-events: none;
}

.hero-content {
   position: relative;
   z-index: 1;
}

.hero-title {
   font-size: 3rem;
   font-weight: 800;
   margin-bottom: 16px;
   letter-spacing: -1px;
}

.hero-subtitle {
   font-size: 1.125rem;
   color: var(--text-secondary);
   max-width: 600px;
   margin: 0 auto 32px;
}

.hero-search {
   max-width: 600px;
   margin: 0 auto;
}

/* Tags */
.tag {
   display: inline-flex;
   align-items: center;
   padding: 6px 14px;
   background: var(--bg-elevated);
   border: 1px solid var(--border-color);
   border-radius: var(--radius-full);
   font-size: 0.75rem;
   color: var(--text-secondary);
   transition: all 0.25s ease;
   cursor: pointer;
}

.tag:hover {
   border-color: var(--primary);
   color: var(--primary-light);
   background: rgba(124, 58, 237, 0.15);
   transform: translateY(-1px);
}

/* Category Nav */
.category-nav {
   display: flex;
   gap: 8px;
   padding: 16px 0;
   overflow-x: auto;
   scrollbar-width: none;
}

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

.category-item {
   flex-shrink: 0;
   display: flex;
   align-items: center;
   gap: 8px;
   padding: 10px 18px;
   background: var(--bg-surface);
   border: 1px solid var(--border-color);
   border-radius: var(--radius-full);
   font-size: 0.875rem;
   color: var(--text-secondary);
   cursor: pointer;
   transition: all 0.25s ease;
   text-decoration: none;
}

.category-item:hover {
   background: var(--primary);
   border-color: var(--primary);
   color: white;
   transform: translateY(-2px);
   box-shadow: 0 4px 12px var(--primary-glow);
}

.category-item.active {
   background: var(--primary);
   border-color: var(--primary);
   color: white;
}

/* Section */
.section {
   padding: 48px 0;
}

.section-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 24px;
}

.section-title {
   font-size: 1.5rem;
}

.view-all {
   font-size: 0.875rem;
   color: var(--text-muted);
}

.view-all:hover {
   color: var(--primary-light);
}

/* Content Grid */
.content-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
   gap: 16px;
}

.content-grid-lg {
   grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Card */
.card {
   background: var(--bg-surface);
   border-radius: var(--radius-lg);
   overflow: hidden;
   transition: all 0.3s;
   cursor: pointer;
   text-decoration: none;
   display: block;
}

.card:hover {
   transform: translateY(-6px);
   box-shadow: var(--shadow-lg);
}

.card-media {
   position: relative;
   aspect-ratio: 9/16;
   overflow: hidden;
}

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

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

.card-overlay {
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
   padding: 50px 14px 14px;
   display: flex;
   flex-direction: column;
   justify-content: flex-end;
}

.card-title {
   font-size: 0.875rem;
   font-weight: 600;
   margin-bottom: 6px;
   color: white;
   line-height: 1.3;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.card-meta {
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 0.75rem;
   color: var(--text-secondary);
}

.card .tag {
   background: rgba(255, 255, 255, 0.15);
   border: none;
   color: rgba(255, 255, 255, 0.9);
   font-size: 0.65rem;
   padding: 3px 8px;
}

.card-badge {
   position: absolute;
   top: 10px;
   right: 10px;
   padding: 4px 10px;
   background: var(--primary);
   color: white;
   font-size: 0.625rem;
   font-weight: 700;
   text-transform: uppercase;
   border-radius: var(--radius-sm);
}

/* Footer */
.footer {
   background: var(--bg-dark);
   border-top: 1px solid var(--border-color);
   padding: 60px 0 30px;
   margin-top: 60px;
}

.footer-grid {
   display: grid;
   grid-template-columns: 2fr repeat(3, 1fr);
   gap: 48px;
   margin-bottom: 48px;
}

.footer-brand {
   max-width: 300px;
}

.footer-brand p {
   margin-top: 16px;
   font-size: 0.875rem;
   color: var(--text-secondary);
}

.footer-title {
   font-size: 0.75rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
   margin-bottom: 16px;
   color: var(--text-muted);
}

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

.footer-links a {
   font-size: 0.875rem;
   color: var(--text-secondary);
}

.footer-links a:hover {
   color: var(--primary-light);
}

.footer-bottom {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding-top: 30px;
   border-top: 1px solid var(--border-color);
   font-size: 0.75rem;
   color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
   .footer-grid {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 768px) {

   .nav-main,
   .search-bar {
      display: none;
   }

   .hero-title {
      font-size: 2rem;
   }

   .content-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
   }

   .footer-grid {
      grid-template-columns: 1fr;
      text-align: center;
   }

   .footer-brand {
      max-width: none;
   }

   .footer-bottom {
      flex-direction: column;
      gap: 16px;
      text-align: center;
   }
}

/* =====================================================
   Auth Pages
   ===================================================== */
.auth-page {
   min-height: calc(100vh - var(--header-height));
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 40px 20px;
   background: var(--bg-main);
}

.auth-card {
   background: var(--bg-surface);
   border: 1px solid var(--border-color);
   border-radius: var(--radius-xl);
   padding: 40px;
   width: 100%;
   max-width: 440px;
   box-shadow: var(--shadow-lg);
}

.auth-header {
   text-align: center;
   margin-bottom: 32px;
}

.auth-header h1 {
   font-size: 2rem;
   font-weight: 700;
   margin-bottom: 8px;
   background: linear-gradient(to right, #ffffff, #a1a1aa);
   background-clip: text;
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.auth-divider {
   display: flex;
   align-items: center;
   text-align: center;
   color: var(--text-secondary);
   font-size: 0.875rem;
   margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
   content: '';
   flex: 1;
   border-bottom: 1px solid var(--border-color);
}

.auth-divider::before {
   margin-right: 12px;
}

.auth-divider::after {
   margin-left: 12px;
}

.auth-footer {
   text-align: center;
   margin-top: 24px;
   color: var(--text-secondary);
   font-size: 0.9375rem;
}

.auth-footer a {
   color: var(--primary-light);
   font-weight: 600;
   text-decoration: none;
}

.auth-footer a:hover {
   text-decoration: underline;
}

/* Forms */
.form-group {
   margin-bottom: 20px;
}

.form-label {
   display: block;
   margin-bottom: 8px;
   font-size: 0.9375rem;
   font-weight: 500;
   color: var(--text-primary);
}

.form-input {
   width: 100%;
   padding: 12px 16px;
   background: var(--bg-elevated);
   border: 1px solid var(--border-color);
   border-radius: var(--radius-md);
   color: var(--text-primary);
   font-size: 1rem;
   transition: all 0.2s;
   font-family: inherit;
}

.form-input:focus {
   border-color: var(--primary);
   box-shadow: 0 0 0 2px var(--primary-glow);
   outline: none;
}

.form-input::placeholder {
   color: var(--text-muted);
   opacity: 0.6;
}

.form-select {
   appearance: none;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
   background-repeat: no-repeat;
   background-position: right 16px center;
   background-size: 16px;
}

.btn-lg {
   padding: 14px 24px;
   font-size: 1.125rem;
}

/* Google Play Button Styling */
.google-play-btn {
   display: inline-flex;
   align-items: center;
   background: #000;
   color: #fff;
   padding: 6px 16px;
   border-radius: 8px;
   text-decoration: none;
   border: 1px solid #a1a1aa;
   transition: all 0.3s ease;
   text-align: left;
   min-width: 160px;
}

.google-play-btn:hover {
   background: #111;
   border-color: #fff;
   transform: translateY(-2px);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
   color: #fff;
}

.google-play-icon {
   width: 24px;
   height: 24px;
   margin-right: 12px;
}

.google-play-text {
   display: flex;
   flex-direction: column;
   line-height: 1.1;
}

.google-play-text .small {
   font-size: 9px;
   font-weight: 500;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.google-play-text .big {
   font-size: 16px;
   font-weight: 700;
}