/* 
   Attemptry - Global Styles 
   Premium Dark Theme & Glassmorphism Design System 
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #121212;
    --bg-card: rgba(20, 20, 20, 0.6);
    --bg-card-hover: rgba(30, 30, 30, 0.8);

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --text-pricing-disabled: #ff0000;

    --accent-primary: #00ff88;
    /* Electric Green */
    --accent-secondary: #00cc6a;
    --accent-glow: rgba(0, 255, 136, 0.4);

    --border-color: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(255, 255, 255, 0.3);

    /* Spacing - Scaled Down */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Typography - Scaled Down */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Effects */
    --glass-bg: rgba(20, 20, 20, 0.85);
    /* Slightly more opaque for better readability */
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-backdrop: blur(16px);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px var(--accent-glow);

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 0.95rem;
    /* Reduced from default */
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography - Scaled Down */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    /* Tighter spacing */
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.02em;
}

/* Was 3.5rem */
h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

/* Was 2.5rem */
h3 {
    font-size: 1.5rem;
}

/* Was 1.75rem */
p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

/* Utilities */
.container {
    max-width: 1400px;
    /* Kept wide */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    /* Smaller padding */
    border-radius: 6px;
    /* Slightly tighter radius */
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Navbar - Refined */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    /* Reduced padding */
    transition: all var(--transition-medium);
    background: rgba(5, 5, 5, 0.85);
    /* Always visible background for better readability initially */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Constant border for definition */
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    /* Reduced */
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    /* More solid feel */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    /* Reduced */
    color: var(--text-secondary);
    text-transform: uppercase;
    /* Cleaner, tool-like */
    letter-spacing: 0.05em;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    color: var(--accent-primary);
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Hero Section - Compacted */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 8rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(20, 20, 30, 1) 0%, var(--bg-primary) 100%);
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fallback gradient if image fails or while loading */
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 204, 106, 0.05) 0%, transparent 50%);
    z-index: 0;
}

/* Add background image support if available */
.hero.has-bg {
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
}

.hero.has-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.7);
    /* Overlay for readability */
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.05) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

/* Removed .hero-visual styles */

/* Category Grid */
.categories {
    padding: var(--spacing-xl) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-md);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Collapsible Filter Groups */
.filter-group {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 1.5rem;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group-header .fa-chevron-down {
    transition: transform var(--transition-fast);
}

.filter-group.collapsed .filter-group-header .fa-chevron-down {
    transform: rotate(-90deg);
}

.filter-options {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
    max-height: 1000px;
    opacity: 1;
}

.filter-group.collapsed .filter-options {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

/* Premium Sort Dropdown */
.results-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.results-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.results-stats {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.results-stats span {
    color: var(--text-primary);
    font-weight: 600;
}

.results-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.results-actions label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-actions label i {
    color: var(--accent-primary);
}

.sort-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 0.75rem 3rem 0.75rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.5L7 9.5L11 5.5' stroke='%2300ff88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: all var(--transition-fast);
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: 180px;
}

.sort-dropdown:hover {
    border-color: var(--accent-primary);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.15), 0 4px 12px rgba(0, 0, 0, 0.4);
    /*transform: translateY(-1px);*/
}

.sort-dropdown:focus {
    border-color: var(--accent-primary);
    background-color: rgba(255, 255, 255, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 8.5L7 4.5L11 8.5' stroke='%2300ff88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.sort-dropdown option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
}


.category-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-fast);
    cursor: pointer;
}

.category-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.category-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Featured Section */
.featured {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.asset-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-fast);
    border: 1px solid #1c1c1c;
}

.asset-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-focus);
    box-shadow: var(--shadow-md);
}

.asset-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.asset-card:hover .asset-image img {
    transform: scale(1.05);
}

.asset-details {
    padding: 1.25rem;
}

.asset-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.asset-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #ffaa00;
}

/* Footer */
.footer {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-tertiary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: var(--spacing-lg);
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    display: block;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Footer Newsletter & Social Enhancements */
.footer-links form {
    display: flex;
    flex-direction: column;
}

.footer-links p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links form input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.footer-links form input::placeholder {
    color: var(--text-muted);
}

.footer-links form input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.1);
}

.footer-links form button {
    width: 100%;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.85rem;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 0.5rem;
}

