:root {
    --primary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-main: 'Inter', 'Noto Sans TC', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background: #e2e8f0;
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: 40px;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.glass-header {
    position: sticky;
    top: 10px;
    z-index: 100;
    margin-top: 10px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.quick-nav {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-btn:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.nav-icon {
    font-size: 1.1em;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
    display: flex;
    flex-direction: column;
}

.jp-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 2px;
}

.subtitle {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 4px;
}

.season-badge {
    background: #eff6ff;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Timeline */
.season-divider {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 40px 0 20px 0;
    text-align: center;
    background: linear-gradient(90deg, transparent, #eff6ff, transparent);
    padding: 10px;
    border-radius: 20px;
    letter-spacing: -0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.month-section {
    margin-bottom: 32px;
}

.month-label {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #334155;
    padding-left: 8px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Daily Card */
.day-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.day-card:active {
    transform: scale(0.98);
}

.day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

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

.date-badge {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.date-day {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
}

.date-week {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Status Colors */
.status-open {
    background: #dcfce7;
    color: #166534;
}

.status-partial {
    background: #fef9c3;
    color: #854d0e;
}

.status-closed {
    background: #fee2e2;
    color: #991b1b;
}

.status-unknown {
    background: #f1f5f9;
    color: #64748b;
}

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(241, 245, 249, 0.5);
    border-radius: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
}

.snow-value {
    color: #3b82f6;
}

.depth-value {
    color: #0f172a;
}

.card-note {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.note-emoji {
    margin-right: 6px;
}

.glass-footer {
    margin-top: 40px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 20px;
}

/* Responsive Grid for Tablets+ */
@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-content {
        padding: 0 10px;
    }
}/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* Sun - Sat */
    gap: 8px;
    margin-top: 10px;
}

.calendar-header-cell {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    padding: 8px 0;
    text-transform: uppercase;
}

.calendar-cell {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    min-height: 80px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.calendar-cell:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.calendar-cell.empty {
    background: transparent;
    border: none;
    pointer-events: none;
}

/* Cell Content */
.cell-date {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}

.cell-status {
    font-size: 1.2rem;
    text-align: center;
    margin: 4px 0;
}

.cell-data {
    font-size: 0.7rem;
    display: flex;
    justify-content: space-between;
    color: #475569;
}

.cell-new-snow {
    color: #3b82f6;
    font-weight: 700;
}

.cell-base-snow {
    color: #0f172a;
}

/* Status coloring for cells */
.cell-open {
    background: rgba(220, 252, 231, 0.6);
    border-color: #bbf7d0;
}

.cell-partial {
    background: rgba(254, 249, 195, 0.6);
    border-color: #fde047;
}

.cell-closed {
    background: rgba(254, 226, 226, 0.6);
    border-color: #fecaca;
}

/* Chart */
.chart-container-wrapper {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 40px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.chart-title {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 15px;
    text-align: center;
}

canvas {
    width: 100% !important;
    height: 300px !important;
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .calendar-cell {
        min-height: 60px;
        padding: 4px;
    }

    .cell-status {
        font-size: 1rem;
    }

    .cell-data {
        font-size: 0.6rem;
        flex-direction: column;
        gap: 2px;
    }
}/* Detailed Calendar Cell */
.calendar-cell {
    min-height: 140px;
    /* Increased height */
    overflow-y: auto;
    /* Scroll if too much text */
}

.cell-info {
    font-size: 0.75rem;
    color: #475569;
    margin-top: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 4px;
}

.cell-note {
    display: block;
    margin-bottom: 4px;
    line-height: 1.2;
}

.cell-lift-note {
    display: block;
    color: #b91c1c;
    /* Red for closed lifts */
    font-weight: 500;
    font-size: 0.7rem;
    line-height: 1.2;
}

/* Mobile check */
@media (max-width: 600px) {
    .calendar-cell {
        min-height: 100px;
    }

    .cell-info {
        font-size: 0.65rem;
    }
}