/* ══════════════════════════════
   SECTION TRANSITION MAGIC
══════════════════════════════ */
.page-section {
    padding: 4px 0;
    animation: sectionFadeIn 0.4s var(--ease-standard) forwards;
}
.page-section.sec-exit {
    animation: sectionFadeOut 0.4s ease forwards;
}
@keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(15px) scale(0.98); filter: blur(4px); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes sectionFadeOut {
    from { opacity: 1; transform: scale(1); filter: blur(0); }
    to   { opacity: 0; transform: scale(0.97); filter: blur(6px); }
}

.page-section { padding: 24px; }

/* ══════════════════════════════
   DIVIDERS
══════════════════════════════ */
.rune-divider { display: flex; align-items: center; gap: 14px; margin: 32px 0; }
.rune-line {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
    transition: background var(--dur-base);
}
.rune-sym {
    font-size: var(--text-sm); font-weight: var(--fw-bold); color: var(--gold); opacity: 0.5;
    letter-spacing: 0.25em; white-space: nowrap; flex-shrink: 0; transition: color var(--dur-base);
    animation: runeSymGlow 4s ease-in-out infinite;
}
@keyframes runeSymGlow {
    0%, 100% { opacity: 0.5; text-shadow: none; }
    50% { opacity: 0.8; text-shadow: 0 0 8px var(--gold); }
}

/* ══════════════════════════════
   INTEREST GRID (About)
══════════════════════════════ */
.interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.interest-card {
    display: flex; align-items: center; gap: 18px;
    padding: 20px 24px; background: rgba(12,10,30,0.5);
    border: 1px solid var(--seal-border); border-left: 3px solid var(--gold); border-radius: var(--radius-md);
    transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-bounce), box-shadow var(--dur-fast), opacity var(--dur-fast);
    transform-style: preserve-3d;
    box-shadow: 0 2px 12px var(--ink-25), inset 0 1px 0 var(--gold-04);
}
.interest-card:hover {
    border-color: var(--gold); background: var(--gold-04);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--ink-30), 0 0 12px var(--card-glow), inset 0 1px 0 var(--gold-06);
}
.interest-icon { font-size: var(--text-3xl); flex-shrink: 0; line-height: 1; }
.interest-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.interest-name {
    font-size: var(--text-lg); font-weight: var(--fw-bold); color: var(--text);
    letter-spacing: 0.06em; transition: color var(--dur-quick);
}
.interest-card:hover .interest-name { color: var(--gold); }
.interest-detail { font-style: italic; font-size: var(--text-base); color: var(--text-dim); transition: color var(--dur-quick); }

