/* ========================================
   関東サーフ予報 - Premium Design
   Inspired by Windfinder
   ======================================== */

:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --primary-light: #66e5ff;
    --accent: #ff6b35;
    --accent-glow: rgba(255, 107, 53, 0.4);
    --success: #00ff88;
    --warning: #ffcc00;
    --danger: #ff4757;
    --bg-dark: #0a0f1a;
    --bg-card: rgba(15, 25, 45, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 212, 255, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.2);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --blur: blur(20px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/matt-hardy-6ArTTluciuA-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.3) saturate(1.2);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 15, 26, 0.7) 0%,
        rgba(10, 15, 26, 0.4) 30%,
        rgba(10, 15, 26, 0.6) 70%,
        rgba(10, 15, 26, 0.95) 100%
    );
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: relative;
    padding: 30px 0 20px;
    text-align: center;
    background: transparent;
}

.header .container {
    position: relative;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.lang-toggle {
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-toggle:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
}

.logo {
    font-size: 3.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #ffdd00;
    text-shadow:
        3px 3px 0 #ff6b35,
        6px 6px 0 rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 221, 0, 0.5);
    letter-spacing: 2px;
    transform: rotate(-2deg);
    font-style: italic;
}

.wave-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 15px rgba(255, 221, 0, 0.6));
    animation: waveFloat 2s ease-in-out infinite;
}

@keyframes waveFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 400;
    letter-spacing: 1px;
}

.last-update {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.refresh-btn {
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: rotate(180deg);
}

/* Main Content */
.main {
    padding: 20px 0 40px;
}

/* Glass Card Style */
section {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

section:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow), var(--shadow-glow);
}

section h2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Intro Section */
.intro-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.05) 100%);
    border-color: var(--border-glow);
}

.intro-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    margin-top: -10px;
}

/* Spot Section */
.spot-section {
    padding: 16px;
    text-align: center;
}

/* Spot Selector - Two Dropdowns */
.spot-selector-wrap {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.spot-selector {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spot-selector:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
}

.spot-selector.country-select {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.05) 100%);
}

.spot-dropdown {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.spot-dropdown option,
.spot-dropdown optgroup {
    background: var(--bg-dark);
    color: var(--text);
    padding: 10px;
}

.spot-dropdown optgroup {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
}

.spot-count {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
}

@media (max-width: 480px) {
    .spot-selector-wrap {
        flex-direction: column;
        gap: 8px;
    }

    .spot-selector {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }

    .spot-dropdown {
        font-size: 0.9rem;
        text-align: center;
    }
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Condition Grid */
.condition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.condition-card {
    text-align: center;
    padding: 14px 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.condition-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.condition-card .value {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.condition-card .unit {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.condition-card .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.condition-card.sea-temp {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 153, 204, 0.1) 100%);
    border-color: rgba(0, 212, 255, 0.3);
}

.condition-card.sea-temp .value {
    color: var(--primary-light);
}

/* Wetsuit Recommendation */
.wetsuit-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 107, 53, 0.05) 100%);
    border-color: rgba(255, 107, 53, 0.3);
}

.wetsuit-card .value {
    font-size: 1.5rem !important;
    color: var(--accent) !important;
}

/* Sunrise/Sunset Card */
.sun-card {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    border-color: rgba(255, 204, 0, 0.2);
}

.sun-card .value {
    font-size: 1.1rem !important;
    color: var(--warning) !important;
}

/* ========================================
   NEW: Compact Condition Header
   ======================================== */
.condition-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.05) 100%);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.condition-spot-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.condition-rating-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-badge-compact {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.rating-badge-compact.excellent { background: var(--success); color: var(--bg-dark); }
.rating-badge-compact.good { background: var(--primary); color: var(--bg-dark); }
.rating-badge-compact.fair { background: var(--warning); color: var(--bg-dark); }
.rating-badge-compact.poor { background: var(--danger); color: white; }

.condition-score {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--success);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.condition-score .score-unit {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.condition-comment {
    flex: 1;
    min-width: 200px;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--warning);
    text-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .condition-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .condition-comment {
        text-align: center;
        min-width: auto;
    }
}

/* ========================================
   NEW: Primary Stats (Wave + Wind)
   ======================================== */
.primary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.primary-stat-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.primary-stat-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
}

.primary-stat-card.wave-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(0, 153, 204, 0.06) 100%);
    border-color: rgba(0, 212, 255, 0.3);
}

