
/* Weather Page Styles */
.weather-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.weather-hero {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    border-bottom: 2px solid var(--color-rule);
    margin-bottom: 2rem;
}
.weather-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
}
.weather-hero-sub {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
}

/* Sections */
.weather-section {
    margin-bottom: 2.5rem;
}
.weather-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--color-rule);
    padding-bottom: 0.4rem;
    margin-bottom: 1.2rem;
}
.weather-section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}
.weather-source {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.weather-updated {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--color-text-light);
}

/* Current Conditions */
.weather-current-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.weather-current-main {
    text-align: center;
    padding: 1.5rem;
}
.current-temp-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.current-icon {
    font-size: 3.5rem;
    line-height: 1;
}
.current-temp {
    font-family: var(--font-sans);
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
}
.current-desc {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: var(--color-text-secondary);
}
.current-location {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.3rem;
}
.weather-current-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}
.detail-item {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 0.8rem;
    background: var(--color-bg-light);
    border-radius: 4px;
}
.detail-label {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-light);
    margin-bottom: 0.2rem;
}
.detail-value {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
}

/* 7-Day Forecast */
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}
.forecast-day {
    text-align: center;
    padding: 1rem 0.5rem;
    border-right: 1px solid var(--color-border-light);
}
.forecast-day:last-child {
    border-right: none;
}
.forecast-day-name {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.forecast-day-icon {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}
.forecast-day-desc {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    min-height: 2em;
}
.forecast-day-temps {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
.temp-high {
    font-weight: 700;
    margin-right: 0.4rem;
}
.temp-low {
    color: var(--color-text-light);
    font-weight: 400;
}
.forecast-day-rain {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: #4a90d9;
}
.forecast-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--color-text-light);
    font-family: var(--font-sans);
}

/* Maps */
.weather-map-wrap {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    background: #1a1a2e;
}
.weather-map-wrap iframe {
    display: block;
    width: 100%;
}

/* Marine */
.marine-current {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}
.marine-forecast {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 1rem;
}
.marine-day {
    text-align: center;
    padding: 0.8rem 0.5rem;
    border-right: 1px solid var(--color-border-light);
}
.marine-day:last-child {
    border-right: none;
}
.marine-stat {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: 0.3rem;
}

/* Quick Links */
.weather-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.weather-link-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.weather-link-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.weather-link-card strong {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}
.weather-link-card span {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .weather-hero h1 { font-size: 1.8rem; }
    .weather-current-grid { grid-template-columns: 1fr; gap: 1rem; }
    .forecast-grid { grid-template-columns: repeat(4, 1fr); }
    .forecast-day:nth-child(n+5) { display: none; }
    .marine-current { grid-template-columns: repeat(2, 1fr); }
    .marine-forecast { grid-template-columns: repeat(3, 1fr); }
    .marine-day:nth-child(n+4) { display: none; }
    .weather-links-grid { grid-template-columns: repeat(2, 1fr); }
    .weather-map-wrap iframe { height: 350px; }
}
@media (max-width: 480px) {
    .weather-hero h1 { font-size: 1.4rem; }
    .current-temp { font-size: 3rem; }
    .current-icon { font-size: 2.5rem; }
    .forecast-grid { grid-template-columns: repeat(3, 1fr); }
    .forecast-day:nth-child(n+4) { display: none; }
    .marine-current { grid-template-columns: 1fr 1fr; }
    .marine-forecast { grid-template-columns: repeat(3, 1fr); }
    .weather-links-grid { grid-template-columns: 1fr; }
    .weather-map-wrap iframe { height: 300px; }
}
