﻿/* === GLOBAL FONT & THEME COLORS === */ 
* {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #A6A8AB; /* light grey theme */
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
}

/* Keep main content nicely centered */
main {
    max-width: 1400px;
    margin: 0 auto;
}

/* === HEADER TITLE — DARK-TECH MILITARY UI STYLE === */
header .header-title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #d7e9ff;
    opacity: 0.92;
}

/* === HEADER BUTTONS === */
#signin-btn,
#signout-btn,
#go-pro-btn,
button,
.btn,
.download-btn {
    background-color: #38B6FF;
    color: #ffffff !important;
    border: 1px solid #38B6FF;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* ===================================================================== */
/* ===================  NEON / CYBERPUNK FILTER BAR  =================== */
/* ===================================================================== */

/* Neon console wrapper */
.controls {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 12px auto;

    padding: 12px 18px;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 999px;

    background:
        radial-gradient(circle at top left,
            rgba(56, 182, 255, 0.40),
            rgba(15, 23, 42, 0.12)),
        radial-gradient(circle at bottom right,
            rgba(236, 72, 153, 0.35),
            rgba(15, 23, 42, 0.18)),
        #020617;

    border: 1px solid rgba(56, 182, 255, 0.90);
    box-shadow:
        0 0 10px rgba(56, 182, 255, 0.85),
        0 0 24px rgba(236, 72, 153, 0.70),
        0 18px 40px rgba(15, 23, 42, 0.80);
    overflow: hidden;
}

/* hologram grid overlay */
.controls::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;

    background-image:
        linear-gradient(120deg, rgba(56, 182, 255, 0.18) 1px, transparent 1px),
        linear-gradient(210deg, rgba(236, 72, 153, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.9;
}

/* subtle neon rim on top edge */
.controls::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 5px;
    height: 1px;
    border-radius: 999px;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(56, 182, 255, 0.0),
        rgba(56, 182, 255, 0.85),
        rgba(236, 72, 153, 0.0));
}

/* bring actual controls above hologram layer */
.controls > * {
    position: relative;
    z-index: 1;
}

/* CYBER CHIPS (inputs + selects share style) */
.controls input,
.controls select {
    min-width: 160px;
    max-width: 220px;
    height: 34px;
    box-sizing: border-box;

    text-align: center !important;
    text-align-last: center !important;

    border-radius: 999px;
    background:
        radial-gradient(circle at 20% 0%,
            rgba(56, 182, 255, 0.45),
            rgba(15, 23, 42, 1));
    border: 1px solid rgba(148, 163, 184, 0.85);
    color: #e5f2ff;
    box-shadow:
        0 0 4px rgba(56, 182, 255, 0.75),
        0 0 14px rgba(56, 182, 255, 0.65);
}

/* make chips feel segmented (desktop) */
.controls input:not(:last-child),
.controls select:not(:last-child) {
    margin-right: 2px;
}

/* placeholder alignment */
.controls input::placeholder {
    text-align: center;
    color: rgba(226, 232, 240, 0.75);
}

/* Base select styles (behaviour + text) */
select {
    padding: 6px;
    font-size: 14px;
    background: transparent;
    text-align-last: center;
    text-transform: uppercase;
}

/* Dropdown options uppercase too */
select option {
    text-transform: uppercase;
    background-color: #020617;
    color: #e5f2ff;
}

/* neon pulse animation */
@keyframes neonPulse {
    0% {
        box-shadow:
            0 0 4px rgba(56, 182, 255, 0.60),
            0 0 10px rgba(56, 182, 255, 0.50);
        transform: translateY(0);
    }
    40% {
        box-shadow:
            0 0 16px rgba(56, 182, 255, 1),
            0 0 36px rgba(236, 72, 153, 0.95);
        transform: translateY(-1px) scale(1.01);
    }
    100% {
        box-shadow:
            0 0 4px rgba(56, 182, 255, 0.60),
            0 0 10px rgba(56, 182, 255, 0.50);
        transform: translateY(0) scale(1);
    }
}

/* focus = neon outline + pulse */
select:focus,
.controls input:focus {
    outline: 2px solid #38B6FF !important;
    border-color: #38B6FF !important;
    box-shadow:
        0 0 0 1px rgba(56, 182, 255, 1),
        0 0 22px rgba(56, 182, 255, 1),
        0 0 36px rgba(236, 72, 153, 0.9);
    animation: neonPulse 0.35s ease-out;
}

/* Selected dropdown value hint */
select.selected {
    color: #38B6FF !important;
    font-weight: 600;
}

/* ===================================================================== */
/* =====================  NEON GRID + CARDS SECTION  ==================== */
/* ===================================================================== */

#catalog-grid,
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    max-width: 1400px;
    /* tiny gap so the glow doesn't sit directly under the counter text */
    margin: 6px auto 0 auto;
    padding: 20px;

    background: radial-gradient(circle at top left,
                    rgba(56, 182, 255, 0.30),
                    rgba(15, 23, 42, 0.95));
    border-radius: 20px;
    border: 2px solid rgba(56, 182, 255, 0.70);
    /* slightly softer glow so it doesn't overpower the model counter */
    box-shadow:
        0 0 10px rgba(56, 182, 255, 0.90),
        0 0 26px rgba(236, 72, 153, 0.75),
        0 18px 42px rgba(15, 23, 42, 0.85);
}

