/* =========================================================
   STORM INDUSTRIES
   ANIME CATEGORY
   ========================================================= */

.category-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 150px 24px 90px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(245, 122, 27, 0.16),
            transparent 35%
        ),
        var(--bg);
}

.category-hero::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    right: -180px;
    top: 70px;
    border: 1px solid rgba(245, 122, 27, 0.22);
    border-radius: 50%;
}

.category-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: 40px;
    bottom: -170px;
    border: 1px solid rgba(245, 122, 27, 0.16);
    border-radius: 50%;
}

.category-hero .container {
    width: min(1200px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.category-hero-content {
    max-width: 900px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 32px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--storm-orange);
    transform: translateX(-5px);
}

.category-hero .section-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(245, 122, 27, 0.35);
    border-radius: 100px;
    background: rgba(245, 122, 27, 0.07);
    color: var(--storm-orange);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.category-hero h1 {
    margin: 0 0 20px;
    color: var(--text);
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -3px;
    font-weight: 900;
}

.category-hero-description {
    max-width: 760px;
    margin: 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   ANIME LIST SECTION
   ========================================================= */

.anime-list-section {
    padding: 100px 24px;
    background: var(--surface);
}

.anime-list-section .container {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.anime-list-section .section-heading {
    max-width: 800px;
    margin-bottom: 55px;
}

.anime-list-section .section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--storm-orange);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.anime-list-section .section-heading h2 {
    margin: 0 0 15px;
    color: var(--text);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -1.5px;
    font-weight: 900;
}

.anime-list-section .section-heading p {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.75;
}


/* =========================================================
   ANIME GRID
   ========================================================= */

.anime-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}


/* =========================================================
   ANIME CARD
   ========================================================= */

.anime-card {
    position: relative;
    min-width: 0;
    padding: 30px;
    overflow: hidden;

    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    transition:
        transform 0.35s cubic-bezier(.2,.8,.2,1),
        border-color 0.35s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.35s cubic-bezier(.2,.8,.2,1);
}

.anime-card::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -100px;
    top: -100px;

    border-radius: 50%;
    background: rgba(245, 122, 27, 0.08);

    transition: transform 0.45s ease;
}

.anime-card:hover {
    transform: translateY(-7px);
    border-color: rgba(245, 122, 27, 0.45);
    box-shadow: var(--shadow);
}

.anime-card:hover::before {
    transform: scale(1.45);
}


/* =========================================================
   CARD TOP
   ========================================================= */

.anime-card-top {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 30px;
}

.anime-number {
    color: var(--storm-orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.anime-type {
    padding: 6px 11px;

    border: 1px solid rgba(245, 122, 27, 0.22);
    border-radius: 100px;

    background: rgba(245, 122, 27, 0.07);
    color: var(--storm-orange);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================================================
   TITLE
   ========================================================= */

.anime-card-content {
    position: relative;
    z-index: 2;
}

.anime-card h3 {
    margin: 0 0 17px;

    color: var(--text);

    font-size: clamp(21px, 2.5vw, 28px);
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-weight: 900;
}


/* =========================================================
   GENRE
   ========================================================= */

.anime-genre {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin-bottom: 18px;

    color: var(--storm-orange);

    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
}

.anime-genre i {
    margin-top: 3px;
    flex-shrink: 0;
}


/* =========================================================
   SYNOPSIS
   ========================================================= */

.anime-synopsis {
    margin: 0;

    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   CARD FOOTER
   ========================================================= */

.anime-card-footer {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid var(--border);
}

.anime-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--text-soft);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.anime-status::before {
    content: "";
    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: var(--storm-orange);
}

.anime-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--storm-orange);

    font-size: 11px;
    font-weight: 900;

    transition: var(--transition);
}

.anime-link i {
    transition: var(--transition);
}

.anime-link:hover i {
    transform: translateX(5px);
}


/* =========================================================
   EMPTY / ERROR / LOADING
   ========================================================= */

.anime-state {
    grid-column: 1 / -1;

    min-height: 240px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    text-align: center;

    border: 1px dashed var(--border);
    border-radius: var(--radius-medium);

    background: var(--surface-soft);
}

.anime-state-content {
    max-width: 520px;
}

.anime-state i {
    display: block;
    margin-bottom: 18px;

    color: var(--storm-orange);

    font-size: 34px;
}

.anime-state h3 {
    margin: 0 0 10px;

    color: var(--text);

    font-size: 21px;
    font-weight: 900;
}

.anime-state p {
    margin: 0;

    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   CTA
   ========================================================= */

.category-cta {
    padding: 90px 24px;

    background:
        linear-gradient(
            135deg,
            var(--surface-soft),
            var(--bg)
        );
}

.category-cta .container {
    width: min(1000px, 100%);
    margin: 0 auto;
}

.category-cta-content {
    position: relative;
    overflow: hidden;

    padding: 65px;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background: var(--surface);

    text-align: center;

    box-shadow: var(--shadow);
}

.category-cta-content::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    top: -160px;
    right: -100px;

    border-radius: 50%;

    background: rgba(245, 122, 27, 0.08);
}

.category-cta-content .section-label {
    position: relative;
    z-index: 2;

    display: inline-block;
    margin-bottom: 15px;

    color: var(--storm-orange);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.category-cta-content h2 {
    position: relative;
    z-index: 2;

    margin: 0 0 15px;

    color: var(--text);

    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 900;
}

.category-cta-content p {
    position: relative;
    z-index: 2;

    max-width: 650px;
    margin: 0 auto 30px;

    color: var(--text-soft);

    line-height: 1.75;
}

.category-cta-content .cta-button {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 25px;

    border-radius: 100px;

    background: var(--storm-orange);
    color: #fff;

    font-size: 12px;
    font-weight: 900;

    transition: var(--transition);
}

.category-cta-content .cta-button:hover {
    background: var(--storm-orange-dark);
    transform: translateY(-3px);
}


/* =========================================================
   DARK MODE
   ========================================================= */

[data-theme="dark"] .category-hero {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(245, 122, 27, 0.18),
            transparent 35%
        ),
        var(--bg);
}

[data-theme="dark"] .anime-card {
    background: var(--surface-soft);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .anime-grid {
        grid-template-columns: 1fr;
    }

    .category-hero {
        min-height: auto;
    }
}


@media (max-width: 650px) {

    .category-hero {
        padding: 135px 20px 75px;
    }

    .category-hero h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .category-hero-description {
        font-size: 15px;
    }

    .anime-list-section {
        padding: 75px 20px;
    }

    .anime-card {
        padding: 25px;
    }

    .category-cta {
        padding: 70px 20px;
    }

    .category-cta-content {
        padding: 45px 25px;
    }
}


@media (max-width: 450px) {

    .category-hero {
        padding-top: 120px;
    }

    .category-hero h1 {
        font-size: 38px;
    }

    .anime-card {
        padding: 22px;
    }

    .anime-card-top {
        margin-bottom: 25px;
    }

    .anime-card h3 {
        font-size: 21px;
    }

    .anime-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-cta-content {
        padding: 38px 20px;
    }
}