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

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #121212;
    color: #f0f0f0;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.page-wrapper {
    width: 360px;
    background: #030101;
    border-radius: 32px;
    padding: 24px 18px 28px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}

header {
    margin-bottom: 20px;
    color: #ffffff;
}

.header-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #c30101;
    background: #060303;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.brand-main {
    color: #ff3b3b;
    font-weight: 700;
}

.brand-sub {
    color: #ffffff;
    font-weight: 500;
}

header p {
    font-size: 0.9rem;
    color: #ffffff;
    margin-top: 4px;
}

.header-underline {
    width: 28px;
    height: 3px;
    background: #ff3b3b;
    border-radius: 999px;
    margin-top: 10px;
}

.card {
    background: linear-gradient(145deg, #560d0d, #6f0000);
    border-radius: 22px;
    border: 2px solid #c30101;
    padding: 18px 16px;
    margin-top: 14px;
    color: #ffecec;
    box-shadow:
        0 10px 25px rgba(0,0,0,0.6),
        0 0 0 1px rgba(0,0,0,0.35);
}


.card:hover {
background: #750101;
color: #ffeceb;
}


.card h2 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #ffe0e0;
}

.card p {
    font-size: 0.8rem;
    line-height: 1.5;
}

.primary-btn {
    margin-top: 16px;
    padding: 8px 24px;
    border-radius: 999px;
    border: none;
    background: #c30101;
    color: #ffecec;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(195,1,1,0.55);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.primary-btn:hover {
    background: #ff3b3b;
    box-shadow: 0 8px 20px rgba(255,59,59,0.6);
    transform: translateY(-1px);
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

@media (max-width: 600px) {
    body {
        align-items: flex-start;
    }

    .page-wrapper {
        width: 100%;
        max-width: 360px;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
}

@media (min-width: 1000px) {
    .page-wrapper {
        width: 500px;
        transform: scale(1.1);
        box-shadow: 0 22px 60px rgba(0,0,0,0.7);
    }
}

a {
    color: #3a7bd5;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 2px 4px;
}

a:hover {
    color: #3a7bd5;
    background-color: rgba(58, 123, 213, 0.25);
    border-radius: 6px;
    padding: 2px 4px;
}


        .weather-main { margin-bottom: 20px; text-align: center; }
        .weather-icon { font-size: 4rem; margin: 0 0 12px; }
        .temp-main { font-size: 3.5rem; font-weight: 300; color: #ffecec; margin: 0; }
        .temp-feels { font-size: 1rem; color: #ffcccb; margin-top: 4px; }
        .location-header { font-size: 1.3rem; color: #ffffff; margin-bottom: 8px; }
        .sun-times { font-size: 0.85rem; color: #ffeb99; background: rgba(255,235,153,0.1); padding: 6px 12px; border-radius: 20px; display: inline-block; }
        
        .grid-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin: 20px 0;
        }
        .stat-item {
            background: rgba(255,255,255,0.05);
            padding: 12px;
            border-radius: 16px;
            text-align: center;
            border: 1px solid rgba(195,1,1,0.3);
        }
        .stat-value { font-size: 1.3rem; font-weight: 600; color: #ffecec; }
        .stat-label { font-size: 0.75rem; color: #ccc; text-transform: uppercase; letter-spacing: 0.5px; }
        
        .precip-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
        .precip-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.9rem; }
        
        @media (max-width: 600px) {
            .grid-stats { grid-template-columns: 1fr; }
            .temp-main { font-size: 2.8rem; }
        }