.footer-links form button:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--accent-glow);
}

.footer-brand .logo {
    text-transform: lowercase;
    /* Explicitly lowercase for footer as per reference */
    font-size: 1.5rem;
    /* Slightly larger in footer */
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-brand .social-links {
    display: flex;
    gap: 1.5rem;
    /* Increased gap for cleaner look */
    margin-top: 2rem;
}

/* Minimalist Social Icons matching reference */
.footer-brand .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--text-primary);
    /* White icons */
    transition: all var(--transition-fast);
    font-size: 1.2rem;
}

.footer-brand .social-links a:hover {
    background: transparent;
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: none;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-actions {
        display: flex !important;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero {
        height: auto;
        padding: 120px 0 80px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 3rem;
    }

    .hero-visual {
        position: relative;
        width: 100%;
        height: 300px;
        transform: none;
        right: auto;
        top: auto;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        /* Full width for better mobile experience */
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 3rem 2rem;
        /* Spacing for close button area */
        transition: right 0.3s ease-in-out;
        z-index: 999;
        align-items: center;
        /* Center items */
        text-align: center;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        /* Larger touch targets */
        margin-bottom: 1rem;
    }

    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        z-index: 1001;
        cursor: pointer;
        color: var(--text-primary);
        transition: var(--transition-fast);
    }

    .mobile-toggle:hover {
        color: var(--accent-primary);
    }

    .mobile-toggle i {
        pointer-events: none;
    }
}

/* Force hide mobile actions on desktop */
.mobile-actions {
    display: none !important;
}

@media (max-width: 968px) {
    .mobile-actions {
        display: flex !important;
    }

    /* Ensure buttons in mobile menu have proper text color */
    .mobile-actions .btn {
        text-align: center;
        justify-content: center;
    }

    .mobile-actions .btn-primary {
        color: var(--bg-primary) !important;
        font-weight: 600;
    }

    .mobile-actions .btn-secondary {
        color: var(--text-primary) !important;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* =========================================
   Library 2.0 - Premium Redesign
   ========================================= */

/* Library Hero & Search */
.library-hero {
    position: relative;
    padding: 180px 0 4rem;
    /* More spacing from top */
    background: radial-gradient(circle at 50% 20%, rgba(20, 20, 30, 1) 0%, var(--bg-primary) 80%);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 3rem;
}

.library-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_bg.png');
    /* Reuse hero bg if available for continuity */
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.library-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-search-wrapper {
    position: relative;
    max-width: 700px;
    margin: 2rem auto 1.5rem;
}

.search-input-large {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-body);
    transition: all var(--transition-medium);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-input-large:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
    outline: none;
}

.search-icon-large {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color var(--transition-fast);
}

.search-input-large:focus+.search-icon-large {
    color: var(--accent-primary);
}

.search-tags.hero-tags {
    justify-content: center;
    gap: 0.5rem;
}

.search-tags.hero-tags .tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.search-tags.hero-tags .tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

/* Horizontal scrolling tags for mobile */
@media (max-width: 600px) {
    .search-tags.hero-tags {
        display: flex;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0.5rem 0;
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .search-tags.hero-tags::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .search-tags.hero-tags .tag {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Library Grid Layout */
.library-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    padding-bottom: 6rem;
}

/* Premium Sidebar */
.sidebar-premium {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 1.5rem;
}

.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    cursor: pointer;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-muted);
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.filter-item:hover {
    color: var(--text-primary);
}

.filter-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.filter-item input:checked+.filter-checkbox {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.filter-item input:checked+.filter-checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: black;
}

.filter-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: #444;
}

/* Cinematic Cards */
.results-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.results-stats {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.results-stats span {
    color: var(--text-primary);
    font-weight: 600;
}

.card-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.premium-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    position: relative;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.premium-card:hover .card-thumb img {
    transform: scale(1.08);
    /* Cinematic slow zoom */
}

/* Overlay gradient on image for text readability if needed, or just style */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.premium-card:hover .card-overlay {
    opacity: 0.4;
}

.card-content {
    padding: 1rem 1.25rem;
    position: relative;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.card-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #333;
}

.card-price {
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.card-price.free {
    color: var(--accent-primary);
    background: rgba(0, 255, 136, 0.1);
}

.card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.premium-badge {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.premium-badge.pro {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Mobile Library Filters */
#filterToggle {
    display: none;
    margin-bottom: 1.5rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

#filterToggle:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.12);
}

#filterToggle i {
    color: var(--accent-primary);
}

.close-sidebar {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.5rem;
    z-index: 1002;
    transition: color var(--transition-fast);
}

.close-sidebar:hover {
    color: var(--accent-primary);
}

@media (max-width: 968px) {
    .library-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #filterToggle {
        display: flex;
    }

    .sidebar-premium {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-secondary);
        z-index: 1000;
        padding: 4rem 2rem 2rem;
        overflow-y: auto;
        transition: left 0.3s ease-in-out;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-premium.active {
        left: 0;
    }

    .close-sidebar {
        display: flex !important;
    }

    .card-grid-premium {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .results-header-premium {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .results-actions {
        width: 100%;
    }

    .sort-dropdown {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .card-grid-premium {
        grid-template-columns: 1fr;
    }

    .library-hero {
        padding: 140px 0 3rem;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .search-input-large {
        padding: 0.85rem 1rem 0.85rem 3.25rem;
        font-size: 1rem;
        border-radius: 12px;
    }

    .search-icon-large {
        left: 1.1rem;
        font-size: 1.1rem;
    }

    .results-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }

    .results-actions label {
        font-size: 0.85rem;
        margin-left: 0.25rem;
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
    }

    .sort-dropdown {
        width: 100% !important;
        padding: 0.7rem 3rem 0.7rem 1rem !important;
    }
}

/* Auth Pages Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, rgba(20, 20, 30, 1) 0%, var(--bg-primary) 100%);
    padding: 120px 2rem 4rem;
    /* Top padding to clear fixed navbar */
}

.auth-card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 3rem;
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.social-login {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-container {
        padding-top: 100px;
    }
}

/* Contact Page Styles */
.contact-hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 6rem;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, rgba(20, 20, 30, 1) 0%, var(--bg-primary) 100%);
    text-align: center;
}

.contact-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7), var(--bg-primary));
    z-index: 0;
}

