/* =========================================================
   POWER GAMING 7972
   LIVERIES PAGE
========================================================= */


/* =========================
   PAGE HERO
========================= */

.page-hero {
    padding: 150px 8% 80px;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 215, 0, 0.08),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            #0d0d0d,
            #1b1b1b
        );
}

.page-hero h1 {
    margin-bottom: 15px;

    font-size: clamp(38px, 5vw, 55px);

    color: var(--gold);

    font-weight: 700;

    line-height: 1.15;
}

.page-hero p {
    max-width: 700px;

    margin: auto;

    color: var(--text);

    font-size: 18px;

    line-height: 1.7;
}


/* =========================
   SEARCH
========================= */

.search-section {
    display: flex;

    justify-content: center;

    padding: 40px 8%;
}

.search-section input {
    width: 100%;

    max-width: 600px;

    padding: 18px 25px;

    background: var(--card);

    border: 2px solid var(--border);

    border-radius: 50px;

    color: var(--white);

    font-family: var(--font);

    font-size: 17px;

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.search-section input::placeholder {
    color: #888;
}

.search-section input:focus {
    border-color: var(--gold);

    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.25);
}


/* =========================
   FILTER BUTTONS
========================= */

.filter-section {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;

    padding: 20px 8% 60px;
}

.filter-btn {
    padding: 12px 25px;

    border: 1px solid var(--border);

    border-radius: 40px;

    background: var(--card);

    color: var(--white);

    font-family: var(--font);

    font-weight: 600;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);

    border-color: var(--gold);

    color: #000;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(255, 215, 0, 0.2);
}


/* =========================
   LIVERY GRID
========================= */

.livery-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(300px, 1fr)
        );

    gap: 35px;

    padding: 20px 8% 100px;
}


/* =========================
   LIVERY CARD
========================= */

.livery-card {
    position: relative;

    overflow: hidden;

    background: #141414;

    border: 1px solid #242424;

    border-radius: 20px;

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.livery-card:hover {
    transform: translateY(-10px);

    border-color: var(--gold);

    box-shadow:
        0 20px 40px rgba(255, 215, 0, 0.15);
}


/* =========================
   CARD IMAGE
========================= */

.livery-card img {
    display: block;

    width: 100%;

    height: 230px;

    object-fit: cover;

    transition:
        transform var(--transition);
}

.livery-card:hover img {
    transform: scale(1.06);
}


/* =========================
   CARD CONTENT
========================= */

.livery-card h3 {
    padding: 20px 20px 8px;

    color: var(--white);

    font-size: 22px;

    line-height: 1.3;
}

.livery-card p {
    padding: 0 20px 20px;

    color: #bdbdbd;

    line-height: 1.6;
}


/* =========================
   CARD BUTTONS
========================= */

.buttons {
    display: flex;

    gap: 12px;

    padding: 0 20px 25px;
}

.buttons a {
    flex: 1;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 45px;

    padding: 13px;

    border-radius: 10px;

    text-align: center;

    text-decoration: none;

    font-weight: 600;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.buttons a:hover {
    transform: translateY(-4px);
}


/* =========================
   YOUTUBE BUTTON
========================= */

.youtube {
    background: #ff0000;

    color: #fff;
}

.youtube:hover {
    box-shadow:
        0 8px 20px rgba(255, 0, 0, 0.25);
}


/* =========================
   DOWNLOAD BUTTON
========================= */

.download {
    background: var(--gold);

    color: #000;
}

.download:hover {
    box-shadow:
        0 8px 20px rgba(255, 215, 0, 0.25);
}


/* =========================
   BADGES
========================= */

.badge {
    position: absolute;

    top: 15px;

    left: 15px;

    z-index: 10;

    padding: 8px 14px;

    border-radius: 30px;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.new {
    background: #00c853;

    color: #fff;
}

.trending {
    background: #ff5722;

    color: #fff;
}


/* =========================
   PAGINATION
========================= */

.pagination {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 25px;

    padding: 60px 20px;
}

.pagination button {
    padding: 12px 25px;

    border: none;

    border-radius: 10px;

    background: var(--gold);

    color: #000;

    font-family: var(--font);

    font-weight: 600;

    cursor: pointer;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.pagination button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(255, 215, 0, 0.25);
}

.pagination button:disabled {
    opacity: 0.45;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}

.pagination span {
    color: var(--white);

    font-weight: 600;
}


/* =========================
   SEARCH / FILTER STATES
========================= */

.livery-card.is-hidden,
.livery-card.hidden {
    display: none;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .page-hero {
        padding: 130px 6% 65px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .search-section {
        padding: 30px 5%;
    }

    .filter-section {
        padding: 15px 5% 45px;
    }

    .livery-grid {
        grid-template-columns: 1fr;

        padding: 10px 5% 70px;
    }

    .livery-card img {
        height: 220px;
    }

}

@media (max-width: 500px) {

    .page-hero h1 {
        font-size: 34px;
    }

    .filter-btn {
        width: 100%;

        max-width: 280px;
    }

    .buttons {
        flex-direction: column;
    }

    .buttons a {
        width: 100%;
    }

    .pagination {
        gap: 15px;

        padding: 45px 15px;
    }

}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    .livery-card,
    .livery-card img,
    .filter-btn,
    .buttons a,
    .pagination button {
        transition: none;
    }

}