.primary-stat-card.wind-card {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 200, 100, 0.05) 100%);
    border-color: rgba(0, 255, 136, 0.25);
}

.primary-stat-card.wind-card.onshore-card {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(255, 71, 87, 0.05) 100%);
    border-color: rgba(255, 71, 87, 0.25);
}

.primary-stat-card.weather-card {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1) 0%, rgba(255, 204, 0, 0.05) 100%);
    border-color: rgba(255, 204, 0, 0.25);
}

.weather-value {
    font-size: 1.2rem !important;
    color: var(--warning) !important;
}

.primary-stat-info {
    flex: 1;
}

.primary-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.primary-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.primary-stat-value .unit {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.primary-stat-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.primary-stat-sub.wind-offshore { color: var(--success); }
.primary-stat-sub.wind-onshore { color: var(--danger); }
.primary-stat-sub.wind-cross { color: var(--warning); }

.wave-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: -4px;
    margin-bottom: 12px;
    opacity: 0.7;
    font-style: italic;
}

@media (max-width: 768px) {
    .primary-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .primary-stat-card {
        padding: 10px 8px;
    }
    .primary-stat-value {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .primary-stats {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .primary-stat-value {
        font-size: 1.2rem;
    }
    .primary-stat-label {
        font-size: 0.6rem;
    }
}

/* ========================================
   NEW: Secondary Stats Row
   ======================================== */
.secondary-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.secondary-stat {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.secondary-stat:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
}

.secondary-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.secondary-stat-value .unit {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.secondary-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

.secondary-stat.wetsuit-stat {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12) 0%, rgba(255, 107, 53, 0.05) 100%);
    border-color: rgba(255, 107, 53, 0.25);
}

.secondary-stat.wetsuit-stat .secondary-stat-value {
    font-size: 1rem;
    color: var(--accent);
}

/* ========================================
   NEW: Tertiary Info Row (Sun + Tide)
   ======================================== */
.tertiary-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
}

.sun-info-compact {
    display: flex;
    gap: 16px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.08) 0%, rgba(255, 107, 53, 0.05) 100%);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: var(--radius-sm);
}

.sun-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sun-info-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.sun-info-time {
    font-size: 1rem;
    font-weight: 600;
    color: var(--warning);
}

.tide-info-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.tide-type-badge {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
}

.tide-times-compact {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tide-time-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
}

.tide-time-compact .tide-icon {
    font-size: 0.7rem;
}

.tide-time-compact.high .tide-icon { color: var(--primary); }
.tide-time-compact.low .tide-icon { color: var(--text-muted); }

.tide-time-compact .tide-val {
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 768px) {
    .tertiary-info {
        grid-template-columns: 1fr;
    }
}

/* Legacy surf-rating (keep for compatibility but hide) */
.surf-rating {
    display: none;
}

.rating-badge-large {
    font-size: 1.4rem;
    font-weight: 800;
    padding: 8px 24px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

.current-score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--success);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.current-score .score-unit {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.rating-badge-large.excellent { background: var(--success); color: var(--bg-dark); }
.rating-badge-large.good { background: var(--primary); color: var(--bg-dark); }
.rating-badge-large.fair { background: var(--warning); color: var(--bg-dark); }
.rating-badge-large.poor { background: var(--danger); color: white; }

.rating-comment {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--warning);
    flex: 1;
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

/* Advice Box */
.advice-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.advice-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 25px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.advice-item:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
}

.advice-icon {
    font-size: 1.2rem;
}

.advice-text {
    color: var(--text);
    font-weight: 500;
}

/* Info Row (Sunrise/Sunset + Wetsuit) */
.info-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.info-card.sun-card {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.08) 0%, rgba(255, 107, 53, 0.05) 100%);
    border-color: rgba(255, 204, 0, 0.2);
}

.info-card.wetsuit-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 153, 204, 0.05) 100%);
    border-color: rgba(0, 212, 255, 0.2);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

/* Tide Section */
.tide-section {
    margin-top: 14px;
    padding: 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.tide-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tide-type {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.tide-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tide-times {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.tide-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    min-width: 70px;
    transition: all 0.3s ease;
}

.tide-time:hover {
    background: var(--bg-glass-hover);
}

.tide-time.high {
    border-bottom: 3px solid var(--primary);
}

.tide-time.low {
    border-bottom: 3px solid var(--text-muted);
}

.tide-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.tide-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 4px;
}

.tide-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 12px;
    opacity: 0.6;
}

