/* ===== VYLEPŠENÉ VYHLEDEJTE WEATHER STYLES - VARIANTA 5 (MINIMALISTICKÁ BÍLÁ) ===== */

.vyhledejte-weather-widget {
    margin: 25px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vyhledejte-weather-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

.weather-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: weather-spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes weather-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vyhledejte-weather-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f5c6cb;
    margin: 15px 0;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.1);
}

/* ===== HLAVNÍ WEATHER CONTAINER - VARIANTA 5 (MINIMALISTICKÁ BÍLÁ) ===== */
.vyhledejte-weather-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 25px;
    color: #2c3e50;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow: hidden;
    position: relative;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.vyhledejte-weather-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="clouds-light" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="15" fill="%23e9ecef" opacity="0.3"/><circle cx="75" cy="75" r="20" fill="%23dee2e6" opacity="0.2"/><circle cx="50" cy="60" r="12" fill="%23ced4da" opacity="0.25"/></pattern></defs><rect width="100" height="100" fill="url(%23clouds-light)"/></svg>') repeat;
    opacity: 0.4;
    pointer-events: none;
}

.vyhledejte-weather-container > * {
    position: relative;
    z-index: 1;
}

/* ===== HEADER ===== */
.vyhledejte-weather-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.weather-destination {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.weather-icon {
    font-size: 28px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.weather-country {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
    margin-left: 8px;
    background: rgba(44, 62, 80, 0.1);
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.weather-updated {
    font-size: 12px;
    opacity: 0.7;
    background: rgba(44, 62, 80, 0.05);
    color: #6c757d;
    padding: 4px 10px;
    border-radius: 15px;
    margin-top: 5px;
    backdrop-filter: blur(5px);
}

/* ===== AKTUÁLNÍ POČASÍ ===== */
.vyhledejte-weather-current {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(233, 236, 239, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.current-temp {
    text-align: center;
    padding: 10px;
}

.temp-value {
    display: block;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #2c3e50;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.temp-feels {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    background: rgba(44, 62, 80, 0.1);
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 12px;
    margin-top: 5px;
}

.current-details {
    flex: 1;
}

.weather-desc {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.weather-icon-img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    cursor: pointer;
    transition: transform 0.3s ease;
}

.weather-icon-img:hover {
    transform: scale(1.15) rotate(5deg);
}

.current-extra {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    font-size: 14px;
}

.weather-param {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(248, 249, 250, 0.8);
    color: #495057;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(233, 236, 239, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.weather-param:hover {
    background: rgba(233, 236, 239, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.param-icon {
    font-size: 18px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

/* ===== PŘEDPOVĚĎ ===== */
.vyhledejte-weather-forecast {
    margin-top: 30px;
}

.forecast-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border-bottom: 2px solid rgba(44, 62, 80, 0.1);
    padding-bottom: 10px;
}

.forecast-days {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.forecast-day {
    background: rgba(248, 249, 250, 0.9);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(233, 236, 239, 0.6);
    position: relative;
    overflow: hidden;
    color: #2c3e50;
}

.forecast-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 62, 80, 0.05), transparent);
    transition: left 0.5s ease;
}

.forecast-day:hover::before {
    left: 100%;
}

.forecast-day:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(233, 236, 239, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.day-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2c3e50;
}

.day-date {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 15px;
    background: rgba(44, 62, 80, 0.1);
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
}

.day-weather {
    margin: 15px 0;
}

.day-icon {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    cursor: pointer;
    transition: transform 0.3s ease;
}

.day-icon:hover {
    transform: scale(1.2) rotate(-5deg);
}

.day-temps {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.temp-max {
    font-weight: 800;
    font-size: 20px;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.temp-min {
    font-size: 16px;
    opacity: 0.7;
    color: #6c757d;
    text-decoration: none;
    position: relative;
}

.temp-min::before {
    content: '|';
    margin-right: 10px;
    opacity: 0.5;
}

.day-details {
    margin-top: 15px;
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.4;
}

.day-desc, .day-humidity, .day-wind, .day-rain {
    margin: 5px 0;
    background: rgba(44, 62, 80, 0.08);
    color: #6c757d;
    padding: 3px 8px;
    border-radius: 8px;
    display: inline-block;
}

/* ===== FOOTER ===== */
.vyhledejte-weather-footer {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
    padding-top: 15px;
}

.vyhledejte-weather-footer small {
    font-size: 11px;
    opacity: 0.6;
    background: rgba(44, 62, 80, 0.05);
    color: #6c757d;
    padding: 5px 12px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.vyhledejte-weather-footer a {
    color: #007cba;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.vyhledejte-weather-footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ===== COMPACT STYLE ÚPRAVY ===== */
.vyhledejte-weather-container[data-style="compact"] {
    padding: 20px;
    border-radius: 16px;
}

.vyhledejte-weather-container[data-style="compact"] .vyhledejte-weather-current {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
    margin-bottom: 20px;
}

.vyhledejte-weather-container[data-style="compact"] .current-temp {
    padding: 5px;
}

.vyhledejte-weather-container[data-style="compact"] .temp-value {
    font-size: 42px;
}

.vyhledejte-weather-container[data-style="compact"] .weather-desc {
    justify-content: center;
    margin-bottom: 10px;
}

.vyhledejte-weather-container[data-style="compact"] .forecast-days {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.vyhledejte-weather-container[data-style="compact"] .forecast-day {
    padding: 15px 10px;
}

.vyhledejte-weather-container[data-style="compact"] .current-extra {
    display: none;
}

.vyhledejte-weather-container[data-style="compact"] .day-details {
    display: none;
}

/* ===== DETAILED STYLE ÚPRAVY ===== */
.vyhledejte-weather-container[data-style="detailed"] .current-extra {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.vyhledejte-weather-container[data-style="detailed"] .forecast-day {
    padding: 25px 20px;
}

.vyhledejte-weather-container[data-style="detailed"] .day-details {
    margin-top: 20px;
}

/* ===== RESPONZIVNÍ DESIGN ===== */
@media (max-width: 768px) {
    .vyhledejte-weather-container {
        padding: 20px;
        margin: 15px 0;
        border-radius: 16px;
    }
    
    .vyhledejte-weather-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .weather-destination {
        font-size: 20px;
        justify-content: center;
    }
    
    .vyhledejte-weather-current {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 18px;
    }
    
    .current-temp, .current-details {
        text-align: center;
    }
    
    .weather-desc {
        justify-content: center;
    }
    
    .current-extra {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }
    
    .forecast-days {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .forecast-day {
        padding: 15px 8px;
    }
    
    .temp-value {
        font-size: 44px !important;
    }
    
    .weather-param {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .vyhledejte-weather-container {
        padding: 15px;
        margin: 10px 0;
    }
    
    .forecast-days {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .forecast-day {
        padding: 12px 6px;
        font-size: 12px;
    }
    
    .day-icon {
        width: 40px;
        height: 40px;
    }
    
    .current-extra {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
    
    .weather-param {
        justify-content: center;
        padding: 6px 8px;
    }
    
    .temp-value {
        font-size: 36px !important;
    }
}

/* ===== ANIMACE A EFEKTY ===== */
.vyhledejte-weather-container {
    animation: weatherSlideUp 0.6s ease-out;
}

@keyframes weatherSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forecast-day {
    animation: weatherFadeIn 0.4s ease-out;
    animation-fill-mode: both;
}

.forecast-day:nth-child(1) { animation-delay: 0.1s; }
.forecast-day:nth-child(2) { animation-delay: 0.2s; }
.forecast-day:nth-child(3) { animation-delay: 0.3s; }
.forecast-day:nth-child(4) { animation-delay: 0.4s; }
.forecast-day:nth-child(5) { animation-delay: 0.5s; }

@keyframes weatherFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== DARK MODE PODPORA ===== */
@media (prefers-color-scheme: dark) {
    .vyhledejte-weather-container {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        color: #e9ecef;
        border-color: #495057;
    }
    
    .weather-destination,
    .forecast-title,
    .temp-value {
        color: #e9ecef;
    }
    
    .weather-country,
    .weather-updated,
    .temp-feels {
        background: rgba(233, 236, 239, 0.1);
        color: #adb5bd;
    }
    
    .vyhledejte-weather-current {
        background: rgba(33, 37, 41, 0.8);
        border-color: rgba(73, 80, 87, 0.5);
    }
    
    .weather-param {
        background: rgba(33, 37, 41, 0.8);
        color: #adb5bd;
        border-color: rgba(73, 80, 87, 0.5);
    }
    
    .forecast-day {
        background: rgba(33, 37, 41, 0.9);
        color: #e9ecef;
        border-color: rgba(73, 80, 87, 0.6);
    }
    
    .day-name {
        color: #e9ecef;
    }
    
    .temp-max {
        color: #e9ecef;
    }
    
    .vyhledejte-weather-error {
        background: linear-gradient(135deg, #2c1810 0%, #721c24 100%);
        color: #f8d7da;
        border-color: #721c24;
    }
}

/* ===== PŘÍSTUPNOST ===== */
.vyhledejte-weather-container:focus-within {
    outline: 3px solid rgba(0, 123, 255, 0.5);
    outline-offset: 3px;
}

.forecast-day:focus,
.weather-icon-img:focus,
.day-icon:focus {
    outline: 2px solid rgba(0, 123, 255, 0.6);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ===== INTEGRACE S E-SHOPEM ===== */
.single-product .vyhledejte-weather-container {
    margin: 30px 0;
    border: 2px solid rgba(233, 236, 239, 0.8);
}

.woocommerce-tabs .vyhledejte-weather-container {
    margin: 0;
    border-radius: 12px;
}

/* ===== ČISTÝ VZHLED PRO TISK ===== */
@media print {
    .vyhledejte-weather-container {
        background: white !important;
        color: #000 !important;
        border: 2px solid #000;
        break-inside: avoid;
        box-shadow: none;
    }
    
    .weather-icon-img, .day-icon {
        filter: none;
    }
    
    .vyhledejte-weather-footer {
        display: none;
    }
    
    .forecast-day {
        background: white !important;
        border: 1px solid #ccc;
        color: #000 !important;
    }
    
    .temp-value {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
    }
    
    .weather-destination,
    .forecast-title,
    .day-name,
    .temp-max {
        color: #000 !important;
    }
}