.contact-hero .container {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding: 4rem 0 8rem;
}

.contact-info-card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    transition: transform var(--transition-fast);
}

.info-item:hover {
    transform: translateX(10px);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.05);
}

.info-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: var(--glass-border);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.contact-form-card h2 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.form-control-premium {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-control-premium:focus {
    border-color: var(--accent-primary);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
}

.form-control-premium::placeholder {
    color: var(--text-muted);
}

select.form-control-premium {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.5L7 9.5L11 5.5' stroke='%2300ff88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    cursor: pointer;
}

.form-control-premium option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1rem;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-hero {
        padding-top: 140px;
        min-height: auto;
    }
}

@media (max-width: 480px) {

    .contact-info-card,
    .contact-form-card {
        padding: 2rem 1.5rem;
    }
}

/* Asset Page Specific Styles */
.asset-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 120px 0 4rem;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main i {
    font-size: 5rem;
    color: #333;
}

.gallery-thumbs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumb {
    width: 100px;
    height: 60px;
    flex-shrink: 0;
    background: #1a1a1a;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.thumb:hover,
.thumb.active {
    border-color: var(--accent-primary);
    opacity: 1;
}

.asset-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.asset-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.license-box {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.license-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.license-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-actions .btn-primary {
    font-size: 1.1rem;
}

.description-tabs {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.description-tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding-bottom: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.tab-content h3 {
    margin-top: 2rem;
    font-size: 1.25rem;
}

.tab-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 8px;
}

.spec-item span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.spec-item strong {
    color: var(--text-primary);
}

.related-section {
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.related-section h2 {
    margin-bottom: 2rem;
}

@media (max-width: 968px) {
    .asset-layout {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        padding-top: 100px;
    }

    .asset-sidebar {
        order: -1;
    }
}

@media (max-width: 600px) {
    .asset-header h1 {
        font-size: 1.75rem;
    }

    .price-tag {
        font-size: 1.5rem;
    }

    .spec-grid {
        grid-template-columns: 1fr !important;
    }

    .description-tabs {
        gap: 1.25rem;
        font-size: 0.9rem;
    }

    .gallery-main i {
        font-size: 3rem;
    }
}