/* ═══════════════════════════════════════════════════
   SuSicakligi.com — Ana Stil Dosyası
   Dark Ocean Theme | Glassmorphism | Wave Animations
   ═══════════════════════════════════════════════════ */

/* ── CSS Custom Properties ─────────────────────── */
:root {
    /* Renk Paleti — Derin Okyanus */
    --bg-primary: #070e1a;
    --bg-secondary: #0b1929;
    --bg-tertiary: #0f2035;
    --bg-card: rgba(15, 32, 53, 0.7);
    --bg-card-hover: rgba(20, 42, 68, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);

    /* Vurgu Renkleri */
    --accent: #00bcd4;
    --accent-bright: #00e5ff;
    --accent-gradient: linear-gradient(135deg, #0097a7, #00e5ff);
    --accent-soft: rgba(0, 188, 212, 0.12);

    /* Metin */
    --text-primary: #e4e8f1;
    --text-secondary: #8a9ab5;
    --text-muted: #5a6a85;
    --text-on-accent: #ffffff;

    /* Sıcaklık Renkleri */
    --temp-hot: #ff6b35;
    --temp-warm: #ffb74d;
    --temp-mild: #4dd0e1;
    --temp-cool: #29b6f6;
    --temp-cold: #7986cb;

    /* Tazelik (Güncelleme Durumu) */
    --fresh-live: #66bb6a;
    --fresh-recent: #ffa726;
    --fresh-old: #ef5350;

    /* Kenarlık */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 188, 212, 0.3);

    /* Gölgeler */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 188, 212, 0.15);

    /* Yuvarlama */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Geçişler */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-max: 1240px;
    --header-height: 64px;
}

/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--accent-bright); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── Container ─────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: 24px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.site-logo:hover { color: var(--accent-bright); }
.logo-icon { font-size: 1.5rem; }
.logo-text { font-weight: 400; letter-spacing: -0.02em; }
.logo-text strong { font-weight: 700; }

/* Header Search */
.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.search-input-wrap {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.header-search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition);
}

.header-search input::placeholder { color: var(--text-muted); }
.header-search input:focus {
    border-color: var(--accent);
    background: var(--bg-glass-hover);
    box-shadow: var(--shadow-glow);
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
}

.search-suggestions.active { display: block; }

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background var(--transition);
}
.suggestion-item:hover { background: var(--bg-glass-hover); }
.suggestion-item .flag { font-size: 1.1rem; }
.suggestion-item .name { flex: 1; font-size: 0.9rem; }
.suggestion-item .temp { color: var(--accent); font-weight: 600; font-size: 0.85rem; }

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-glass); }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.dropdown-item:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}
.dropdown-item .flag { font-size: 1rem; }
.dropdown-item .count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-glass);
    padding: 2px 6px;
    border-radius: 10px;
}

.dropdown-all {
    display: block;
    text-align: center;
    padding: 10px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--accent);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
    border-radius: 2px;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    overflow-y: auto;
    padding: 16px;
    z-index: 999;
}
.mobile-menu.active { display: block; }

.mobile-menu-search { margin-bottom: 16px; }
.mobile-menu-search input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
}

