@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

/* --- Variables & Reset --- */
:root {
    --primary: #1A5F7A;
    /* Deep Petroleum Blue - High Contrast */
    --primary-hover: #134559;
    --secondary: #E63946;
    /* Vibrant Coral Red - Extra Pop */
    --dark: #1A1A1A;
    /* Deepest Midnight - Sharp Text */
    --light: #E2E8F0;
    /* Brighter Contrast Background */
    --white: #ffffff;
    --gray: #4A5568;
    /* Balanced Gray for subtext */

    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: anywhere;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* --- Typography --- */

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

p {
    font-weight: 400;
    color: #334155;
    /* Darker Slate for better readability */
    margin-bottom: 1rem;
}

/* --- Layout Components --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header / Nav --- */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--dark);
    display: flex;
    align-items: baseline;
    line-height: 1;
    transition: all 0.2s ease;
}

.logo span {
    color: var(--primary);
    font-weight: 300;
}

.logo:hover {
    transform: scale(1.02);
    opacity: 0.85;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    opacity: 0.75;
    transition: opacity 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Nav badge (unread count) */
.nav-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-profile-link {
    display: flex;
    align-items: center;
    position: relative;
}

/* --- Desktop: show desktop nav, hide mobile row --- */
.nav-desktop {
    display: flex;
}

.nav-mobile-row {
    display: none;
}

/* --- Burger Button --- */
.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: background 0.2s;
}

.burger-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.burger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

.burger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Small Find Events button for mobile */
.btn-sm-mobile {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    border-radius: 20px;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    display: block;
    opacity: 1;
}

/* --- Mobile Menu Panel --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -110vw;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    /* fallback for older browsers */
    height: 100dvh;
    /* modern browsers - accounts for mobile toolbars */
    background: white;
    z-index: 1100;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    overflow-x: hidden;
    visibility: hidden;
}

.mobile-menu.open {
    right: 0;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.mobile-menu-logo span {
    color: var(--primary);
    font-weight: 300;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark);
    opacity: 0.6;
    padding: 4px 8px;
    border-radius: 6px;
    transition: opacity 0.2s, background 0.2s;
}

.mobile-menu-close:hover {
    opacity: 1;
    background: #f0f0f0;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-menu-links a {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 1px solid #f7f7f7;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    background: #f4f9fb;
    color: var(--primary);
}

.mobile-menu-links .mobile-logout {
    margin-top: auto;
    color: #ef4444;
}

.mobile-menu-links .mobile-login-btn {
    margin: 1rem 1.5rem 0.5rem;
    background: var(--primary);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 0.8rem;
    border-bottom: none;
}

.mobile-menu-links .mobile-register-btn {
    margin: 0 1.5rem;
    background: #f4f9fb;
    color: var(--primary);
    text-align: center;
    border-radius: 8px;
    padding: 0.8rem;
    border-bottom: none;
    font-weight: 600;
}

/* --- Desktop: explicitly hide all mobile-only elements --- */
@media (min-width: 769px) {
    .nav-mobile-row {
        display: none !important;
    }

    .mobile-menu {
        display: none !important;
    }

    .mobile-menu-overlay {
        display: none !important;
    }
}

/* --- Mobile breakpoint --- */



.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 145, 163, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(79, 145, 163, 0.45);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--dark);
    color: var(--dark);
}

.btn-outline:hover {
    background: var(--dark);
    color: white;
}

/* --- Hero Section --- */
.hero {
    padding: 6rem 0;
    text-align: center;
    background-image: url('/assets/img/hero-bg.png');
    background-size: cover;
    background-position: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2), var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

@media (min-width: 1240px) {
    .hero {
        max-width: 1200px;
        margin: 2rem auto 4rem;
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem;
        border-radius: 0;
        margin-bottom: 2.5rem;
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.75) 0%, rgba(26, 26, 26, 0.4) 100%);
    z-index: 1;
}

/* Previous scroll indicator or glass effect can go here */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin: 0 0 1.2rem 0;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.4rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.search-bar {
    background: white;
    padding: 10px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    width: 600px;
    max-width: 100%;
    align-items: center;
    border: 1px solid #eee;
}

.search-bar input {
    border: none;
    padding: 12px 20px;
    flex-grow: 1;
    font-size: 1rem;
    outline: none;
    background: transparent;
    font-family: inherit;
}

