/* CSS Variables - Design System */
:root {
    /* Colors (HSL format) */
    --background: hsl(230, 24%, 8%);
    --foreground: hsl(0, 0%, 98%);
    --card: hsl(230, 24%, 10%);
    --card-foreground: hsl(0, 0%, 98%);
    --primary: hsl(280, 100%, 70%);
    --primary-foreground: hsl(230, 24%, 8%);
    --secondary: hsl(230, 20%, 15%);
    --secondary-foreground: hsl(0, 0%, 98%);
    --muted: hsl(230, 20%, 15%);
    --muted-foreground: hsl(0, 0%, 65%);
    --accent: hsl(320, 100%, 75%);
    --accent-foreground: hsl(230, 24%, 8%);
    --border: hsl(230, 20%, 18%);
    --input: hsl(230, 20%, 18%);
    
    /* Custom anime colors */
    --anime-pink: hsl(330, 100%, 70%);
    --anime-blue: hsl(220, 100%, 65%);
    --anime-purple: hsl(280, 100%, 70%);
    --anime-cyan: hsl(180, 100%, 70%);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--anime-purple), var(--anime-pink));
    --gradient-secondary: linear-gradient(135deg, var(--anime-blue), var(--anime-cyan));
    --gradient-hero: linear-gradient(135deg, var(--background), hsl(230, 24%, 12%));
    
    /* Shadows */
    --shadow-glow: 0 0 30px hsla(280, 100%, 70%, 0.3);
    --shadow-card: 0 10px 30px hsla(230, 24%, 4%, 0.5);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border radius */
    --radius: 0.75rem;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 30, 47, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-title {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--anime-purple);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input {
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    color: var(--foreground);
    width: 200px;
}

.search-input::placeholder {
    color: var(--muted-foreground);
}

.search-btn {
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    padding: 0.5rem;
    color: var(--primary-foreground);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-btn:hover {
    background: var(--accent);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--background), rgba(26, 30, 47, 0.5), transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 4rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.white-text {
    color: white;
}

.hero-description {
    font-size: 1.25rem;
    color: hsl(0, 0%, 80%);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-number.purple { color: var(--anime-purple); }
.stat-number.pink { color: var(--anime-pink); }
.stat-number.blue { color: var(--anime-blue); }
.stat-number.cyan { color: var(--anime-cyan); }

.stat-label {
    color: var(--muted-foreground);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px hsla(280, 100%, 70%, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: var(--background);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--card-foreground);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.wallpaper-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    border: 1px solid var(--border);
}

.wallpaper-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px hsla(230, 24%, 4%, 0.7);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.wallpaper-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.wallpaper-card:hover .card-overlay {
    opacity: 1;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.card-content {
    padding: 1rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--card-foreground);
}

.card-category {
    color: var(--anime-purple);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Footer */
.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.footer-heading {
    color: var(--card-foreground);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--anime-purple);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: var(--anime-purple);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    text-align: center;
    color: var(--muted-foreground);
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-content {
        max-width: 64rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-description {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-search {
        flex: 1;
        justify-content: flex-end;
    }
    
    .search-input {
        width: 150px;
    }
    
    .category-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

/* Hidden utility */
.hidden {
    display: none !important;
}