/* Info Cards (Sun + Wetsuit) */
.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.sun-card {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.12) 0%, rgba(255, 107, 53, 0.08) 100%);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: var(--radius-sm);
}

.sun-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.sun-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.5));
}

.sun-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sun-time {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--warning);
}

.wetsuit-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12) 0%, rgba(255, 107, 53, 0.05) 100%);
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: var(--radius-sm);
}

.wetsuit-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.4));
}

.wetsuit-info {
    flex: 1;
}

.wetsuit-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wetsuit-suit {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 4px;
}

.wetsuit-season {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

@media (max-width: 768px) {
    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* Best Time Banner */
.best-time-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.2) 0%, rgba(255, 107, 53, 0.15) 100%);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: 0 4px 30px rgba(255, 204, 0, 0.15);
}

/* Forecast Interpretation */
.forecast-interpretation {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.interpretation-label {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.interpretation-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.best-time-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.5));
}

.best-time-info {
    flex: 1;
}

.best-time-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.best-time-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--warning);
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.best-time-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.best-time-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.best-time-score .score-unit {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.best-time-rating {
    font-size: 1.5rem;
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Tomorrow Grid */
.tomorrow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.time-block {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.time-block:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
}

.time-block.best {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.15) 0%, rgba(255, 204, 0, 0.05) 100%);
    border-color: rgba(255, 204, 0, 0.4);
}

.time-block .time-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.time-block .wave-height {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.time-block .wave-height span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.time-block .score-display {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--success);
    margin-top: 4px;
}

.time-block .score-display span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.time-block .details {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.rating-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 10px;
}

.rating-badge.excellent { background: var(--success); color: var(--bg-dark); }
.rating-badge.good { background: var(--primary); color: var(--bg-dark); }
.rating-badge.fair { background: var(--warning); color: var(--bg-dark); }
.rating-badge.poor { background: var(--danger); color: white; }

/* Hourly Tomorrow Section */
.hourly-tomorrow {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.hourly-tomorrow h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Weekly Grid */
.weekly-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.day-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.day-card.today {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-color: var(--primary);
}

.day-card .day-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.day-card .day-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 4px;
}

.day-card .wave-icon-small {
    font-size: 1.5rem;
    margin: 10px 0;
}

.day-card .wave-height-small {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.rating-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 10px auto 0;
    box-shadow: 0 0 10px currentColor;
}

.rating-dot.excellent { background: var(--success); color: var(--success); }
.rating-dot.good { background: var(--primary); color: var(--primary); }
.rating-dot.fair { background: var(--warning); color: var(--warning); }
.rating-dot.poor { background: var(--danger); color: var(--danger); }

/* ========================================
   NEW: Hourly Timeline Bar Chart
   ======================================== */