/* ══════════════════════════════
   LIVE SECTION
══════════════════════════════ */
.live-desc {
    font-style: italic; font-size: var(--text-lg); color: var(--text-dim);
    letter-spacing: 0.04em; margin-bottom: 24px; transition: color var(--dur-base);
}
.live-tabs {
    display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.live-tab {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; font-size: var(--text-md); font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    color: var(--text-dim); background: rgba(12,10,30,0.5);
    border: 1px solid var(--seal-border); border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-bounce), box-shadow var(--dur-fast), opacity var(--dur-fast);
}
.live-tab:hover {
    color: var(--gold); border-color: var(--gold);
    background: var(--gold-04);
}
.live-tab.active {
    color: var(--gold); border-color: var(--gold);
    background: var(--gold-08);
    box-shadow: 0 0 12px var(--gold-10);
}
.live-tab[data-platform="twitch"].active  { --tab-color: #9146ff; color: #9146ff; border-color: #9146ff; box-shadow: 0 0 12px rgba(145,70,255,0.15); }
.live-tab[data-platform="kick"].active    { --tab-color: #53fc18; color: #53fc18; border-color: #53fc18; box-shadow: 0 0 12px rgba(83,252,24,0.15); }
.live-tab[data-platform="youtube"].active { --tab-color: #ff4444; color: #ff4444; border-color: #ff4444; box-shadow: 0 0 12px rgba(255,68,68,0.15); }

.live-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    min-height: 480px;
}
.live-player {
    position: relative;
    background: rgba(12,10,30,0.6);
    border: 1px solid var(--seal-border); border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 4px 24px var(--ink-30), inset 0 1px 0 var(--gold-04);
}
.live-player iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: none; border-radius: 9px;
}
.live-chat {
    background: rgba(12,10,30,0.6);
    border: 1px solid var(--seal-border); border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 480px;
    box-shadow: 0 4px 24px var(--ink-30), inset 0 1px 0 var(--gold-04);
}
.live-chat iframe {
    width: 100%; height: 100%;
    border: none; border-radius: 9px;
}

/* Offline state */
.live-offline {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 60px 24px; text-align: center;
    background: rgba(12,10,30,0.4);
    border: 1px solid var(--seal-border); border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px var(--ink-20);
}
.live-offline-icon {
    font-size: 3rem; margin-bottom: 16px;
    animation: runeFloat 3s ease-in-out infinite alternate;
}
.live-offline-text {
    font-style: italic; font-size: var(--text-lg);
    color: var(--text-dim); max-width: 400px; line-height: 1.7;
}

/* Light mode adjustments */
[data-theme="light"] .live-player,
[data-theme="light"] .live-chat {
    background: rgba(240,232,216,0.6);
}
[data-theme="light"] .live-tab {
    background: rgba(240,232,216,0.5);
}
[data-theme="light"] .live-offline {
    background: rgba(240,232,216,0.4);
}

/* ── Live schedule ── */
.live-schedule {
    margin-top: 32px; width: 100%; max-width: 320px;
}
.live-schedule-title {
    font-size: var(--text-md); color: var(--gold); text-align: center;
    letter-spacing: 0.15em; margin-bottom: 16px;
    font-family: inherit; font-weight: var(--fw-bold);
}
.live-schedule-items {
    display: flex; flex-direction: column; gap: 8px;
}
.live-schedule-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px;
    background: rgba(12,10,30,0.4); border: 1px solid var(--seal-border);
    border-left: 3px solid var(--purple); border-radius: var(--radius-sm);
    font-size: var(--text-base); transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast), opacity var(--dur-fast);
}
.live-schedule-item:hover {
    border-color: var(--gold); background: var(--gold-04);
}
.live-schedule-day { color: var(--text); font-weight: var(--fw-bold); }
.live-schedule-time { color: var(--gold); font-weight: var(--fw-bold); letter-spacing: 0.06em; }
[data-theme="light"] .live-schedule-item { background: rgba(240,232,216,0.4); }

/* ══════════════════════════════
   STREAM COUNTDOWN
══════════════════════════════ */
.live-countdown-wrap {
    margin-top: 24px; display: flex; flex-direction: column;
    align-items: center; gap: 6px;
}
.live-countdown-label {
    font-size: var(--text-base); color: var(--text-dim); letter-spacing: 0.1em;
    text-transform: uppercase;
}
.live-countdown {
    font-size: 1.8rem; font-weight: var(--fw-heavy); color: var(--gold);
    letter-spacing: 0.15em; font-variant-numeric: tabular-nums;
    text-shadow: 0 0 15px var(--gold-30);
    animation: countdownPulse 2s ease-in-out infinite;
}
@keyframes countdownPulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; text-shadow: 0 0 20px var(--gold-50); }
}

/* ══════════════════════════════
   DISCORD WIDGET
══════════════════════════════ */
.discord-widget {
    max-width: 400px; margin: 0 auto;
    border: 1px solid var(--seal-border); border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px var(--ink-30);
}
.discord-widget iframe {
    display: block; border: none;
}
[data-theme="light"] .discord-widget iframe {
    filter: sepia(0.1) brightness(1.05);
}

/* ══════════════════════════════
   PROJECTS SECTION (About)
══════════════════════════════ */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3.5vw, 1.7rem); font-weight: var(--fw-bold);
    color: var(--gold); letter-spacing: 0.08em; margin-bottom: 18px;
    text-shadow: 0 0 14px rgba(192,200,224,0.25);
    transition: color var(--dur-base);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.project-card {
    display: flex; flex-direction: column; gap: 12px;
    padding: 22px 24px; background: rgba(12,10,30,0.5);
    border: 1px solid var(--seal-border); border-left: 3px solid var(--purple); border-radius: var(--radius-md);
    text-decoration: none; color: var(--text);
    transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-bounce), box-shadow var(--dur-fast), opacity var(--dur-fast); position: relative;
    box-shadow: 0 2px 12px var(--ink-25), inset 0 1px 0 var(--gold-04);
}
.project-card:hover {
    border-color: var(--gold); background: var(--gold-04);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--ink-30), 0 0 14px var(--card-glow), inset 0 1px 0 var(--gold-06);
}

