/* OpenWeather CZ - Styly */

/* ===========================
   KOMBINOVANÝ WIDGET (DATUM + POČASÍ)
   =========================== */

.owcz-dnes-container {
    display: flex;
    gap: 12px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
}

.owcz-dnes-link {
    text-decoration: none !important;
    display: block;
    flex: 1;
    min-width: 0;
}

/* Levá strana - datum a svátek */
.owcz-dnes-date {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.owcz-dnes-dayname {
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2px;
}

.owcz-dnes-daynum {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.owcz-dnes-year {
    font-size: 18px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

.owcz-dnes-svatek {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.owcz-dnes-svatek-label {
    font-size: 13px;
    color: #94a3b8;
}

.owcz-dnes-svatek-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

/* Pravá strana - počasí */
.owcz-dnes-weather {
    flex: 1;
    border-radius: 16px;
    padding: 16px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    text-decoration: none !important;
}

.owcz-dnes-weather:hover {
    transform: translateY(-2px);
}

.owcz-dnes-weather-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.owcz-dnes-weather-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.owcz-dnes-weather-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.owcz-dnes-pop {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

.owcz-dnes-weather-temp {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.owcz-dnes-weather-desc {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    text-transform: capitalize;
    margin-bottom: 4px;
}

.owcz-dnes-weather-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    opacity: 0.85;
}

.owcz-dnes-error {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    font-size: 13px;
    text-align: center;
}

/* Responzivita pro kombinovaný widget */
@media (max-width: 500px) {
    .owcz-dnes-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .owcz-dnes-date {
        padding: 14px 16px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 12px;
    }
    
    .owcz-dnes-dayname {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    .owcz-dnes-daynum {
        font-size: 18px;
    }
    
    .owcz-dnes-year {
        font-size: 15px;
        margin-bottom: 0;
        margin-right: auto;
    }
    
    .owcz-dnes-svatek {
        flex-direction: row;
        gap: 6px;
        align-items: center;
    }
    
    .owcz-dnes-svatek-label {
        font-size: 13px;
    }
    
    .owcz-dnes-svatek-name {
        font-size: 15px;
    }
    
    .owcz-dnes-weather {
        padding: 14px 16px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    
    .owcz-dnes-weather-top {
        margin-bottom: 0;
        flex: 0 0 auto;
    }
    
    .owcz-dnes-weather-icon {
        width: 48px;
        height: 48px;
    }
    
    .owcz-dnes-weather-temp {
        font-size: 28px;
        margin-bottom: 0;
    }
    
    .owcz-dnes-weather-desc {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    .owcz-dnes-weather-info {
        position: absolute;
        top: 14px;
        right: 16px;
    }
    
    .owcz-dnes-weather {
        position: relative;
    }
    
    .owcz-dnes-weather-location {
        margin-left: auto;
    }
}

/* ===========================
   KOMPAKTNÍ WIDGET - NOVÝ DESIGN
   =========================== */

.owcz-compact-link {
    text-decoration: none !important;
    display: block;
    width: 100%;
}

.owcz-compact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border-radius: 20px;
    color: #ffffff !important;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.owcz-compact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Pozadí podle počasí - gradienty */
.owcz-bg-clear {
    background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%);
}

.owcz-bg-clear-night {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.owcz-bg-partlycloudy {
    background: linear-gradient(135deg, #74b9ff 0%, #5d9cec 50%, #4a89dc 100%);
}

.owcz-bg-partlycloudy-night {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #1a252f 100%);
}

.owcz-bg-cloudy {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 50%, #7f8c8d 100%);
}

.owcz-bg-cloudy-night {
    background: linear-gradient(135deg, #2c3e50 0%, #4a5568 50%, #2d3748 100%);
}

.owcz-bg-rain {
    background: linear-gradient(135deg, #667eea 0%, #4a5568 50%, #536976 100%);
}

.owcz-bg-rain-night {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1a202c 100%);
}

.owcz-bg-storm {
    background: linear-gradient(135deg, #373B44 0%, #4286f4 50%, #373B44 100%);
}

.owcz-bg-storm-night {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.owcz-bg-snow {
    background: linear-gradient(135deg, #E6DADA 0%, #a8c0d6 50%, #8eb4d4 100%);
    color: #2d3748 !important;
}

.owcz-bg-snow .owcz-compact-info-icon,
.owcz-bg-snow .owcz-compact-desc {
    color: #4a5568 !important;
    fill: #4a5568 !important;
}

.owcz-bg-snow-night {
    background: linear-gradient(135deg, #4a5568 0%, #667892 50%, #2d3748 100%);
}

.owcz-bg-fog {
    background: linear-gradient(135deg, #d7d2cc 0%, #b9b5b0 50%, #9e9a95 100%);
    color: #2d3748 !important;
}

.owcz-bg-fog .owcz-compact-info-icon,
.owcz-bg-fog .owcz-compact-desc {
    color: #4a5568 !important;
    fill: #4a5568 !important;
}

.owcz-bg-fog-night {
    background: linear-gradient(135deg, #3d4a5c 0%, #536976 50%, #292E49 100%);
}

/* Horní řádek - ikona a teplota */
.owcz-compact-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.owcz-compact-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    flex-shrink: 0;
}

.owcz-compact-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.owcz-compact-temp {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.owcz-compact-desc {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    text-transform: capitalize;
}

/* Spodní řádek - info */
.owcz-compact-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.owcz-compact-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    white-space: nowrap;
}

.owcz-compact-info-icon {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    fill: currentColor;
    flex-shrink: 0;
}


/* ===========================
   PLNÝ WIDGET
   =========================== */

.owcz-full {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.owcz-full-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: background-image 0.5s ease;
}

.owcz-full-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.owcz-full-content {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Header */
.owcz-header {
    text-align: center;
    margin-bottom: 30px;
}

.owcz-day {
    font-size: 28px;
    font-weight: 600;
}

.owcz-date {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 4px;
}

/* Main weather */
.owcz-main {
    text-align: center;
    margin-bottom: 30px;
}

.owcz-main-icon {
    width: 140px;
    height: 140px;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.2));
}

.owcz-main-temp {
    font-size: 72px;
    font-weight: 200;
    line-height: 1;
    margin: 10px 0;
}

.owcz-main-desc {
    font-size: 22px;
    font-weight: 500;
    text-transform: capitalize;
    margin-bottom: 10px;
}

.owcz-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    opacity: 0.9;
}

/* Details card */
.owcz-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 20px;
    margin: 0 10px 30px;
    color: #333;
    text-shadow: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.owcz-detail-item {
    text-align: center;
}

.owcz-detail-icon {
    width: 28px;
    height: 28px;
    fill: #3b82f6;
    margin-bottom: 8px;
}

.owcz-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.owcz-detail-label {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section titles */
.owcz-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 15px 15px;
    color: #fff;
}

/* Hourly forecast */
.owcz-hourly {
    margin-bottom: 30px;
}

.owcz-hourly-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 15px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.owcz-hourly-scroll::-webkit-scrollbar {
    display: none;
}

.owcz-hourly-item {
    flex: 0 0 auto;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 12px 16px;
    text-align: center;
    min-width: 70px;
    border: 1px solid rgba(255,255,255,0.2);
}

.owcz-hourly-item:first-child {
    background: rgba(255,255,255,0.3);
}

.owcz-hourly-time {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

.owcz-hourly-icon {
    width: 40px;
    height: 40px;
    margin: 6px 0;
}

.owcz-hourly-temp {
    font-size: 16px;
    font-weight: 600;
}

/* Daily forecast */
.owcz-forecast-list {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    margin: 0 15px;
    overflow: hidden;
    color: #333;
    text-shadow: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.owcz-forecast-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.owcz-forecast-item:last-child {
    border-bottom: none;
}

.owcz-forecast-day {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.owcz-forecast-dayname {
    font-weight: 600;
    font-size: 15px;
}

.owcz-forecast-date {
    font-size: 13px;
    color: #666;
}

.owcz-forecast-icon {
    width: 44px;
    height: 44px;
    margin: 0 10px;
}

.owcz-forecast-pop {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #3b82f6;
    min-width: 50px;
}

.owcz-forecast-temps {
    display: flex;
    gap: 12px;
    min-width: 70px;
    justify-content: flex-end;
}

.owcz-forecast-max {
    font-weight: 600;
    font-size: 16px;
}

.owcz-forecast-min {
    color: #999;
    font-size: 16px;
}

/* Weather effects */
.owcz-effect-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

/* Snow effect */
.owcz-snow-effect .owcz-effect-container::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='1.5' fill='white' opacity='0.8'/%3E%3C/svg%3E");
    background-size: 50px 50px;
    animation: snowfall 8s linear infinite;
}

.owcz-snow-effect .owcz-effect-container::after {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='1' fill='white' opacity='0.6'/%3E%3C/svg%3E");
    background-size: 30px 30px;
    animation: snowfall 12s linear infinite;
    animation-delay: -4s;
}

@keyframes snowfall {
    0% { transform: translateY(-100px) translateX(0); }
    100% { transform: translateY(100vh) translateX(20px); }
}

/* Rain effect */
.owcz-rain-effect .owcz-effect-container::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 20'%3E%3Cline x1='2' y1='0' x2='2' y2='15' stroke='rgba(255,255,255,0.4)' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 20px 40px;
    animation: rainfall 0.5s linear infinite;
}

@keyframes rainfall {
    0% { transform: translateY(-40px); }
    100% { transform: translateY(0); }
}

/* Storm effect */
.owcz-storm-effect .owcz-effect-container::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 20'%3E%3Cline x1='2' y1='0' x2='2' y2='15' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 15px 35px;
    animation: rainfall 0.3s linear infinite;
}

.owcz-storm-effect .owcz-effect-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0);
    animation: lightning 6s infinite;
}

@keyframes lightning {
    0%, 89%, 91%, 93%, 95%, 100% { background: rgba(255,255,255,0); }
    90%, 92%, 94% { background: rgba(255,255,255,0.2); }
}

/* Error state */
.owcz-error {
    padding: 20px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 12px;
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .owcz-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .owcz-main-temp {
        font-size: 56px;
    }
    
    .owcz-main-icon {
        width: 110px;
        height: 110px;
    }
}
