/* ============================================================
   Subpages Hero System
   Magazine / News / Sponsor / Contact
   ============================================================ */

#pg-landing .sub-hero {
    position: relative;
    padding: 100px 24px 60px;
    overflow: hidden;
}

#pg-landing .sub-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    min-height: 320px;
}

#pg-landing .sub-hero-content {
    max-width: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px;
}

#pg-landing .sub-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--color-brand);
    font-size: clamp(14px, 1.7vw, 17px);
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.15;
}

#pg-landing .sub-hero-tag--amber {
    color: #FBBF24;
}

#pg-landing .sub-hero-tag--violet {
    color: #A78BFA;
}

#pg-landing .sub-hero-title {
    margin: 0 0 24px;
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 1.08;
    letter-spacing: -1.5px;
    font-weight: 900;
    color: var(--color-text-primary);
}

#pg-landing .sub-hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, #22D3EE, #A78BFA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

#pg-landing .sub-hero-desc {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 18px;
    line-height: 1.75;
}

#pg-landing .sub-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 320px;
}

#pg-landing .sub-hero-ascii-wrap {
    width: min(100%, 540px);
    min-height: 300px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-align: center;
}
#pg-landing .sub-hero-ascii-wrap > * {
    width: 100%;
    text-align: center;
}

#pg-landing .sub-hero-ascii-wrap--book {
    width: min(100%, 560px);
    min-height: 310px;
}

#pg-landing .sub-hero-ascii-wrap--news {
    width: min(100%, 580px);
    min-height: 320px;
}

#pg-landing .sub-hero-ascii-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(34, 211, 238, 0.52);
    text-align: center;
}

#pg-landing .sub-hero-ascii-art {
    margin: 0;
    width: 100%;
    white-space: pre;
    overflow: visible;
    font-family: "Courier New", "Lucida Console", monospace;
    font-size: 12px;
    line-height: 1.18;
    letter-spacing: 0;
    text-align: center;
    color: rgba(34, 211, 238, 0.75);
    background: none;
    border: none;
    padding: 0;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
    user-select: none;
}

#pg-landing .sub-hero-ascii-wrap--news .sub-hero-ascii-art {
    font-size: 14px;
    line-height: 1.2;
    color: rgba(34, 211, 238, 0.82);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.35);
    opacity: 1;
    visibility: visible;
}

#pg-landing .sub-hero-ascii-caption {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1px;
    color: rgba(34, 211, 238, 0.25);
    text-align: center;
}

#pg-landing .sub-hero-bg-glow {
    position: absolute;
    left: 50%;
    bottom: -140px;
    width: min(96vw, 1100px);
    height: 360px;
    transform: translateX(-50%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(24px);
    opacity: 0.95;
}

@media (max-width: 1080px) {
    #pg-landing .sub-hero-inner {
        gap: 32px;
    }

    #pg-landing .sub-hero-ascii-wrap {
        min-height: 280px;
    }
}

@media (max-width: 920px) {
    #pg-landing .sub-hero {
        padding: 88px 20px 26px;
    }

    #pg-landing .sub-hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 0;
    }

    #pg-landing .sub-hero-content {
        max-width: 100%;
        min-height: 0;
    }

    #pg-landing .sub-hero-visual {
        display: none !important;
    }

    #pg-landing .sub-hero-ascii-wrap,
    #pg-landing .sub-hero-ascii-wrap--book {
        display: none !important;
    }

    #pg-landing .sub-hero-ascii-wrap--news {
        display: none !important;
    }

    #pg-landing .sub-hero-bg-glow {
        display: none;
    }

    #pg-landing .lp-magazine,
    #pg-landing .lp-sponsor,
    #pg-landing .lp-contact {
        padding-top: 24px !important;
    }
}

@media (max-width: 640px) {
    #pg-landing .sub-hero {
        padding: 82px 16px 22px;
    }

    #pg-landing .sub-hero-title {
        font-size: clamp(34px, 9.8vw, 58px);
    }

    #pg-landing .sub-hero-desc {
        font-size: 17px;
        line-height: 1.65;
    }
}

/* ============================================================
   LIGHT THEME — subpage hero inversion
   ============================================================ */
[data-theme="light"] #pg-landing .sub-hero {
    background: transparent;
}

[data-theme="light"] #pg-landing .sub-hero-desc {
    color: var(--color-text-secondary);
}

[data-theme="light"] #pg-landing .sub-hero-ascii-label,
[data-theme="light"] #pg-landing .sub-hero-ascii-caption {
    color: rgba(15, 23, 42, 0.80) !important;
}

[data-theme="light"] #pg-landing .sub-hero-ascii-art {
    color: rgba(15, 23, 42, 0.92) !important;
    text-shadow: none !important;
}

[data-theme="light"] #pg-landing .sub-hero-bg-glow {
    opacity: 0.55;
}

/* ── Light theme: subpage surface reset ───────────────────────── */
[data-theme="light"] #pg-landing,
[data-theme="light"] #pg-landing .sub-hero,
[data-theme="light"] #pg-landing .lp-magazine,
[data-theme="light"] #pg-landing .lp-community,
[data-theme="light"] #pg-landing .lp-sponsor,
[data-theme="light"] #pg-landing .lp-contact {
    background: var(--color-bg-body) !important;
}

[data-theme="light"] #pg-landing .sub-hero-inner,
[data-theme="light"] #pg-landing .sub-hero-content,
[data-theme="light"] #pg-landing .sub-hero-visual,
[data-theme="light"] #pg-landing .sub-hero-ascii-wrap {
    background: transparent !important;
}

[data-theme="light"] #pg-landing .sub-hero-bg-glow {
    opacity: 0.28 !important;
}

/* ============================================================
   LIGHT THEME — 뉴스 card override
   .lp-news-card는 .lp-community-card 위에 Stars도로 선언되어
   다크 하드코딩(#111111 bg / #1E1E1E border)이 덮어씌워짐
   → 라이트 Theme에서 background·테두리·텍스트를 명시 override
   ============================================================ */

/* card background + 테두리 */
[data-theme="light"] #pg-landing .lp-news-card {
    background: var(--color-bg-panel) !important;
    border-color: var(--color-border-main) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] #pg-landing .lp-news-card:hover {
    border-color: var(--color-border-light) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10) !important;
}

/* card Subject */
[data-theme="light"] #pg-landing .lp-news-card h3 {
    color: var(--color-text-primary) !important;
}

/* 본문 텍스트 */
[data-theme="light"] #pg-landing .lp-news-card p {
    color: var(--color-text-secondary) !important;
}

/* 날짜 badge (cyan → 라이트 brand 색) */
[data-theme="light"] #pg-landing .lp-news-date {
    color: var(--color-brand) !important;
    opacity: 0.9;
}

/* 공지/업데이트 badge */
[data-theme="light"] #pg-landing .lp-news-badge {
    background: rgba(8, 145, 178, 0.10) !important;
    color: var(--color-brand) !important;
    border-color: rgba(8, 145, 178, 0.25) !important;
}

[data-theme="light"] #pg-landing .lp-news-badge--soon {
    background: var(--color-bg-hover) !important;
    color: var(--color-text-tertiary) !important;
    border-color: var(--color-border-main) !important;
}