/* Neon-ish model cards */
.model-card {
    border: 1px solid rgba(148, 163, 184, 0.8);
    border-radius: 12px;
    padding: 15px;
    background: radial-gradient(circle at top,
                    rgba(15, 23, 42, 1),
                    rgba(15, 23, 42, 0.92));

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;

    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        border-color 0.18s ease-out,
        background 0.18s ease-out;
}

/* neon hover */
.model-card:hover {
    border-color: rgba(56, 182, 255, 0.95);
    box-shadow:
        0 0 10px rgba(56, 182, 255, 0.90),
        0 0 26px rgba(236, 72, 153, 0.80);
    transform: translateY(-2px);
    background: radial-gradient(circle at top,
                    rgba(15, 23, 42, 0.9),
                    rgba(15, 23, 42, 0.98));
}

/* BIGGER THUMBNAILS – dark holographic panel */
.model-card-thumb,
.model-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 40%, #1a1f2e 0%, #0d111c 100%);
    box-shadow:
        0 0 6px rgba(15, 23, 42, 0.8);
}

/* Old class names (kept for safety) */
.model-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 10px 0 4px 0;
    color: #e5f2ff;
}

model-card-meta {
    font-size: 13px;
    line-height: 18px;
    margin-bottom: 10px;
    color: #cbd5f5;
}

/* New class names */
.model-name {
    font-size: 15px;
    font-weight: 600;
    margin: 10px 0 4px 0;
    color: #e5f2ff;
}

.model-meta {
    font-size: 13px;
    line-height: 18px;
    margin-bottom: 6px;
    color: #cbd5f5;
}

/* Center the Download button inside the card */
.model-card .download-btn {
    align-self: center;
    margin-top: 10px;
}

/* Fallback container for older markup */
.model-card-actions {
    text-align: center;
}

/* === PAGINATION === */
#pagination-container {
    text-align: center;
    margin: 25px 0;
}

#page-indicator {
    font-size: 14px;
    font-weight: 500;
}

/* === COUNTERS UPDATED TO 14PX + BOLD === */

/* Download counter */
#ss-download-counter {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #b9d7f7;
    opacity: 0.75;
    text-shadow: none;
}

/* Model count (NO SHADOW) */
#model-count {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #b9d7f7;
    opacity: 0.9;
    text-shadow: none;
}

/* === MUTED TEXT === */
.text-muted {
    color: #A6A8AB;
}

/* === FOOTER === */
footer,
.site-footer,
.footer {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    font-size: 14px;
    font-weight: 400;
    color: #A6A8AB;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
}

footer a,
.site-footer a,
.footer a {
    color: #A6A8AB;
    text-decoration: underline;
}

footer span,
.site-footer span,
footer div,
.site-footer div,
footer p,
site-footer p,
.footer span,
.footer div,
.footer p {
    color: #A6A8AB;
}

/* ===================================================================== */
/* =================== RESPONSIVE / MOBILE ============================= */
/* ===================================================================== */

@media (max-width: 1400px) {
    #catalog-grid,
    .catalog-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    #catalog-grid,
    .catalog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    #catalog-grid,
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* FILTER TOGGLE BUTTON (for mobile) */
.filter-toggle {
    display: none;
    margin: 12px auto 0 auto;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
}

/* === CORE MOBILE BREAKPOINT === */

@media (max-width: 768px) {

    main {
        max-width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }

    header > div {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    header > div > div:first-child {
        display: none;
    }

    header > div > div:nth-child(2) {
        flex: 0 0 auto;
        text-align: center;
    }

    header > div > div:nth-child(3) {
        flex: 0 0 auto;
        align-items: center !important;
    }

    header img {
        height: 120px;
    }

    #auth-header-btn,
    #go-pro-btn {
        width: auto;
        min-width: 96px;
        justify-content: center;
    }

    #ss-download-counter {
        text-align: center !important;
        width: 100%;
    }

    .filter-toggle {
        display: inline-block;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        margin-top: 8px;
    }

    .controls input,
    .controls select {
        width: 100%;
        max-width: 100%;
    }

    .controls {
        display: none;
    }

    body.filters-open .controls {
        display: flex;
    }

    #catalog-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px 0;
        gap: 12px;
    }

    .model-card-thumb,
    .model-card img {
        height: 230px;
    }

    @media (max-width: 480px) {
        #catalog-grid,
        .catalog-grid {
            grid-template-columns: 1fr;
        }

        .model-card-thumb,
        .model-card img {
            height: 240px;
        }
    }
}

/* === OVERRIDES: mobile oval background only === */

@media (max-width: 768px) {
    .controls {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin-top: 8px;
    }

    .controls::before,
    .controls::after {
        display: none !important;
    }
}



