/**
 * Hungarian Web Widgets CSS
 * Letisztult stílusok a magyar weboldalak widget-jeihez
 */

/* Általános widget stílusok */
.hungarian-widget {
    font-family: "Inter", Sans-serif;
}



/* Aktuális idő és dátum */
.current-time, 
.current-date {
    font-size: 1.4em;
    font-weight: 600;
    color: #2c3e50;
    display: inline-block;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}



.weather-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.weather-temp {
    font-size: 3em;
    font-weight: 700;
    margin: 0;
}

.weather-info {
    flex: 1;
    text-align: left;
}

.weather-desc {
    font-size: 1.3em;
    font-weight: 500;
    margin-bottom: 8px;
}

.weather-details {
    font-size: 1em;
    opacity: 0.9;
    display: flex;
    gap: 15px;
    align-items: center;
}

.weather-details span {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* Névnap widget */
.nameday-widget {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-align: center;
    border: none;
}

.nameday-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.nameday-label {
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 500;
}

.nameday-names {
    font-weight: 700;
    font-size: 1.4em;
    flex: 1;
    text-align: right;
}

/* Árfolyam widget */
.exchange-widget {
    background: #fff;
    padding: 15px;
}

.exchange-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.exchange-table th,
.exchange-table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.exchange-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9em;
}

.exchange-table tr:hover {
    background: #f8f9fa;
}

.exchange-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exchange-table td strong {
    color: #3498db;
    font-size: 1.1em;
    font-weight: 600;
}

.exchange-updated {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-top: 12px;
    text-align: right;
    font-style: italic;
}

/* Loading és error állapotok */
.weather-loading,
.nameday-loading,
.exchange-loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    padding: 20px;
}

.exchange-loading {
    color: #7f8c8d;
}

.weather-error,
.nameday-error,
.exchange-error {
    text-align: center;
    color: #e74c3c;
    font-weight: 500;
    padding: 15px;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
}

/* Reszponzív design */
@media (max-width: 768px) {
    .weather-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .weather-info {
        text-align: center;
    }
    
    .weather-temp {
        font-size: 2.5em;
    }
    
    .nameday-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .nameday-names {
        text-align: center;
    }
    
    .exchange-table td {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hungarian-widget {
        padding: 15px;
        margin: 10px 0;
    }
    
    .weather-temp {
        font-size: 2em;
    }
    
    .current-time,
    .current-date {
        font-size: 1.2em;
        padding: 10px 15px;
    }
    
    .weather-details {
        flex-direction: column;
        gap: 8px;
    }
}