/* ========================================
   Home Page — Four Seasons Selector
   ======================================== */

body.home-page {
    overflow: hidden;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Shell --- */
.home-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    gap: 0;
}

/* --- Season Grid --- */
.season-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    width: 100%;
}

/* --- Season Card --- */
.season-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1.0);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.season-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.season-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.season-card:active {
    transform: translateY(-2px) scale(1.0);
}

[data-theme="light"] .season-card {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .season-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* --- Per-season hover glows --- */
.spring-card:hover {
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: 0 20px 50px rgba(74, 222, 128, 0.08), 0 0 60px rgba(74, 222, 128, 0.06);
}

.spring-card::before {
    background: radial-gradient(ellipse at 50% 30%, rgba(74, 222, 128, 0.08), transparent 70%);
}

.spring-card:hover::before {
    opacity: 1;
}

.summer-card:hover {
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 20px 50px rgba(251, 191, 36, 0.08), 0 0 60px rgba(251, 191, 36, 0.06);
}

.summer-card::before {
    background: radial-gradient(ellipse at 50% 30%, rgba(251, 191, 36, 0.08), transparent 70%);
}

.summer-card:hover::before {
    opacity: 1;
}

.autumn-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.08), 0 0 60px rgba(249, 115, 22, 0.06);
}

.autumn-card::before {
    background: radial-gradient(ellipse at 50% 30%, rgba(249, 115, 22, 0.08), transparent 70%);
}

.autumn-card:hover::before {
    opacity: 1;
}

.winter-card:hover {
    border-color: rgba(147, 197, 253, 0.3);
    box-shadow: 0 20px 50px rgba(147, 197, 253, 0.08), 0 0 60px rgba(147, 197, 253, 0.06);
}

.winter-card::before {
    background: radial-gradient(ellipse at 50% 30%, rgba(147, 197, 253, 0.08), transparent 70%);
}

.winter-card:hover::before {
    opacity: 1;
}

/* --- Illustration --- */
.season-illustration {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.season-card:hover .season-illustration {
    transform: scale(1.06);
}

.season-illustration svg {
    width: 100%;
    height: 100%;
}

/* --- Label --- */
.season-label {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.spring-card .season-label {
    color: #4ade80;
}

.summer-card .season-label {
    color: #fbbf24;
}

.autumn-card .season-label {
    color: #f97316;
}

.winter-card .season-label {
    color: #93c5fd;
}

/* --- Badge --- */
.season-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-soon {
    background: rgba(255, 159, 10, 0.12);
    color: var(--system-orange);
    border: 1px solid rgba(255, 159, 10, 0.2);
}

/* --- Placeholder style for coming-soon cards --- */
.spring-card,
.autumn-card {
    opacity: 0.65;
}

.spring-card:hover,
.autumn-card:hover {
    opacity: 0.85;
}

/* --- Footer --- */
.home-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.footer-github {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    text-decoration: none;
    border: 1px solid var(--border-light);
}

.footer-github:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    transform: scale(1.08);
}

.footer-github svg {
    width: 16px;
    height: 16px;
}

[data-theme="light"] .footer-github {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .footer-github:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .season-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        max-width: 400px;
    }

    .home-shell {
        padding: 20px;
    }

    .season-card {
        padding: 20px 12px 18px;
        border-radius: 20px;
    }

    .season-illustration {
        width: 90px;
        height: 90px;
    }

    .season-label {
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .season-grid {
        gap: 10px;
    }

    .season-card {
        padding: 16px 10px 14px;
    }

    .season-illustration {
        width: 70px;
        height: 70px;
    }

    .season-label {
        font-size: 1rem;
    }
}