/* ========================================
   ICONS PAGE STYLES - NEO-BRUTALISM
   Separated CSS for icons.html
======================================== */

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #ffffff;
}

::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

/* --- Glass Navigation --- NEO-BRUTALISM */
.glass-nav {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 3px solid #000000;
}

/* Nav text colors for light mode (neo-brutalism) */
.glass-nav .nav-logo-text {
    color: #18181b !important;
}
.glass-nav .nav-logo-text:hover {
    color: #52525b !important;
}
.glass-nav .nav-menu-item {
    color: #52525b !important;
}
.glass-nav .nav-menu-item:hover,
.glass-nav .nav-menu-item.active-page {
    color: #18181b !important;
}
.glass-nav .nav-donate-btn,
.glass-nav .nav-login-btn {
    color: #52525b !important;
}
.glass-nav .nav-donate-btn:hover,
.glass-nav .nav-login-btn:hover {
    color: #18181b !important;
}
.glass-nav .nav-mobile-btn {
    color: #52525b !important;
}
.glass-nav .nav-mobile-btn:hover {
    color: #18181b !important;
}

/* --- Grid Pattern Background --- */
.grid-pattern {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* --- Ambient Blob Animation --- */
.animate-blob {
    animation: blob 10s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

/* --- Fade In Up Animation --- */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* --- Collection Cards --- NEO-BRUTALISM */
.collection-card {
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 4px 4px 0px 0px #000000;
}

.collection-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px 0px #000000;
}

/* --- Toolbar --- NEO-BRUTALISM */
.toolbar-glass {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 3px solid #000000;
    border-radius: 12px;
    box-shadow: 4px 4px 0px 0px #000000;
}

/* --- Filter Buttons --- NEO-BRUTALISM */
.filter-btn {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.15s ease;
    box-shadow: 2px 2px 0px 0px #000000;
}

.filter-btn:hover {
    background: #F5C518;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px 0px #000000;
}

.filter-btn.active {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 2px 2px 0px 0px #000000;
}

/* --- Search Input --- NEO-BRUTALISM */
.search-input {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 2px 2px 0px 0px #000000;
}

.search-input:focus {
    background: #ffffff;
    border-color: #000000;
    box-shadow: 2px 2px 0px 0px #000000;
    transform: none;
    outline: none;
}

/* --- Load More Button --- NEO-BRUTALISM */
.load-more-btn {
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.15s ease;
    box-shadow: 4px 4px 0px 0px #000000;
}

.load-more-btn:hover {
    background: #F5C518;
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px 0px #000000;
}

/* --- No Scrollbar for Filters --- */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* --- Card Icon Container --- NEO-BRUTALISM */
.card-icon-container {
    transition: transform 0.2s ease;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px 0px #000000;
}

.collection-card:hover .card-icon-container {
    transform: scale(1.05);
}

/* --- Explore Link Animation --- */
.explore-link {
    opacity: 1;
    font-weight: 700;
}

/* =========================================
   LIGHT THEME OVERRIDES - NEO-BRUTALISM
   ========================================= */

/* --- Hero Section --- */
html.light .hero-title {
    color: #000000 !important;
    font-weight: 800 !important;
}

html.light .hero-description {
    color: #000000 !important;
    font-weight: 500 !important;
}

html.light .hero-badge {
    background-color: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    font-weight: 700 !important;
    box-shadow: 3px 3px 0px 0px #000000 !important;
}

html.light .hero-badge:hover {
    background: #F5C518 !important;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px 0px #000000 !important;
}

/* --- Toolbar (Collection Section) --- NEO-BRUTALISM */
html.light .toolbar-glass {
    background: #ffffff !important;
    border: 3px solid #000000 !important;
    border-radius: 12px !important;
    box-shadow: 4px 4px 0px 0px #000000 !important;
}

/* Search Dropdown - NEO-BRUTALISM */
html.light #search-type,
html.light #collection-sort {
    background-color: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: 2px 2px 0px 0px #000000 !important;
}

