/*@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;700&display=swap');*/

/* Виджет — без глобальных стилей, прозрачный фон */
.fishing-widget,
#city-selector {
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-hover: rgba(255, 255, 255, 0.98);
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: rgba(203, 213, 225, 0.7);
    --accent: #1565c0;
    --accent-light: rgba(224, 242, 254, 0.95);
    --green: #16a34a;
    --yellow: #eab308;
    --orange: #f97316;
    --red: #dc2626;
    --radius: 5px;
    /*--font: 'Roboto Condensed', 'Segoe UI', system-ui, sans-serif;*/

    width: 100%;
    /*font-family: var(--font);*/
    color: var(--text);
    background: transparent;
}

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

/* Заголовки */
.fishing-widget h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.fishing-widget h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Выбор города по центру */
#city-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 5px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

#city-selector label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

#city-selector select,
#city-selector input {
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    outline: none;
    width: auto;
    min-width: 120px;
    max-width: 180px;
}

.fishing-widget .or-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Контейнер с тремя карточками */
.fishing-widget .days-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Общие стили карточек дня */
.day-card {
    background: var(--bg-card);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    transition: all 0.25s ease;
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
}

/* Исправлено: при наведении карточка плавно поднимается, обводка не теряется */
.day-card:hover {
    transform: translateY(-5px);
    background: var(--bg-hover);
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Сегодняшняя карточка — крупнее */
.today-card {
    flex: 1.6;
    padding: 24px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.day-label {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text);
}

.weather-icon-lg,
.weather-icon {
    margin: 8px 0;
    display: flex;
    justify-content: center;
    line-height: 1;
    align-items: center;
}

.weather-icon-lg {
    font-size: 4rem;
}
.weather-icon {
    font-size: 3rem;
}

.weather-icon-lg span,
.weather-icon span {
    font-size: .75em;
    margin-left: 0.25em;
}

.arrow_wind {
    display: inline-block;
    font-family: sans-serif;
    margin-left: .25em;
    font-size: 1.2em;
}

.temp-main {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
}
.temp {
    font-size: 2rem;
    font-weight: 600;
}
.desc, .desc-small {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 6px 0;
}
.details {
    margin: 12px 0;
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    /*background: rgba(0,0,0,0.02);*/
    /*padding: 8px;*/
    border-radius: 5px;
    gap: 10px;
}
.details span {
    color: var(--text);
    font-weight: 500;
}

@media screen and (min-width: 801px) {
    .day-card:not(.today-card) .details {
        grid-template-columns: 1fr;
    }
}

@media screen and (min-width: 801px) and (max-width: 1040px) {
    .day-card.today-card .details {
        grid-template-columns: 1fr;
    }
}

.fishing-info {
    margin-top: 12px;
    border-top: 1px dashed var(--border);
    padding-top: 10px;
}
.fishing-score {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.fishing-reason {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Цвета оценок клёва */
.score-excellent { color: var(--green); }
.score-good { color: #22c55e; }
.score-medium { color: var(--yellow); }
.score-poor { color: var(--orange); }
.score-bad { color: var(--red); }

/* Прогноз на ближайшие сутки (увеличенные карточки и drag-to-scroll) */
.forecast-section {
    margin-bottom: 20px;
}
.forecast-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 10px 0px 20px 0px;
    cursor: grab;
    user-select: none;
    scrollbar-width: thin;
}
.forecast-scroll:active {
    cursor: grabbing;
}
.forecast-scroll::-webkit-scrollbar {
    height: 8px;
}
.forecast-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.forecast-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.forecast-card {
    background: var(--bg-card);
    backdrop-filter: blur(4px);
    border-radius: 5px;
    padding: 12px 14px;
    text-align: center;
    min-width: 110px;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    transition: 0.2s;
}
.forecast-card:hover {
    background: var(--bg-hover);
    transform: translateY(-3px);
}
.forecast-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    white-space: nowrap;
}
.forecast-icon {
    font-size: 2rem;
    margin: 6px 0;
}
.forecast-temp {
    font-weight: 700;
    font-size: 1rem;
}
.forecast-wind {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.activity-section {
    margin-top: 6px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 500;
}
.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-excellent { background: #16a34a; }
.dot-good { background: #22c55e; }
.dot-medium { background: #eab308; }
.dot-poor { background: #f97316; }
.dot-bad { background: #dc2626; }

/* Блок советов */
.recommendation-box {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: 0 5px 5px 0;
    padding: 14px 18px;
    color: #0c4a6e;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Ошибки и загрузка */
.error {
    color: var(--red);
    background: rgba(220, 38, 38, 0.1);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}
.loading {
    text-align: center;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
}

#fishingWidget {
    position: relative;
}

#loader {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.57);
    z-index: 100;
}

#loader:after {
  content: "";
  width: 48px;
  height: 48px;
  border: 5px solid #1565c0;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
}

@keyframes rotation {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
} 

/* Адаптивность */
@media (max-width: 800px) {
    .days-container {
        flex-direction: column;
        align-items: stretch;
    }
    .day-card {
        width: 100%;
    }
    .city-selector select, .city-selector input {
        min-width: 100px;
    }
    .forecast-card {
        min-width: 95px;
        padding: 8px 10px;
    }
    .forecast-icon {
        font-size: 1.6rem;
    }
}
.fishing-widget #todayDate {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--accent);
    background: rgba(14, 165, 233, 0.1);
    padding: 4px 8px;
    border-radius: 20px;
    display: inline-block;
    line-height: 1;
}