/* Extracted from new_template.html - Components */

/* --- TYPOGRAPHY --- */
h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
    line-height: 1;
}

.time-headline {
    font-size: 48px;
    /* Reduced to fit Full Date String */
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    padding: 0 16px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.sub-headline {
    padding: 0 16px;
    margin-bottom: 24px;
    color: var(--accent-lime);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sub-headline::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-lime);
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 10px var(--accent-lime);
}

/* --- BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px 24px 16px;
}

.bento-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* REGION SCROLLER */
.region-scroller-container {
    grid-column: 1 / -1;
    overflow: hidden;
    margin-bottom: 8px;
}

.region-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 20px;
    margin-bottom: -20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-left: 4px;
    scroll-snap-type: x mandatory;
}

.region-card {
    min-width: auto;
    padding: 0 24px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s var(--ease-out-expo);
    cursor: pointer;
    scroll-snap-align: start;
}

.region-card.active {
    background: var(--text-main);
    color: #000;
    border-color: var(--text-main);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    font-weight: 800;
}

.region-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* --- PREMIUM SCROLLER --- */
.section-title-outer {
    padding: 0 24px;
    margin-top: 10px;
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-scroller {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 24px 32px 24px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
}

.premium-scroller::-webkit-scrollbar {
    display: none;
}

.premium-card {
    width: 80vw;
    min-width: 280px;
    max-width: 320px;
    height: 280px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    scroll-snap-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s var(--ease-out-expo);
}

.premium-card:active {
    transform: scale(0.97);
}

.premium-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.premium-card:hover .premium-img {
    transform: scale(1.1);
}

.premium-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0F172A 0%, rgba(15, 23, 42, 0.6) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.premium-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* The "Submit" Button */
.submit-widget {
    background: linear-gradient(45deg, #FB7185, #A78BFA, #F472B6);
    background-size: 200% 200%;
    animation: shimmer 6s ease infinite;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.02em;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
    grid-column: span 2;
    height: 64px;
    flex-direction: row;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(251, 113, 133, 0.3);
}

.submit-widget:active {
    transform: scale(0.96);
}

.submit-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

/* --- FEED --- */
/* Main Header Wrapper */
.header-wrapper {
    padding: 20px 24px 0 24px;
}

/* 4. Event Feed */
.feed-container {
    background: #0F172A;
    border-radius: 40px 40px 0 0;
    border-top: 1px solid var(--border-subtle);
    margin: 0 24px;
    /* Desktop Standard */
    padding: 32px 24px 140px 24px;
    min-height: 60vh;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
}

@media (max-width: 600px) {

    /* Unified Margin/Padding on Mobile */
    .header-wrapper {
        padding: 20px 10px 0 10px;
    }

    .feed-container {
        margin: 0 10px;
        padding-left: 10px;
        padding-right: 10px;
        border-radius: 32px 32px 0 0;
    }

    /* Compact Header (Date+Time Mode) */
    .time-headline {
        font-size: 24px;
        /* drastically reduced to fit "5. Jänner 2026 20:15" */
        line-height: 1.2;
        margin-bottom: 4px;
        padding: 0;
        white-space: nowrap;
        /* try to keep single line if possible, or allow wrap */
        white-space: normal;
        /* Allow wrap if needed, but 24px should fit */
    }

    .sub-headline {
        font-size: 11px;
        padding: 0;
        margin-bottom: 16px;
    }
}

.info-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    /* Slightly darker */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 60;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: all 0.2s;
}

.info-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.sticky-date {
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    padding: 16px 8px 12px 8px;
    z-index: 10;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-lime);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
    padding-left: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-row {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s;
}

.event-row:active {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 18px 12px;
    margin: 0 -4px;
}

.time-block {
    font-variant-numeric: tabular-nums;
    font-size: 15px;
    font-weight: 600;
    color: white;
    display: flex;
    flex-direction: column;
}

.time-block span {
    font-size: 11px;
    opacity: 0.5;
    font-weight: 400;
    margin-top: 2px;
}

.info-block {
    overflow: hidden;
}

.title-text {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-text {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- ISLAND NAV (FIXED CENTERING) --- */
.island-nav {
    position: fixed;
    bottom: 32px;
    left: 0;
    right: 0;
    margin: 0 auto;
    /* Responsive width */
    width: 92%;
    max-width: 400px;
    height: 72px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    z-index: 200;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
}

.nav-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
}

.nav-btn.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.nav-btn.active svg {
    stroke: var(--accent-lime);
}

.nav-btn.pulse {
    background: rgba(255, 255, 255, 0.05);
}

/* ... existing map/drawer ... */

/* --- SUCCESS MODAL STYLES --- */
@keyframes rocketLaunch {
    0% {
        transform: scale(0.5) translateY(20px);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) translateY(-10px);
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-emoji {
    font-size: 64px;
    display: block;
    text-align: center;
    margin-bottom: 16px;
    animation: rocketLaunch 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.magic-link-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    display: flex;
    align-items: center;
    margin: 16px 0;
    backdrop-filter: blur(10px);
}

.magic-link-input {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    padding: 8px 12px;
    width: 100%;
    outline: none;
    text-overflow: ellipsis;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: white;
    color: black;
}

/* --- MAP & DRAWER --- */
#view-map {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #0F172A;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#view-map.active {
    opacity: 1;
    pointer-events: auto;
}

#map {
    width: 100%;
    height: 100%;
}

.map-marker {
    background: var(--accent-lime);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    box-shadow: 0 0 10px var(--accent-lime), 0 0 20px var(--accent-lime);
    border: 2px solid #fff;
    position: relative;
}

.map-marker::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid var(--accent-lime);
    opacity: 0;
    animation: radarPing 2s infinite;
}

