:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

header {
    position: relative;
    color: white;
    padding: 0;
    text-align: center;
    overflow: hidden;
    height: 200px;
}

.banner-mnt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('banner-mnt.jpeg') center center / cover no-repeat;
    z-index: 0;
}

.banner-mnt::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(79, 70, 229, 0.3), rgba(79, 70, 229, 0.6));
}

.header-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.weekend-dates {
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    background: var(--bg-light);
    border-bottom: 2px solid var(--border);
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary);
}

.tab-button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--bg-white);
}

/* Tab Content */
.tab-content-wrapper {
    min-height: 350px;
}

.tab-content {
    display: none;
    padding: 18px;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Overview Tab */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.summary-card {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.summary-card h3 {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    font-weight: 600;
}

.card-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.weekend-forecast {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 10px;
    border: 2px solid var(--border);
}

.weekend-forecast h2 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.forecast-content {
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.forecast-content p {
    margin-bottom: 6px;
}

/* Skiing Tab */
.day-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.day-card {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 10px;
    border: 2px solid var(--border);
}

.day-card h2 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 12px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

.condition-details p {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.condition-details p:last-child {
    border-bottom: none;
}

.condition-label {
    font-weight: 600;
    color: var(--text-primary);
}

/* Roads Tab */
.road-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.road-card {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 10px;
    border: 2px solid var(--border);
}

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

.road-header h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.time-badge {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.road-details {
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.road-details p {
    margin-bottom: 5px;
}

.road-status {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.road-status.clear {
    background: #d1fae5;
    color: #065f46;
}

.road-status.chains {
    background: #fef3c7;
    color: #92400e;
}

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

/* Parking Tab */
.parking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.parking-card {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 10px;
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
}

.parking-card h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.parking-status {
    flex: 1;
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.parking-status p {
    margin-bottom: 5px;
}

.availability-badge {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.availability-badge.available {
    background: #d1fae5;
    color: #065f46;
}

.availability-badge.limited {
    background: #fef3c7;
    color: #92400e;
}

.availability-badge.full {
    background: #fee2e2;
    color: #991b1b;
}

.resort-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    padding: 6px 0;
    transition: color 0.2s;
    font-size: 0.88rem;
}

.resort-link:hover {
    color: var(--primary-dark);
}

/* Footer */
footer {
    padding: 14px 18px;
    background: var(--bg-light);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
}

footer p {
    margin-bottom: 6px;
    line-height: 1.5;
}

footer p:last-child {
    margin-bottom: 0;
}

.footer-links {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        height: 160px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .tab-button {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .tab-content {
        padding: 14px;
    }

    .summary-grid,
    .day-comparison,
    .parking-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility */
.bold {
    font-weight: 600;
}
