/* ======================================================
   Podstrona /hydro — IMGW stany rzek i ostrzeżenia
   ====================================================== */

/* Hero */
.hydro-hero {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 60%, #0284c7 100%);
    color: white;
    padding: 60px 0 50px;
}

.hydro-hero nav       { font-size: 13px; margin-bottom: 12px; opacity: 0.7; }
.hydro-hero nav a     { color: white; text-decoration: none; }
.hydro-hero h1        { font-size: 36px; font-weight: 900; margin: 0 0 10px; }
.hydro-hero p         { font-size: 16px; opacity: 0.85; margin: 0; }

/* Layout główny — dwie kolumny */
.hydro-body {
    background: #f0f9ff;
    padding: 40px 0 60px;
    min-height: 400px;
}

.hydro-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* Sekcje */
.hydro-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 28px;
}

.hydro-section h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hydro-section h2 i { color: #0369a1; }

/* Karta ostrzeżenia */
.hydro-warning-card {
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-left-width: 4px;
    border-left-style: solid;
}

.hydro-warning-card:last-child { margin-bottom: 0; }

.hydro-warning-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hydro-warning-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.hydro-warning-content { flex: 1; }

.hydro-warning-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.hydro-warning-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.hydro-level-badge {
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.hydro-warning-prob { font-size: 12px; color: #6b7280; font-weight: 600; }

.hydro-warning-text    { font-size: 14px; color: #374151; margin: 0 0 8px; line-height: 1.5; }
.hydro-warning-comment { font-size: 13px; color: #6b7280; margin: 0 0 8px; line-height: 1.5; font-style: italic; }
.hydro-warning-time    { font-size: 12px; color: #9ca3af; margin: 0; }

/* Brak ostrzeżeń */
.hydro-no-warning {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hydro-no-warning i    { color: #16a34a; font-size: 20px; flex-shrink: 0; }
.hydro-no-warning strong { font-size: 15px; color: #065f46; }
.hydro-no-warning p    { margin: 4px 0 0; font-size: 13px; color: #6b7280; }

/* Wykres */
.hydro-chart-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.hydro-chart-title { font-size: 18px; font-weight: 800; color: var(--text); margin: 0 0 4px; }
.hydro-chart-sub   { font-size: 13px; color: #6b7280; margin: 0; }
.hydro-chart-range { font-size: 12px; color: #6b7280; text-align: right; }

.hydro-chart-canvas {
    position: relative;
    height: 240px;
}

/* Tabela */
.hydro-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    overflow-x: auto;
    display: block;
}

.hydro-table th {
    background: #f0f9ff;
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    color: #0369a1;
    white-space: nowrap;
    border-bottom: 2px solid #bae6fd;
}

.hydro-table th.right { text-align: right; }

.hydro-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #374151;
}

.hydro-table td.right { text-align: right; }
.hydro-table td.num   { text-align: right; color: #0369a1; font-weight: 600; }
.hydro-table td.muted { text-align: right; color: #6b7280; }

.hydro-table tbody tr:nth-child(even) { background: #fafafa; }
.hydro-table tbody tr.latest          { background: #f0fdf4; }

.hydro-latest-badge {
    background: #16a34a;
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
    margin-left: 6px;
}

.hydro-table td.bold { font-weight: 800; }

/* FAQ */
.hydro-faq-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0;
}

.hydro-faq-item:last-child { border-bottom: none; padding-bottom: 0; }

.hydro-faq-q {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    user-select: none;
}

.hydro-faq-icon {
    color: #0369a1;
    font-weight: 900;
    font-size: 18px;
    flex-shrink: 0;
}

.hydro-faq-a {
    display: none;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-top: 8px;
}

/* Prawa kolumna — boczny panel */
.hydro-sidebar { position: sticky; top: 80px; }

.hydro-current-box {
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 4px 20px rgba(3,105,161,0.3);
}

.hydro-current-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.hydro-current-header i  { font-size: 20px; }
.hydro-current-header h3 { margin: 0; font-size: 16px; font-weight: 800; }

.hydro-level-big {
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
}

.hydro-level-big span { font-size: 24px; font-weight: 600; opacity: 0.8; }

.hydro-station-info p { opacity: 0.85; font-size: 13px; margin: 0 0 4px; }
.hydro-measure-time   { opacity: 0.65; font-size: 12px; margin: 8px 0 0; }

.hydro-temp-bar {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hydro-temp-bar span { font-size: 13px; opacity: 0.85; }
.hydro-temp-bar strong { font-size: 14px; }

/* Info box */
.hydro-info-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.hydro-info-box h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 12px;
}

.hydro-info-box h3 i { color: #0369a1; margin-right: 8px; }

.hydro-info-box p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 10px;
}

.hydro-info-box small {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.5;
    display: block;
}

/* Link do pogody */
.hydro-weather-link {
    display: block;
    border-radius: 16px;
    padding: 18px 20px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(14,165,233,0.3);
    transition: transform 0.3s;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.hydro-weather-link:hover { transform: translateY(-2px); }
.hydro-weather-link i     { font-size: 24px; display: block; margin-bottom: 8px; }
.hydro-weather-link strong { font-size: 15px; font-weight: 800; display: block; }
.hydro-weather-link p      { font-size: 13px; opacity: 0.85; margin: 4px 0 0; }

/* Responsive */
@media (max-width: 900px) {
    .hydro-layout { grid-template-columns: 1fr; }
    .hydro-sidebar { position: static; }
    .hydro-hero h1 { font-size: 26px; }
}