@keyframes radarPing {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(16px) !important;
    color: white !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0 !important;
}

.leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.9) !important;
}

.leaflet-popup-content {
    margin: 16px !important;
    font-family: "Inter", sans-serif !important;
}

.popup-btn {
    display: block;
    margin-top: 10px;
    width: 100%;
    background: var(--accent-lime);
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    padding: 8px;
    cursor: pointer;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1E293B;
    border-radius: 40px 40px 0 0;
    padding: 32px 24px;
    transform: translateY(110%);
    transition: transform 0.5s var(--ease-out-expo);
    z-index: 301;
    max-width: 600px;
    margin: 0 auto;
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5);
    max-height: 85vh;
    /* Allow max height */
    overflow-y: auto;
    /* Enable scrolling */
    display: flex;
    flex-direction: column;
}

.drawer-hero {
    margin: -32px -24px 24px -24px;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
    border-radius: 40px 40px 0 0;
}

@media (max-width: 600px) {
    .drawer {
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .drawer-hero {
        border-radius: 0;
        padding-top: 48px;
        /* Safe area */
    }
}

.drawer.open {
    transform: translateY(0);
}

.drawer-handle {
    width: 48px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: -10px auto 24px auto;
}

.hidden {
    display: none;
}

.form-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    /* Glass feel */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    padding: 0 16px;
    height: 52px;
    /* Taller touch target */
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    -webkit-appearance: none;
    /* Reset for custom styling */
    appearance: none;
}

.form-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-textarea {
    height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-lime);
    box-shadow: 0 0 0 4px rgba(217, 249, 157, 0.1);
    transform: translateY(-1px);
}

.form-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.cat-label {
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
}

/* Floating Navigation Button (Plus) */
.nav-fab {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(45deg, #FB7185, #A78BFA, #F472B6);
    background-size: 200% 200%;
    animation: shimmer 6s ease infinite;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(251, 113, 133, 0.4);
    transform: translateY(-26px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 20;
}

.nav-fab svg {
    width: 32px;
    height: 32px;
    stroke-width: 3;
}

.nav-fab:hover {
    transform: translateY(-24px) scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

.nav-fab:active {
    transform: translateY(-18px) scale(0.95);
}

/* Ensure Nav handles the Fab correctly */
.island-nav {
    overflow: visible;
    /* Allow FAB to pop out */
    padding: 0 40px;
    /* Adjust padding for 3 items */
    justify-content: space-between;
    /* Spread items */
}