.mobile-section-title {
    padding: 16px 0 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.mobile-link {
    display: block;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}
.mobile-link:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════ */
.breadcrumb {
    padding: 12px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}
.breadcrumb li {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.breadcrumb li::after {
    content: '›';
    margin: 0 8px;
    color: var(--text-muted);
}
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li a { color: var(--text-secondary); }
.breadcrumb li a:hover { color: var(--accent); }
.breadcrumb li.active { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */
.hero {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

/* Wave Animation Background */
.hero::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -10%;
    width: 120%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23070e1a' d='M0,50 C360,100 1080,0 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E") repeat-x;
    background-size: 1440px 100px;
    animation: waveMove 12s linear infinite;
    z-index: 1;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1440px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Search */
.hero-search {
    max-width: 560px;
    margin: 0 auto 24px;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 16px 24px 16px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.hero-search input:focus {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.hero-search .search-icon {
    left: 18px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.hero-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

/* ═══════════════════════════════════════════════════
   CARDS & GRID
   ═══════════════════════════════════════════════════ */
.section {
    padding: 48px 0;
}

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

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-link {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.card-flag {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.card-city {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.card-country {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-temp {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ═══════════════════════════════════════════════════
   SICAKLIK RENKLERİ
   ═══════════════════════════════════════════════════ */
.temp-value { font-weight: 700; }
.temp-hot { color: var(--temp-hot); }
.temp-warm { color: var(--temp-warm); }
.temp-mild { color: var(--temp-mild); }
.temp-cool { color: var(--temp-cool); }
.temp-cold { color: var(--temp-cold); }
.temp-unknown { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════
   UPDATE / FRESHNESS BADGE
   ═══════════════════════════════════════════════════ */
.update-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--bg-glass);
    border: 1px solid var(--border);
}

.fresh-live { color: var(--fresh-live); border-color: rgba(102, 187, 106, 0.3); }
.fresh-live .pulse-dot { animation: pulse 2s ease-in-out infinite; }
.fresh-recent { color: var(--fresh-recent); border-color: rgba(255, 167, 38, 0.3); }
.fresh-old { color: var(--fresh-old); border-color: rgba(239, 83, 80, 0.3); }
.fresh-unknown { color: var(--text-muted); }

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

/* ═══════════════════════════════════════════════════
   DATA TABLE
   ═══════════════════════════════════════════════════ */
.data-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: var(--bg-glass); }
.data-table tbody tr:last-child td { border-bottom: none; }

.data-table .city-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.data-table .city-cell a { color: var(--text-primary); }
.data-table .city-cell a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   DETAIL PAGE LAYOUT
   ═══════════════════════════════════════════════════ */
.detail-hero {
    padding: 40px 0 32px;
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
}

.detail-hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.detail-hero .update-info {
    margin-top: 8px;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

/* ═══════════════════════════════════════════════════
   CHART CONTAINER
   ═══════════════════════════════════════════════════ */
.chart-section {
    padding: 32px 0;
}

.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
}

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

.chart-title {
    font-size: 1rem;
    font-weight: 600;
}

.chart-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.chart-tab {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
}
.chart-tab:hover { color: var(--text-primary); }
.chart-tab.active {
    background: var(--accent);
    color: var(--text-on-accent);
}

.chart-canvas-wrap {
    position: relative;
    height: 280px;
}

/* ═══════════════════════════════════════════════════
   WEATHER FORECAST
   ═══════════════════════════════════════════════════ */
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.forecast-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: all var(--transition);
}

.forecast-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.forecast-day {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.forecast-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.forecast-temp {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

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

.forecast-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   SEARCH RESULTS
   ═══════════════════════════════════════════════════ */
.search-page { padding: 40px 0; }
.search-page h1 { margin-bottom: 24px; }

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.search-result-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.search-result-item .flag { font-size: 1.5rem; }
.search-result-item .info { flex: 1; }
.search-result-item .name { font-weight: 600; font-size: 1rem; color: var(--text-primary); }
.search-result-item .location { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.search-result-item .temp-badge {
    font-size: 1.2rem;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════
   RANKING TABLE
   ═══════════════════════════════════════════════════ */
.ranking-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ranking-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ranking-header {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ranking-list {
    padding: 8px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.ranking-item:hover { background: var(--bg-glass); }

.ranking-position {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--bg-glass);
    color: var(--text-muted);
    flex-shrink: 0;
}
.ranking-item:nth-child(1) .ranking-position { background: var(--accent-gradient); color: #fff; }
.ranking-item:nth-child(2) .ranking-position { background: rgba(0,188,212,0.3); color: var(--accent); }
.ranking-item:nth-child(3) .ranking-position { background: rgba(0,188,212,0.15); color: var(--accent); }

.ranking-name { flex: 1; font-size: 0.88rem; color: var(--text-primary); }
.ranking-name a { color: inherit; }
.ranking-name a:hover { color: var(--accent); }
.ranking-temp { font-weight: 700; font-size: 0.95rem; }

/* ═══════════════════════════════════════════════════
   SEAS SECTION
   ═══════════════════════════════════════════════════ */
.seas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.sea-card {
    position: relative;
    padding: 24px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    overflow: hidden;
}

.sea-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

.sea-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}
.sea-card:hover::before { opacity: 1; }

.sea-card-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.sea-card-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   ERROR PAGE
   ═══════════════════════════════════════════════════ */
.error-page {
    text-align: center;
    padding: 80px 20px;
}
.error-page h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}
.error-page p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-on-accent);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
    color: #fff;
}

.btn-outline {
    border-color: var(--border);
    color: var(--text-secondary);
    background: transparent;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer-seo-cloud {
    padding: 32px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-section-title {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.seo-link-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.seo-link-cloud a {
    padding: 6px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
}
.seo-link-cloud a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.footer-main {
    padding: 48px 0;
    background: var(--bg-tertiary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-about {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-update { margin-top: 8px; }

.footer-heading {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-links li { margin-bottom: 8px; }
.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-note {
    margin-top: 4px;
    font-size: 0.72rem;
}

/* ═══════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════ */
.faq-section { padding: 32px 0; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-glass); }

.faq-answer {
    padding: 0 20px 16px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: none;
}
.faq-item.open .faq-answer { display: block; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .ranking-section { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --header-height: 56px; }

    .header-search { display: none; }
    .header-nav { display: none; }
    .mobile-menu-toggle { display: flex; }

    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: 1.6rem; }

    .cards-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
    .card { padding: 14px; }
    .card-temp { font-size: 1.5rem; }

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

    .forecast-grid { grid-template-columns: 1fr; gap: 8px; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-main { padding: 32px 0; }

    .data-table { font-size: 0.82rem; }
    .data-table th, .data-table td { padding: 10px 12px; }

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

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .cards-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .card { padding: 12px; }
    .card-temp { font-size: 1.3rem; }
    .stat-value { font-size: 1.4rem; }
    .chart-canvas-wrap { height: 220px; }
    .seas-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════
   LOADING SKELETON
   ═══════════════════════════════════════════════════ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-glass-hover) 50%, var(--bg-glass) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Print */
@media print {
    .site-header, .mobile-menu, .footer-seo-cloud, .site-footer { display: none; }
    body { background: #fff; color: #000; }
}
