/* Reset & Base */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    padding: 2rem 0;
    text-align: center;
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    border-bottom: 1px solid #334155;
    margin-bottom: 2rem;
}

.site-header h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    gap: 1.5rem;
    /* Mobile Layout: 1 column */
    grid-template-columns: 1fr;
    /* Explicit order for mobile: Map1 -> Video -> Map2 -> Map3 -> Map4 */
    grid-template-areas:
        "map1"
        "video"
        "map2"
        "map3"
        "map4";
    padding-bottom: 3rem;
}

/* Desktop Layout (>= 768px) */
@media (min-width: 768px) {
    .main-grid {
        grid-template-columns: 2fr 1fr;
        /* Maps take 2/3, Video takes 1/3 */
        grid-template-areas:
            "map1 video"
            "map2 video"
            "map3 video"
            "map4 video";
        align-items: start;
        /* Top align */
    }

    /* Sticky video on desktop */
    #ai-presenter {
        position: sticky;
        top: 2rem;
        height: auto;
        /* Allow it to fit content */
    }
}

/* Assign Areas */
#map-now {
    grid-area: map1;
}

#ai-presenter {
    grid-area: video;
}

#map-dawn {
    grid-area: map2;
}

#map-day {
    grid-area: map3;
}

#map-evening {
    grid-area: map4;
}

/* Cards */
.map-card,
.video-card {
    background-color: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #334155;
}

.card-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.badge {
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.time {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Map Placeholders */
.map-placeholder {
    height: 300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-content {
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(4px);
}

.map-content .temp {
    display: block;
    font-size: 3rem;
    font-weight: 800;
}

.map-content .desc {
    font-size: 1.2rem;
    color: #e2e8f0;
}

/* Gradients for maps */
.gradient-1 {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

/* Night/Now */
.gradient-2 {
    background: linear-gradient(135deg, #312e81, #6366f1);
}

/* Dawn */
.gradient-3 {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

/* Day */
.gradient-4 {
    background: linear-gradient(135deg, #4c1d95, #8b5cf6);
}

/* Evening */

/* Video Card Styles */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    /* Portrait video for mobile/tiktok style */
    background-color: #000;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #27272a, #000);
    color: #a1a1aa;
}

.play-button {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.cta-box {
    padding: 1.5rem;
    text-align: center;
    background-color: #1e293b;
}

.cta-box p {
    margin-bottom: 1rem;
    font-weight: 600;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #475569;
    background-color: #0f172a;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
}

.small-print {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 400 !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-telegram {
    background-color: #229ED9;
    /* Telegram color */
    color: white;
    width: 100%;
}

.btn-telegram:hover {
    background-color: #1b8ac0;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #334155;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.source-info {
    margin-top: 0.5rem;
    opacity: 0.7;
}
/* Map Explanation Text */
.map-explanation {
    padding: 1.5rem;
    background-color: var(--bg-card);
    border-top: 1px solid #334155;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
}

/* Map Icons Layer */
.map-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through */
    z-index: 10;
}

.weather-icon {
    position: absolute;
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transform: translate(-50%, -50%); /* Center on coordinate */
}

/* Approximate positions on a Hungary map placeholder */
/* These percentages need to be tuned based on the actual map image aspect ratio */
.pos-budapest { top: 40%; left: 50%; }
.pos-debrecen { top: 35%; left: 85%; }
.pos-szeged   { top: 80%; left: 70%; }
.pos-pecs     { top: 85%; left: 35%; }
.pos-gyor     { top: 30%; left: 30%; }

/* Weather Map Styles */
.map-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 0.5rem;
}

.weather-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(4px);
    text-align: center;
}

.map-overlay .temp {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.map-overlay .desc {
    font-size: 1rem;
    color: #e2e8f0;
}