html.light #search-type:focus,
html.light #collection-sort:focus {
    background: #F5C518 !important;
    box-shadow: 4px 4px 0px 0px #000000 !important;
    transform: translate(-2px, -2px);
}

html.light .search-type-dropdown i {
    color: #000000 !important;
}

/* Search Input - NEO-BRUTALISM */
html.light .search-input {
    background-color: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: 2px 2px 0px 0px #000000 !important;
}

html.light .search-input::placeholder {
    color: #71717a !important;
}

html.light .search-input:focus {
    background-color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 2px 2px 0px 0px #000000 !important;
    transform: none !important;
}

html.light .search-icon {
    color: #000000 !important;
}

html.light .search-wrapper:focus-within .search-icon {
    color: #000000 !important;
}

/* Filters - NEO-BRUTALISM */
html.light .filter-btn {
    background-color: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    font-weight: 600 !important;
    box-shadow: 2px 2px 0px 0px #000000 !important;
}

html.light .filter-btn:hover {
    background-color: #F5C518 !important;
    color: #000000 !important;
    transform: translate(-2px, -2px) !important;
    box-shadow: 4px 4px 0px 0px #000000 !important;
}

html.light .filter-btn.active {
    background-color: #6366f1 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 2px 2px 0px 0px #000000 !important;
}

/* --- Collection Cards Light Theme --- NEO-BRUTALISM */
html.light .collection-card {
    background: #ffffff !important;
    border: 3px solid #000000 !important;
    border-radius: 12px !important;
    box-shadow: 4px 4px 0px 0px #000000 !important;
}

html.light .collection-card:hover {
    border-color: #000000 !important;
    box-shadow: 8px 8px 0px 0px #000000 !important;
    transform: translate(-4px, -4px) !important;
}

/* Card Text Colors */
html.light .collection-card h3 {
    color: #000000 !important;
    font-weight: 700 !important;
}

html.light .collection-card p {
    color: #000000 !important;
}

html.light .collection-card .card-body {
    background: transparent !important;
}

html.light .collection-card .card-footer {
    border-color: #000000 !important;
}

html.light .collection-card .card-count {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Card Header Fixes */
html.light .collection-card .card-header-overlay {
    background-color: transparent !important;
}

html.light .collection-card .card-icon-container {
    border: 2px solid #000000 !important;
    box-shadow: 2px 2px 0px 0px #000000 !important;
}

html.light .search-container {
    background: transparent !important;
}

/* Ensure card icons are properly centered */
.card-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    font-style: normal !important;
    width: 1em;
    height: 1em;
}

/* Background for light mode - NEO-BRUTALISM */
html.light body {
    background: #ffffff !important;
}

html.light .main-content {
    background: transparent !important;
}

/* ========================================
   RESPONSIVE STYLES
======================================== */

/* Ensure main content is visible */
.main-content {
    position: relative;
    z-index: 10;
}

/* Collections Section */
.collections-section {
    position: relative;
    z-index: 5;
}

/* Tablet and below */
@media (max-width: 930px) {
    /* Ensure AOS elements are visible on mobile */
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .collection-card {
        aspect-ratio: 4 / 3 !important;
        min-height: unset !important;
        max-height: 220px !important;
    }

    .collection-card .card-body {
        padding: 1rem !important;
    }

    .collection-card h3 {
        font-size: 1rem !important;
    }

    .collection-card .card-count {
        font-size: 0.8rem !important;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .collection-card {
        aspect-ratio: 1 / 1 !important;
        max-height: 180px !important;
    }

    .collection-card .card-body {
        padding: 0.75rem !important;
    }

    .collection-card h3 {
        font-size: 0.875rem !important;
    }

    .collection-card .card-count {
        font-size: 0.75rem !important;
    }

    .hero-header {
        padding: 0 1rem;
    }

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

    .toolbar-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .toolbar-wrapper > * {
        width: 100%;
    }
}