.search-bar button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-bar button:hover {
    transform: scale(1.05);
}

/* --- Sort Buttons --- */
.sort-btn {
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--gray);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.sort-btn.active {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(26, 95, 122, 0.2);
}

.sort-btn:hover:not(.active) {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
}

/* --- Event Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    height: 200px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    position: relative;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.puls-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.card-body {
    padding: 1rem 1.15rem 1.15rem;
}

.card-date {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.card-location {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- Footer --- */
footer {
    background: white;
    padding: 4rem 0;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy p {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--primary);
}

@media (max-width: 600px) {
    .footer-layout {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.active {
    bottom: 24px;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    justify-content: space-between;
}

.cookie-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--dark);
}

.cookie-text p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.4;
}

.cookie-text a {
    color: var(--primary);
    font-weight: 600;
}

.cookie-btn {
    background: var(--dark);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s;
}

.cookie-btn:hover {
    transform: scale(1.03);
}

@media (max-width: 480px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* --- Nav Avatar --- */
.nav-avatar-wrap {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.nav-avatar {
    width: 34px;
    height: 34px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.nav-avatar-initials {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    border: 2px solid var(--primary);
    line-height: 1;
    font-family: var(--font-main);
    flex-shrink: 0;
}

/* --- Status Pills --- */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 0.6rem;
}

.status-pill.draft {
    background: #fef3c7;
    color: #92400e;
}

.status-pill.published {
    background: #d1fae5;
    color: #065f46;
}

.status-pill.archived {
    background: #f1f5f9;
    color: #475569;
}

.status-pill.deleted {
    background: #fee2e2;
    color: #dc2626;
}

/* =========================================
   PAGE SPECIFIC STYLES (SCOPED)
   ========================================= */

/* --- Profile Styles (Shared) --- */
.profile-header {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-avatar-lg {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f8fafc;
    display: block;
    background-color: #eee;
}

.section-title {
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Public Profile --- */
.stats-badge {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
    flex: 1;
}

.review-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

/* --- Manage Event (Scoped) --- */
.manage-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.manage-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.manage-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
}

.manage-header p {
    margin: 0;
    opacity: 0.85;
}

.manage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media(max-width:768px) {
    .manage-grid {
        grid-template-columns: 1fr;
    }
}

.manage-container .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: none;
}

.manage-container .card-header {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.manage-container .card-body {
    padding: 1.5rem;
}

.group-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.group-badge.male {
    background: #dbeafe;
    color: #1e40af;
}

.group-badge.female {
    background: #fce7f3;
    color: #9d174d;
}

.group-badge.any {
    background: #f0fdf4;
    color: #166534;
}

.group-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.group-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s;
}

.attendee-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.attendee-row:last-child {
    border-bottom: none;
}

.attendee-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.attendee-info {
    flex: 1;
}

.attendee-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.attendee-meta {
    font-size: 0.75rem;
    color: #94a3b8;
}

.waitlist-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.assigned-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.form-group input,
.form-group select {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.manage-container .btn-primary {
    background: #667eea;
    color: white;
}

.manage-container .btn-danger {
    background: #ef4444;
    color: white;
}

.manage-container .btn-outline {
    background: white;
    border: 1px solid #e2e8f0;
    color: #374151;
}

.stat-box {
    flex: 1;
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.stat-box .num {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
}

.stat-box .lbl {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* --- Event Show --- */
.event-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.event-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
}

.event-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    width: 100%;
}

.badge-lg {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    display: inline-block;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-weight: bold;
}

.layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}

.info-box {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.comment-list {
    margin-top: 1rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.comment-date {
    color: #888;
    font-size: 0.8rem;
}

.attendee-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* --- Home Modal & Login --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-weight: 700;
}

.modal-header p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    margin-top: 0;
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-full {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-full:hover {
    background-color: #1d4ed8;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
    line-height: 20px;
    padding: 0;
}

.close-modal:hover {
    color: #0f172a;
}

.switch-auth {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.switch-auth a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

/* --- Create Event Wizard --- */
.create-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 70px);
}

@media(max-width: 800px) {
    .create-wrap {
        grid-template-columns: 1fr;
    }

    .create-sidebar {
        display: none;
    }
}

.create-sidebar {
    background: var(--white);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding: 2rem 1.25rem;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.step-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.step-nav li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-bottom: 3px;
    transition: all 0.2s;
    color: var(--gray);
    font-size: 0.88rem;
    font-weight: 600;
}

.step-nav li.active {
    background: rgba(255, 107, 107, 0.08);
    color: var(--primary);
}

.step-nav li.done {
    color: #059669;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: #f1f5f9;
    flex-shrink: 0;
    color: var(--gray);
}

.step-nav li.active .step-num {
    background: var(--primary);
    color: white;
}

.step-nav li.done .step-num {
    background: #d1fae5;
    color: #059669;
}

.create-main {
    padding: 2.5rem 2.5rem 4rem;
    max-width: 760px;
}

@media(max-width: 600px) {
    .create-main {
        padding: 1.5rem;
    }
}

.section-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
}

.progress-track {
    display: flex;
    gap: 5px;
    margin-bottom: 2rem;
}

.progress-dot {
    height: 4px;
    flex: 1;
    border-radius: 2px;
    background: #e5e7eb;
    transition: background 0.3s;
}

.progress-dot.done {
    background: var(--primary);
}

.step-section {
    display: none;
}

.step-section.active {
    display: block;
}

.upload-zone {
    border: 2px dashed #e5e7eb;
    border-radius: var(--radius-sm);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 107, 0.03);
}

.upload-zone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.add-group-box {
    background: var(--light);
    border: 1.5px dashed #e5e7eb;
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}

.btn-next {
    background: var(--dark);
    color: white;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s;
}

.btn-next:hover {
    background: #1a1f2e;
    transform: translateY(-1px);
}

.btn-prev {
    background: transparent;
    color: var(--gray);
    padding: 0.85rem 1.25rem;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-prev:hover {
    border-color: var(--dark);
    color: var(--dark);
}

.btn-publish {
    background: var(--primary);
    color: white;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    flex: 2;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    transition: all 0.2s;
}

.btn-publish:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-draft {
    background: transparent;
    color: #92400e;
    padding: 0.9rem 1.5rem;
    border: 1.5px solid #fcd34d;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    background: #fef3c7;
    transition: all 0.2s;
}

.btn-draft:hover {
    background: #fde68a;
}

/* --- Profile Edit --- */
.profile-edit-wrap {
    max-width: 680px;
    margin: 3rem auto;
    padding: 0 1.25rem 4rem;
}

.completion-wrap {
    margin-bottom: 2rem;
}

.completion-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.completion-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width 0.4s;
}

.gender-picker {
    display: flex;
    gap: 0.75rem;
}

.gender-option {
    flex: 1;
}

.gender-option input[type=radio] {
    display: none;
}

.gender-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.9rem 0.5rem;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: none;
    letter-spacing: 0;
}

