/**
 * 🎨 Modern CSS Styling - Fronthatás Detektor
 * Lumo Design System v1.0
 */

/* ==================== GRADIENTS ==================== */
:root {
    --primary-color: #4361ee;
    --secondary-color: #7209b7;
    --success-color: #06d6a0;
    --danger-color: #ef476f;
    --warning-color: #ffd166;
    --cool-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --warm-orange: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --mixed-purple: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --neutral-green: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #f5f7fa, #c3cfe2);
    transition: background 0.5s ease;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: var(--cool-blue);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

.weather-icon-large {
    font-size: 3em;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==================== ANIMATIONS ==================== */
.animate-fade-in { animation: fadeIn 0.8s ease-in; }
.animate-slide-up { animation: slideUp 0.8s ease-out; }
.animate-bounce { animation: bounce 2s infinite; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-shake { animation: shake 0.5s ease-in-out; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* ==================== CARDS ==================== */
.card {
    border-radius: 16px;
    border: none;
    transition: all 0.3s ease;
}

.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.transition-animate {
    animation: cardAppear 0.6s ease-out;
}

@keyframes cardAppear {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ==================== FRONT TYPE BANNERS ==================== */
.front-banner-card {
    position: relative;
    overflow: hidden;
}

.front-banner-card.hidegfront {
    background: var(--cool-blue);
    color: white;
}

.front-banner-card.melegfront {
    background: var(--warm-orange);
    color: white;
}

.front-banner-card.kettős-front {
    background: var(--mixed-purple);
    color: #333;
}

.front-banner-card.nincs-front {
    background: var(--neutral-green);
    color: #333;
}

.front-icon-display {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* ==================== STAT BOXES ==================== */
.stat-box {
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: white;
    transform: scale(1.05);
}

.stat-icon {
    font-size: 1.5rem;
}

/* ==================== ARTICLE CONTENT ==================== */
.article-content {
    line-height: 1.8;
}

.article-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.article-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* ==================== TIP CARDS ==================== */
.tip-card {
    border-radius: 12px;
    background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
}

/* ==================== BUTTONS ==================== */
.btn {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: #304ffe;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67,97,238,0.4);
}

.share-btn {
    border-radius: 8px;
    margin-left: 0.25rem;
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

/* ==================== BACKGROUND OVERLAY ==================== */
.weather-background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .display-1 {
        font-size: 3rem;
    }
    
    .hero-section {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    
    .stat-box {
        padding: 0.5rem;
    }
}

/* ==================== ACCESSIBILITY ==================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==================== LOADING STATES ==================== */
.spinner-border-lg {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* ==================== BADGES ==================== */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ==================== FOOTER ==================== */
.footer-section {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
}