/* ===== COMMON PAGE STYLES ===== */

/* ---- Page Hero ---- */
.page-hero {
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,0.16), transparent 30%),
        linear-gradient(120deg, var(--text-color) 0%, var(--page-hero-gradient-mid, #174f91) 45%, var(--page-hero-gradient-end, #0b0f68) 100%);
    padding: 28px 0;
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

@media (min-width: 641px) and (max-width: 992px) {
    .page-hero {
        padding: 26px 0 24px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .page-hero-sub {
        font-size: 13px;
    }
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: auto -8% -58px auto;
    width: 360px;
    height: 160px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    transform: rotate(-12deg);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: .24;
    pointer-events: none;
}

.page-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.page-hero-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.page-hero-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 7px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.page-hero-label i {
    color: #d7ecff;
    font-size: 13px;
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(25px, 2.7vw, 34px);
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.12;
    letter-spacing: 0;
    text-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

.page-hero-sub {
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    margin: 0;
    line-height: 1.45;
}

/* Breadcrumb */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.72);
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: #fff;
}

.breadcrumb-nav .sep {
    opacity: 0.44;
    font-size: 10px;
}

.breadcrumb-nav .current {
    color: #fff;
    font-weight: 800;
}

/* ---- Page Content ---- */
.page-content {
    background: #f4f7fb;
    min-height: 50vh;
}

.page-content-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* ---- Section Title ---- */
.section-title {
    text-align: center;
    margin-bottom: 28px;
}

.section-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.section-title .title-bar {
    width: 32px;
    height: 3px;
    background: var(--background-color);
    border-radius: 3px;
    margin: 0 auto;
}

/* ---- Card base ---- */
.page-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.page-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.1);
}

/* ---- Empty state ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #bbb;
}

.empty-state i {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 14px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .page-hero {
        padding: 18px 0 16px;
        margin-bottom: 12px;
    }

    .page-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
        padding: 0 16px;
    }

    .page-hero-label {
        font-size: 9px;
        letter-spacing: 1.05px;
        padding: 4px 9px;
        margin-bottom: 5px;
    }

    .page-hero h1 {
        font-size: 21px;
        line-height: 1.16;
        margin-bottom: 4px;
    }

    .page-hero-sub {
        font-size: 11.5px;
        line-height: 1.35;
    }

    .breadcrumb-nav {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        padding: 6px 9px;
        font-size: 10.5px;
        scrollbar-width: none;
        gap: 5px;
    }

    .breadcrumb-nav::-webkit-scrollbar {
        display: none;
    }
}