.hourly-timeline {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.hourly-timeline h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-container {
    position: relative;
    padding: 10px 0;
}

.timeline-bars {
    display: flex;
    align-items: flex-end;
    height: 120px;
    gap: 2px;
    padding: 0 4px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.timeline-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline-bar:hover .bar-fill {
    filter: brightness(1.2);
    transform: scaleY(1.05);
    transform-origin: bottom;
}

.bar-fill {
    width: 100%;
    max-width: 28px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.bar-fill.excellent { background: linear-gradient(180deg, var(--success) 0%, rgba(0, 255, 136, 0.6) 100%); }
.bar-fill.good { background: linear-gradient(180deg, var(--primary) 0%, rgba(0, 212, 255, 0.6) 100%); }
.bar-fill.fair { background: linear-gradient(180deg, var(--warning) 0%, rgba(255, 204, 0, 0.6) 100%); }
.bar-fill.poor { background: linear-gradient(180deg, var(--danger) 0%, rgba(255, 71, 87, 0.6) 100%); }

.bar-fill.best-hour {
    box-shadow: 0 0 12px currentColor;
}

.bar-fill.best-hour::after {
    content: '★';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--warning);
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    padding: 8px 4px 0;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.timeline-labels span {
    flex: 1;
    text-align: center;
}

.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.7rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.legend-dot.excellent { background: var(--success); }
.legend-dot.good { background: var(--primary); }
.legend-dot.fair { background: var(--warning); }
.legend-dot.poor { background: var(--danger); }

/* Tooltip on hover */
.timeline-bar:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text);
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.timeline-bar {
    position: relative;
}

/* Hourly Data Row */
.hourly-data-row {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.hourly-data-cell {
    flex: 1;
    min-width: 50px;
    text-align: center;
    padding: 8px 4px;
    background: var(--bg-glass);
    border-radius: 6px;
    font-size: 0.7rem;
}

.hourly-data-cell.best {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.2) 0%, rgba(255, 204, 0, 0.05) 100%);
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.hourly-time {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.hourly-wave {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.hourly-wind {
    font-size: 0.65rem;
    margin-top: 2px;
}

/* Score Line Graph */
.score-line-graph {
    height: 60px;
    margin-bottom: 12px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 4px;
}

.score-line-graph svg {
    width: 100%;
    height: 100%;
}

/* Legacy hourly scroll (hidden) */
.hourly-scroll {
    display: none;
    overflow-x: auto;
    margin: 0 -24px;
    padding: 0 24px;
}

.hourly-scroll::-webkit-scrollbar {
    height: 6px;
}

.hourly-scroll::-webkit-scrollbar-track {
    background: var(--bg-glass);
    border-radius: 3px;
}

.hourly-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.hourly-grid {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    min-width: max-content;
}

.hour-card {
    min-width: 75px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 14px 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.hour-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
}

.hour-card.best {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.2) 0%, rgba(255, 204, 0, 0.05) 100%);
    border-color: rgba(255, 204, 0, 0.4);
}

.hour-card .hour {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.hour-card .wave {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 4px 0;
}

.hour-card .hour-score {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 4px;
}

.hour-card .wind {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 3px 8px;
    background: var(--bg-glass);
    border-radius: 10px;
}

/* Wind Colors */
.wind-offshore { color: var(--success) !important; }
.wind-onshore { color: var(--danger) !important; }
.wind-cross { color: var(--warning) !important; }

/* Footer */
.footer {
    background: rgba(5, 10, 20, 0.95);
    backdrop-filter: var(--blur);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    padding: 40px 0 30px;
    font-size: 0.85rem;
}

.footer-brand {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-style: italic;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.footer-col h4 {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-credits {
    text-align: center;
    margin-bottom: 20px;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 8px;
}

.footer-message {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.thanks-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--warning);
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

.handwritten {
    font-family: 'Caveat', cursive !important;
    font-size: 1.5rem !important;
    font-weight: 600;
}

/* Community Section */
.community-section {
    text-align: center;
    margin-top: 30px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15) 0%, rgba(88, 101, 242, 0.05) 100%);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: var(--radius);
}

.community-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.community-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #5865F2;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.discord-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.discord-icon {
    flex-shrink: 0;
}

.community-beta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Pay It Forward Section */
.pay-forward-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.pay-forward-intro {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.donate-row {
    text-align: center;
    margin-bottom: 20px;
}

.coffee-link {
    display: inline-block;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: 25px;
    background: var(--bg-glass);
    transition: all 0.3s ease;
}

.coffee-link:hover {
    border-color: var(--primary);
    background: transparent;
    color: var(--primary);
}

.donate-banner {
    text-align: center;
    padding: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.donate-banner .coffee-link {
    display: inline-block;
    margin-bottom: 12px;
}

.donate-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

.charity-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.charity-title {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.charity-description {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 16px auto 0;
    line-height: 1.5;
}

.charity-banners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.charity-img-link {
    display: block;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.charity-img-link:hover {
    opacity: 1;
    transform: scale(1.05);
}

.charity-logo-img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

@media (max-width: 480px) {
    .charity-banners {
        flex-direction: column;
        gap: 16px;
    }

    .charity-logo-img {
        height: 40px;
    }

    .coffee-link {
        font-size: 0.85rem;
        padding: 8px 20px;
    }
}

@media (max-width: 768px) {
    .footer-info {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
}

/* Error State */
.error {
    text-align: center;
    padding: 40px;
    color: var(--danger);
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .weekly-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 0 15px;
    }

    .logo {
        font-size: 1.6rem;
    }

    .wave-icon {
        font-size: 2rem;
    }

    section {
        padding: 20px;
        margin-bottom: 16px;
    }

    .condition-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tomorrow-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .weekly-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .surf-rating {
        flex-direction: column;
        text-align: center;
    }

    .rating-info {
        text-align: center;
    }

    .best-time-banner {
        flex-direction: column;
        text-align: center;
    }

    .best-time-info {
        text-align: center;
    }

    .refresh-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .weekly-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .condition-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tide-times {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--primary); }
    50% { box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary); }
}

/* Photo Credits (hidden but accessible) */
.photo-credit {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 0.6rem;
    color: var(--text-muted);
    opacity: 0.3;
}
