/* Időjárás Widget Pro - Stílusok v6.0 */

.idojaras-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 900px;
    margin: 20px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    color: white;
    transition: background 0.5s ease;
}

/* Éjszakai téma (18:00 - 06:00) */
.idojaras-widget.night-theme {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    position: relative;
    overflow: hidden;
}

/* Csillagok éjszakára */
.idojaras-widget.night-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 60px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 90px 10px, white, transparent),
        radial-gradient(1px 1px at 200px 150px, white, transparent),
        radial-gradient(1px 1px at 250px 100px, white, transparent),
        radial-gradient(2px 2px at 300px 50px, white, transparent),
        radial-gradient(1px 1px at 150px 200px, white, transparent),
        radial-gradient(1px 1px at 350px 180px, white, transparent);
    background-repeat: repeat;
    background-size: 400px 300px;
    animation: starfield 200s linear infinite;
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

@keyframes starfield {
    from { transform: translateY(0); }
    to { transform: translateY(-300px); }
}

/* Tartalom előtérbe hozása éjszaka */
.idojaras-widget.night-theme > * {
    position: relative;
    z-index: 1;
}

/* Vezérlők */
.idojaras-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.idojaras-gps-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.idojaras-gps-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.idojaras-search {
    display: flex;
    flex: 1;
    gap: 5px;
    min-width: 200px;
}

.idojaras-city-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    outline: none;
}

.idojaras-city-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.idojaras-city-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.idojaras-search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.idojaras-search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Loading */
.idojaras-loading {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    font-size: 24px;
    color: white;
}

/* Hiba üzenet */
.idojaras-error {
    background: rgba(255, 100, 100, 0.3);
    border: 2px solid rgba(255, 100, 100, 0.5);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.error-message {
    color: white;
    font-size: 16px;
    margin: 0;
}

/* Aktuális időjárás */
.weather-current {
    text-align: center;
    margin-bottom: 30px;
}

.weather-location h2 {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 700;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.weather-icon-big {
    font-size: 80px;
}

.weather-temp-big {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

.weather-description {
    font-size: 24px;
    text-transform: capitalize;
    margin: 10px 0 30px 0;
    opacity: 0.9;
}

/* Részletek */
.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.detail-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.detail-icon {
    font-size: 28px;
}

.detail-label {
    font-size: 14px;
    opacity: 0.8;
}

.detail-value {
    font-size: 20px;
    font-weight: 700;
}

/* Öltözködési tanács */
.clothing-advice {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.clothing-icon {
    font-size: 60px;
    flex-shrink: 0;
}

.clothing-content {
    flex: 1;
}

.clothing-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.clothing-text {
    font-size: 16px;
    opacity: 0.9;
}

/* 🆕 SKÓT KULTÚRA GRID */
.scottish-culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.culture-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.culture-box:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.culture-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

/* Skót Szleng Box */
.slang-box .slang-word {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin: 10px 0;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slang-box .slang-meaning {
    font-size: 14px;
    text-align: center;
    opacity: 0.9;
    font-style: italic;
}

/* Whisky Box */
.whisky-box .whisky-name {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin: 10px 0;
    color: #F4A460;
}

.whisky-box .whisky-reason {
    font-size: 14px;
    text-align: center;
    opacity: 0.9;
}

/* Futball Box */
.football-box .football-joke {
    font-size: 15px;
    text-align: center;
    line-height: 1.5;
    font-style: italic;
    margin: 10px 0;
}

/* Zene Box */
.music-box .music-song {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin: 8px 0;
    color: #98D8C8;
}

.music-box .music-artist {
    font-size: 13px;
    text-align: center;
    opacity: 0.9;
    font-style: italic;
}

/* Takarékosság Box */
.saving-box .saving-tip {
    font-size: 15px;
    text-align: center;
    line-height: 1.5;
    margin: 10px 0;
}

/* Étel Box */
.food-box .food-name {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin: 8px 0;
    color: #FFB6C1;
}

.food-box .food-desc {
    font-size: 13px;
    text-align: center;
    opacity: 0.9;
}

/* Előrejelzés */
.weather-forecast {
    margin-top: 30px;
}

.weather-forecast h3 {
    font-size: 24px;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 700;
}

.forecast-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.forecast-day {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.forecast-day:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.forecast-day-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.forecast-icon {
    font-size: 36px;
    margin: 8px 0;
}

.forecast-temp {
    font-size: 16px;
    font-weight: 700;
}

/* Hold fázis és ár-apály */
.moon-tide-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.moon-phase-box,
.tide-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
}

.moon-phase-box h4,
.tide-box h4 {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

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

.moon-icon {
    font-size: 60px;
}

.moon-info {
    text-align: left;
}

.moon-phase-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.moon-illumination {
    font-size: 16px;
    opacity: 0.9;
}

.tide-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.tide-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.tide-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.tide-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.tide-time {
    font-size: 20px;
    font-weight: 700;
}

/* Vicces tanács */
.joke-box {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 10px;
    font-style: italic;
    text-align: center;
    font-size: 15px;
}

/* Reszponzív design */
@media (max-width: 768px) {
    .idojaras-widget {
        padding: 20px;
        margin: 10px;
    }
    
    .weather-location h2 {
        font-size: 26px;
    }
    
    .weather-temp-big {
        font-size: 56px;
    }
    
    .weather-icon-big {
        font-size: 60px;
    }
    
    .weather-description {
        font-size: 20px;
    }
    
    .weather-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .clothing-advice {
        flex-direction: column;
        text-align: center;
    }
    
    .clothing-icon {
        font-size: 50px;
    }
    
    .scottish-culture-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 12px;
    }
    
    .forecast-container {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    
    .forecast-day {
        padding: 8px 4px;
    }
    
    .forecast-day-name {
        font-size: 12px;
    }
    
    .forecast-icon {
        font-size: 28px;
    }
    
    .forecast-temp {
        font-size: 13px;
    }
    
    .moon-tide-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .idojaras-controls {
        flex-direction: column;
    }
    
    .idojaras-gps-btn,
    .idojaras-search {
        width: 100%;
    }
    
    .weather-main {
        flex-direction: column;
        gap: 10px;
    }
    
    .weather-temp-big {
        font-size: 48px;
    }
    
    .weather-icon-big {
        font-size: 50px;
    }
    
    .scottish-culture-grid {
        grid-template-columns: 1fr;
    }
    
    .forecast-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .forecast-day:nth-child(n+4) {
        display: none;
    }
}

/* Widget sidebar verzió */
.widget .idojaras-widget {
    max-width: 100%;
    padding: 15px;
}

.widget .weather-location h2 {
    font-size: 20px;
}

.widget .weather-temp-big {
    font-size: 40px;
}

.widget .weather-icon-big {
    font-size: 40px;
}

.widget .weather-description {
    font-size: 16px;
}

.widget .weather-details {
    grid-template-columns: 1fr 1fr;
}

.widget .scottish-culture-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.widget .culture-box {
    padding: 12px;
}

.widget .culture-box h4 {
    font-size: 14px;
}

.widget .forecast-container {
    grid-template-columns: repeat(3, 1fr);
}

.widget .clothing-advice {
    padding: 15px;
}

.widget .clothing-icon {
    font-size: 40px;
}

.widget .clothing-title {
    font-size: 18px;
}

.widget .clothing-text {
    font-size: 14px;
}