.gender-option input[type=radio]:checked+label {
    border-color: var(--primary);
    background: rgba(255, 107, 107, 0.07);
    color: var(--primary);
}

.age-display {
    display: none;
    margin-top: 6px;
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: #0f766e;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-save {
    background: var(--primary);
    color: white;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-save:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-cancel {
    background: transparent;
    color: var(--gray);
    padding: 0.85rem 1.5rem;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-cancel:hover {
    border-color: var(--dark);
    color: var(--dark);
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none !important;
    }

    .nav-mobile-row {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    /* Hero Mobile Tweaks */
    .hero {
        padding: 4rem 0 3rem;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .hero h1 {
        font-size: 2.25rem;
        padding: 0 10px;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .search-bar {
        display: flex;
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 8px;
        width: 100%;
        gap: 8px;
    }

    .search-bar input {
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 1rem;
        min-width: 0;
    }

    .search-bar button {
        width: auto !important;
        min-width: 180px;
        margin: 0 auto;
        background: var(--primary) !important;
        padding: 12px 24px;
        border-radius: 50px;
    }

    /* CTA Box Responsive */
    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem !important;
    }

    .cta-banner .btn {
        width: 100%;
    }
}

/* --- External Corner Ribbon (Æseløre) --- */
.external-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 165px;
    height: 165px;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}
.external-corner-text {
    position: absolute;
    top: 45px;
    right: -70px;
    background: #3b82f6;
    color: white;
    width: 260px;
    text-align: center;
    transform: rotate(45deg);
    padding: 10px 0;
    font-size: 0.65rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    line-height: 1.2;
}

/* --- Address Autocomplete --- */
.form-group { position: relative; } /* Ensure dropdown stays within group */

.address-autocomplete {
    position: absolute;
    top: calc(100% - 5px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    border-top: none;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    animation: slideUp 0.2s ease-out;
}

.address-autocomplete.active {
    display: block;
}

.address-autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s;
    text-align: left;
}

.address-autocomplete-item:last-child {
    border-bottom: none;
}

.address-autocomplete-item:hover,
.address-autocomplete-item.selected {
    background: #f8fafc;
    padding-left: 20px;
}

.address-autocomplete-item .main-text {
    font-weight: 700;
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
}

.address-autocomplete-item .sub-text {
    font-size: 0.75rem;
    color: var(--gray);
    display: block;
    margin-top: 2px;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Invitation System (Shared) --- */
.invite-search-container { position: relative; }

.email-tags-container {
    display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem 0.8rem;
    border: 1.5px solid #e5e7eb; border-radius: var(--radius-sm);
    background: var(--white); min-height: 48px; align-items: center;
    cursor: text; transition: border-color 0.2s, box-shadow 0.2s;
}

.email-tags-container:focus-within {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,107,0.12);
}

.email-tags-container.invalid {
    border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.invite-error-msg {
    color: #ef4444; font-size: 0.8rem; margin-top: 0.5rem; display: none; text-align: left; font-weight: 600;
}

.email-tag {
    display: inline-flex; align-items: center; background: #f1f5f9;
    color: var(--dark); padding: 0.35rem 0.75rem; border-radius: 20px;
    font-size: 0.85rem; font-weight: 500; border: 1px solid #e2e8f0;
}

.email-tag.invalid { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }

.email-tag-close {
    margin-left: 6px; color: #94a3b8; cursor: pointer;
    font-weight: bold; font-size: 1.1rem; line-height: 1; transition: color 0.1s;
}

.email-tag-close:hover { color: #ef4444; }

.email-tag-input {
    flex: 1; min-width: 150px; border: none !important;
    padding: 0.25rem 0 !important; font-size: 0.95rem; background: transparent;
    outline: none !important; cursor: text;
}

.email-tag-input:focus {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.search-results {
    position: absolute; top: calc(100% + 5px); left: 0; right: 0;
    background: white; border: 1px solid #e2e8f0; border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 1000;
    max-height: 300px; overflow-y: auto; display: none;
}

.search-results.active { display: block; animation: slideDown 0.2s ease-out; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.search-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    cursor: pointer; border-bottom: 1px solid #f8fafc; transition: background 0.2s;
}

.search-item:hover { background: #f8fafc; }
.search-item img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.search-item .name { font-weight: 600; color: var(--dark); font-size: 0.9rem; }
.search-item .email { font-size: 0.8rem; color: var(--gray); }
/* --- Toggle Card / Modern Switches --- */
.toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 2px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.toggle-card:hover {
    border-color: var(--primary);
    background: #f8fafc;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.toggle-card .tc-content {
    flex-grow: 1;
    margin-right: 1.5rem;
    pointer-events: none;
}

.toggle-card .tc-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 2px;
    display: block;
}

.toggle-card .tc-desc {
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.4;
    display: block;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e2e8f0;
    transition: .3s;
    border-radius: 28px;
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .25s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider-toggle {
    background-color: var(--primary);
}

input:checked + .slider-toggle:before {
    transform: translateX(24px);
}

/* --- Featured Spotlight Carousel (Global) --- */
.featured-spotlight {
    margin-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}
.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}
.featured-header h3 {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.featured-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 15px;
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
}
.featured-scroll::-webkit-scrollbar { display: none; }

.featured-card {
    flex: 0 0 450px;
    height: 250px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.33s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
}
.featured-card:hover { transform: translateY(-5px) scale(1.01); }
.featured-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.featured-card:hover .featured-card-img { transform: scale(1.05); }
.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
}
.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255,255,255,0.3);
}
.featured-card h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: white;
}
.featured-card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}
.featured-card-meta i { margin-right: 5px; color: #38bdf8; }

@media (max-width: 600px) {
    .featured-card { flex: 0 0 calc(100vw - 40px); height: 220px; }
    .featured-card h4 { font-size: 1.2rem; }
}