.project-header {
    display: flex; align-items: center; gap: 10px;
}
.project-gh-icon {
    font-size: var(--text-2xl); color: var(--text-dim);
    transition: color var(--dur-brisk);
}
.project-card:hover .project-gh-icon { color: var(--gold); }
.project-name {
    font-size: 1.08rem; font-weight: var(--fw-bold); letter-spacing: 0.06em;
    color: var(--text); transition: color var(--dur-brisk);
}
.project-card:hover .project-name { color: var(--gold); }

.proj-badge {
    font-size: 0.68rem; font-weight: var(--fw-bold); letter-spacing: 0.08em;
    padding: 2px 8px; border-radius: 3px; text-transform: uppercase;
}
.proj-badge--archived {
    color: var(--text-dim); border: 1px solid var(--card-border);
}

.project-desc {
    font-size: var(--text-md); line-height: 1.6; color: var(--text-dim);
    font-style: italic; transition: color var(--dur-brisk);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.project-stats {
    display: flex; flex-wrap: wrap; gap: 12px 18px;
    margin-top: auto; padding-top: 8px;
    border-top: 1px solid var(--card-border);
}
.proj-stat {
    display: flex; align-items: center; gap: 5px;
    font-size: var(--text-sm); font-weight: var(--fw-bold); color: var(--text-dim);
    letter-spacing: 0.04em; white-space: nowrap;
    transition: color var(--dur-brisk);
}
.proj-stat i { font-size: 0.72rem; color: var(--gold); opacity: 0.7; }
.proj-stat--date { margin-left: auto; }

.proj-lang-dot {
    display: inline-block; width: 10px; height: 10px;
    border-radius: 50%; flex-shrink: 0;
}

/* Topics */
.proj-topics {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.proj-topic {
    font-size: 0.70rem; font-weight: var(--fw-bold); letter-spacing: 0.04em;
    padding: 2px 10px; border-radius: var(--radius-xl);
    color: var(--purple); background: rgba(167,139,250,0.10);
    border: 1px solid rgba(167,139,250,0.20);
    transition: background-color var(--dur-quick), border-color var(--dur-quick), color var(--dur-quick), transform var(--dur-quick), box-shadow var(--dur-quick), opacity var(--dur-quick);
}
[data-theme="light"] .proj-topic {
    color: var(--purple); background: rgba(139,28,34,0.08);
    border-color: rgba(139,28,34,0.18);
}

/* Dates row */
.project-dates {
    display: flex; flex-wrap: wrap; gap: 8px 18px;
    padding-top: 6px;
}
.proj-date {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.74rem; color: var(--text-faint);
    letter-spacing: 0.03em; white-space: nowrap;
    transition: color var(--dur-brisk);
}
.proj-date i { font-size: 0.68rem; color: var(--gold); opacity: 0.5; }

/* Loading & error states */
.project-card--loading {
    justify-content: center; align-items: center; min-height: 100px;
    font-style: italic; color: var(--text-dim); gap: 8px;
    animation: projLoadPulse 2s ease-in-out infinite;
}
@keyframes projLoadPulse {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}
.proj-loading-rune {
    font-size: 1.4rem; color: var(--gold);
    animation: spinCW 4s linear infinite;
    display: inline-block;
}

.project-card--error {
    flex-direction: row; align-items: center;
    color: var(--text-dim); font-style: italic;
    border-color: rgba(200, 60, 60, 0.25);
}
.project-error-icon { font-size: 1.2rem; opacity: 0.6; }
.project-error-text { font-size: var(--text-base); }

/* ══════════════════════════════
   LINKS SECTION
══════════════════════════════ */
.links-intro { margin-bottom: 24px; }
.links-desc  { font-style: italic; font-size: var(--text-lg); color: var(--text-dim); letter-spacing: 0.04em; transition: color var(--dur-base); }

.link-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.link-card {
    display: flex; align-items: center; gap: 18px;
    text-decoration: none; color: var(--text);
    background: rgba(12,10,30,0.5); border: 1px solid var(--seal-border); border-left: 3px solid var(--pc, var(--gold));
    border-radius: var(--radius-md); padding: 20px 24px;
    transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-bounce), box-shadow var(--dur-fast), opacity var(--dur-fast); position: relative; overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 2px 12px var(--ink-25), inset 0 1px 0 rgba(192,200,224,0.04);
}
.link-card::before {
    content: ''; position: absolute; inset: 0; opacity: 0;
    background: linear-gradient(135deg, var(--pc, transparent) 0%, transparent 60%);
    transition: opacity var(--dur-brisk);
}
.link-card:hover::before { opacity: 0.08; }
.link-card:hover {
    border-color: var(--pc, var(--gold)); transform: translateY(-4px);
    background: rgba(192,200,224,0.05);
    box-shadow: 0 8px 28px var(--ink-30), 0 0 14px color-mix(in srgb, var(--pc, var(--gold)) 15%, transparent),
                inset 0 1px 0 rgba(192,200,224,0.08);
    animation: linkCardPulse 2s ease-in-out infinite alternate;
}
@keyframes linkCardPulse {
    from { box-shadow: 0 10px 30px var(--ink-25), 0 0 18px color-mix(in srgb, var(--pc, var(--gold)) 18%, transparent); }
    to   { box-shadow: 0 12px 35px var(--ink-30), 0 0 28px color-mix(in srgb, var(--pc, var(--gold)) 25%, transparent),
                        0 0 50px color-mix(in srgb, var(--pc, var(--gold)) 10%, transparent); }
}
.link-card-icon {
    font-size: 1.8rem; flex-shrink: 0; color: var(--pc, var(--gold));
    transition: transform var(--dur-brisk), color var(--dur-mellow); width: 2rem; text-align: center;
}
.link-card:hover .link-card-icon { transform: scale(1.15); }
.link-card svg.link-card-icon { width: 1.8rem; height: 1.8rem; }

.link-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.link-card-platform { font-size: var(--text-lg); font-weight: var(--fw-bold); letter-spacing: 0.10em; color: var(--text); transition: color var(--dur-brisk); }
.link-card:hover .link-card-platform { color: var(--pc, var(--gold)); }
.link-card-handle { font-style: italic; font-size: var(--text-base); color: var(--text-dim); transition: color var(--dur-brisk); }
.link-card-arrow {
    font-size: var(--text-md); color: var(--text-faint); flex-shrink: 0;
    opacity: 0; transform: translateX(-6px); transition: opacity var(--dur-brisk), transform var(--dur-brisk);
}
.link-card:hover .link-card-arrow { opacity: 1; transform: translateX(0); }

.link-card.twitch    { --pc: #9146FF; }
.link-card.kick      { --pc: #1ce623; }
.link-card.youtube   { --pc: #FF0000; }
.link-card.twitter   { --pc: #1DA1F2; }
.link-card.instagram { --pc: #E1306C; }
.link-card.github    { --pc: #c0c0c0; }

/* Footer removed — content merged into taskbar */

.interest-card:focus-visible,
.project-card:focus-visible,
.link-card:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ══════════════════════════════
   CLIP GALLERY
══════════════════════════════ */
.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.clip-card {
    border: 1px solid var(--seal-border); border-radius: var(--radius-lg);
    overflow: hidden; background: rgba(12,10,30,0.5);
    box-shadow: 0 2px 12px var(--ink-25);
    transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-bounce), box-shadow var(--dur-fast), opacity var(--dur-fast);
}
.clip-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--ink-30), 0 0 12px var(--card-glow);
}
.clip-embed {
    position: relative; aspect-ratio: 16 / 9;
}
.clip-embed iframe {
    width: 100%; height: 100%; border: none;
}
.clip-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px; cursor: pointer;
    background: rgba(12,10,30,0.8);
    transition: background var(--dur-fast);
}
.clip-placeholder:hover { background: var(--gold-06); }
.clip-play-icon {
    font-size: 2.5rem; color: var(--gold);
    text-shadow: 0 0 15px var(--gold-40);
    transition: transform var(--dur-fast);
}
.clip-placeholder:hover .clip-play-icon { transform: scale(1.2); }
.clip-title {
    font-size: var(--text-base); color: var(--text-dim);
    letter-spacing: 0.06em;
}
[data-theme="light"] .clip-card { background: rgba(240,232,216,0.5); }
[data-theme="light"] .clip-placeholder { background: rgba(240,232,216,0.8); }
