/* ================================================================
   About Page — Life of Chip
   Dark glassmorphism theme matching the viewer page
   ================================================================ */

/* --- Resets & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-dark: #0a0a1a;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #e8e8f0;
    --text-dim: #8a8a9a;
    --accent-gold: #fbbf24;
    --accent-purple: #a78bfa;
    --accent-blue: #60a5fa;
    --card-bg: rgba(20, 20, 40, 0.7);
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Animated Background --- */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 40% at 20% 20%, rgba(99, 80, 200, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 80% 60%, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 50% 90%, rgba(251, 191, 36, 0.06) 0%, transparent 70%),
        var(--bg-dark);
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(15deg);
    }
}

/* --- Layout --- */
.app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* --- Header --- */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    font-size: 1.4rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.header-nav {
    display: flex;
    gap: 16px;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text);
    background: var(--glass);
}

.nav-link.active {
    color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.08);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 48px 0 40px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-emoji {
    -webkit-text-fill-color: initial;
    margin-right: 8px;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--accent-purple);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-tagline em {
    font-style: normal;
    text-decoration: underline;
    text-decoration-color: var(--accent-gold);
    text-underline-offset: 3px;
}

.hero-description {
    font-size: 0.95rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Sections --- */
.section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.section-icon {
    font-size: 1.3rem;
}

/* --- Characters Grid --- */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.character-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.3s;
    backdrop-filter: blur(12px);
}

.character-card:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 139, 250, 0.3);
}

.character-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.character-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.character-card:hover .character-image {
    transform: scale(1.05);
}

.character-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, rgba(99, 80, 200, 0.15), rgba(59, 130, 246, 0.1));
}

.character-info {
    padding: 16px 18px 18px;
}

.character-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.character-role {
    font-size: 0.8rem;
    color: var(--accent-purple);
    margin-bottom: 10px;
    font-weight: 500;
}

.character-arc {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 10px;
}

.character-episodes {
    font-size: 0.72rem;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Sessions List --- */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.session-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s;
}

.session-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.session-episode {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.session-date {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.session-summary {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.65;
}

.no-data-message {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    padding: 40px 20px;
    background: var(--card-bg);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius);
}

/* --- Loading --- */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.8rem;
}

.footer-link {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent-gold);
}

.footer-contact {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.footer-contact a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--accent-gold);
}

/* --- Disclaimer --- */
.disclaimer {
    margin-top: 40px;
    padding: 20px 24px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    font-size: 0.72rem;
    line-height: 1.7;
    color: var(--text-dim);
    opacity: 0.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer strong {
    color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.88rem;
    }

    .characters-grid {
        grid-template-columns: 1fr;
    }

    .header {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* --- Entrance Animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.character-card,
.session-card {
    animation: fadeInUp 0.5s ease both;
}

.character-card:nth-child(2) {
    animation-delay: 0.08s;
}

.character-card:nth-child(3) {
    animation-delay: 0.16s;
}

.character-card:nth-child(4) {
    animation-delay: 0.24s;
}

.character-card:nth-child(5) {
    animation-delay: 0.32s;
}

.session-card:nth-child(2) {
    animation-delay: 0.06s;
}

.session-card:nth-child(3) {
    animation-delay: 0.12s;
}

.session-card:nth-child(4) {
    animation-delay: 0.18s;
}

.session-card:nth-child(5) {
    animation-delay: 0.24s;
}