
/* ========================================
   Day&Nite - Common Styles
   ======================================== */

/* CSS Variables for Consistent Colors */
:root {
    /* Primary Colors */
    --color-primary: #000000;
    --color-secondary: #18181c;
    --color-tertiary: #1a1a1e;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #b0b0b8;
    --text-subtle: #999999;
    
    /* Accent Colors */
    --accent-gold: #DAA520;
    --accent-purple: #B278FF;
    --accent-purple-dark: #6A1B9A;
    --accent-green: #66ff00;
    --accent-green-dark: #1e4023;
    --accent-red: #ff4d4f;
    
    /* Border Colors */
    --border-primary: #23232a;
    --border-secondary: #2a2a2e;
    --border-accent-gold: #DAA520;
    --border-accent-purple: #B278FF;
    --border-subtle: rgba(255, 255, 255, 0.1);
    
    /* Background Colors */
    --bg-primary: #18181c;
    --bg-secondary: #1a1a1e;
    --bg-tertiary: #2d2346;
    --bg-transparent: rgba(255, 255, 255, 0.03);
    --bg-transparent-hover: rgba(255, 255, 255, 0.05);
    
    /* Shadow Colors */
    --shadow-primary: rgba(0, 0, 0, 0.12);
    --shadow-secondary: rgba(0, 0, 0, 0.2);
    --shadow-purple: rgba(178, 120, 255, 0.3);
    --shadow-green: rgba(102, 255, 0, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--text-primary);
    line-height: var(--leading-relaxed);
    overflow-x: hidden;
    background-color: var(--color-primary);
    font-size: var(--text-4xl);
    font-family: var(--font-family-primary);
}

/* Hide content until translations are loaded to prevent flash */
body.translations-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.translations-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 64px;
    background-color: var(--color-primary);
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.logo-icon-img {
    width: 26px;
    height: 26px;
    display: block;
}

.login-logo-img {
    height: 26px;
    width: auto;
    object-fit: contain;
}

.login-logo-wineglass {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.login-logo-Vibe {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.login-logo-Event {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-icons {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.slogan {
    color: var(--accent-gold);
    font-style: italic;
    font-size: var(--text-2xl);
    font-weight: var(--font-normal);
    margin-top: 0.25rem;
    margin-left: 0.75rem;
}

.nav {
    display: flex;
    align-items: center;
    margin-top: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.35rem 0;
    border-radius: 0;
    position: relative;
    transition: color 0.2s ease;
    background: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: #ffffff;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover {
    background: none;
    color: #ffffff;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    background: none;
    color: #ffffff;
}

.nav-link.active::after {
    transform: scaleX(1);
    background: #B278FF;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0;
}

.language-switcher {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: inherit;
    min-width: unset;
    text-align: center;
}

.language-switcher:hover {
    background: none;
    border: none;
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

.language-switcher:active {
    transform: none;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-picture {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: visible;
    border: none;
    cursor: pointer;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
}

.profile-picture.logged-in {
    border: 1.5px solid rgba(178, 120, 255, 0.5);
}

.profile-picture:hover {
    border-color: rgba(178, 120, 255, 0.8);
    transform: none;
}

.profile-picture img {
    width: 26px;
    height: 26px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.profile-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.profile-icon:hover {
    opacity: 1;
}

/* Main Content */
.main-content {
    display: flex;
    min-height: calc(100vh - 100px);
    padding: 2rem;
    align-items: flex-start;
    justify-content: center;
}

/* Footer Styles */
.footer {
    background: var(--color-primary);
    color: var(--text-primary);
    padding: 2rem 2rem 0;
    margin-top: 3rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 1.5rem;
}

.footer-section h3 {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}

.footer-bat-icon {
    width: 22px;
    height: 22px;
    opacity: 0.6;
    display: block;
    flex-shrink: 0;
}

.footer-logo {
    height: 22px;
    width: auto;
    opacity: 0.75;
    display: block;
}

.footer-section h4 {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: var(--leading-normal);
    margin-bottom: 1rem;
    font-size: var(--text-sm);
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: var(--text-sm);
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.85);
    transform: none;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.25s ease;
}

.footer-links a:hover::before {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin: 0;
    align-items: center;
    margin-top: 0.1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: none;
    border: none;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.2rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    background: none;
    color: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: none;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    border-top: 1px solid #333;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-subtle);
    margin: 0;
    font-size: var(--text-sm);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-subtle);
    text-decoration: none;
    font-size: var(--text-xs);
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* Common Button Styles */
.btn-primary {
    background: linear-gradient(to bottom, #B278FF, #6A1B9A);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: var(--font-medium);
    font-size: var(--text-base);
    font-family: var(--font-family-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #B278FF, #6A1B9A);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(178, 120, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(178, 120, 255, 0.2);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid #3a2d5c;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: var(--font-medium);
    font-size: var(--text-base);
    font-family: var(--font-family-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #3a2d5c;
    border-color: #4a3d6c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Common Card Styles */
.card {
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1.5px solid var(--border-primary);
    box-shadow: 0 2px 12px var(--shadow-primary);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.card-primary {
    background: var(--bg-primary);
    border: 1.5px solid var(--border-primary);
}

.card-secondary {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-secondary);
}

.card-transparent {
    background: var(--bg-transparent);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-transparent:hover {
    background: var(--bg-transparent-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Common Text Color Classes */
.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-subtle {
    color: var(--text-subtle);
}

.text-accent-gold {
    color: var(--accent-gold);
}

.text-accent-purple {
    color: var(--accent-purple);
}

.text-accent-green {
    color: var(--accent-green);
}

.text-accent-red {
    color: var(--accent-red);
}

/* Common Background Color Classes */
.bg-primary {
    background-color: var(--bg-primary);
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.bg-tertiary {
    background-color: var(--bg-tertiary);
}

.bg-transparent {
    background-color: var(--bg-transparent);
}

/* Common Border Color Classes */
.border-primary {
    border-color: var(--border-primary);
}

.border-secondary {
    border-color: var(--border-secondary);
}

.border-accent-gold {
    border-color: var(--border-accent-gold);
}

.border-accent-purple {
    border-color: var(--border-accent-purple);
}

/* Enhanced Border Demo Colors for Style Guide */
.border-demo.border-primary {
    border-color: #444444 !important;
}

.border-demo.border-secondary {
    border-color: #666666 !important;
}

.border-demo.border-accent-gold {
    border-color: #DAA520 !important;
}

.border-demo.border-accent-purple {
    border-color: #B278FF !important;
}

/* Common Typography System */
:root {
    /* Typography Scale */
    --font-family-primary: 'Avenir', sans-serif;
    --font-family-mono: monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.85rem;    /* 13.6px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.1rem;     /* 17.6px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.8rem;    /* 28.8px */
    --text-4xl: 2.5rem;    /* 40px */
    
    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Line Heights */
    --leading-tight: 1.2;
    --leading-normal: 1.5;
    --leading-relaxed: 1.6;
}

/* Base Typography */
h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    font-family: var(--font-family-primary);
    line-height: var(--leading-tight);
}

h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    font-family: var(--font-family-primary);
    line-height: var(--leading-tight);
}

h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    font-family: var(--font-family-primary);
    line-height: var(--leading-tight);
}

h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    font-family: var(--font-family-primary);
    line-height: var(--leading-normal);
}

p {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    font-family: var(--font-family-primary);
}

li {
    font-size: var(--text-lg);
    line-height: var(--leading-normal);
    font-family: var(--font-family-primary);
}

/* Typography Utility Classes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.leading-tight { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }

.font-mono { font-family: var(--font-family-mono); }

a {
    color: #B278FF;
    text-decoration: none;
    transition: color 0.2s;
    font-family: 'Avenir', sans-serif;
}

a:hover {
    color: #6A1B9A;
}

/* Common Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-list {
        gap: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .footer {
        padding: 1.5rem 1rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-section h3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .social-links {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header-left {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .nav-list {
        justify-content: center;
    }
    
    .footer {
        padding: 1.2rem 1rem 0;
    }
    
    .footer-content {
        gap: 1.2rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .footer-bottom-links {
        gap: 0.8rem;
    }
}

/* ========================================
   Common Last Updated Styles
   ======================================== */

.last-updated {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    font-family: var(--font-family-primary);
}

.last-updated p {
    color: var(--text-muted);
    font-size: var(--text-base);
    font-family: var(--font-family-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ========================================
   Additional Styles (formerly style.css)
   ======================================== */

/* Additional Body Styles - Only for specific pages */
body.role-selection-page,
body.style-guide-page {
	display: flex;
	color: white;
	background-color: #111114;
	font-size: 25px;
	font-family: 'Avenir', sans-serif;
	min-height: 100vh;
	margin: 0;
}

/* Login page has its own specific body styles in inline CSS */

/* Content styles - only for specific pages */
body.role-selection-page .content,
body.style-guide-page .content {
	display: flex;
	flex: 1 1 0;
	min-height: 100vh;
	width: 100vw;
	margin-top: 80px; /* Platz für die Header-Bar schaffen */
}

/* Sidebar styles - only for specific pages */
body.role-selection-page .sidebar,
body.style-guide-page .sidebar {
	display: flex;
	flex-direction: column;
	background-color: #18181c;
	padding: 0 32px 0 15px;
	height: 100vh;
	min-width: 220px;
	box-shadow: 1px 0 0 0 #222225;
}

/* Side menu styles - only for specific pages */
body.role-selection-page .side-menu,
body.style-guide-page .side-menu {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-left: 0;
}

body.role-selection-page .side-menu a,
body.style-guide-page .side-menu a {
	color: #fff;
	opacity: 0.7;
	padding: 12px 0 12px 0;
	border-radius: 8px;
	font-size: 1.1rem;
	transition: background 0.2s, opacity 0.2s;
	text-decoration: none;
}

body.role-selection-page .side-menu a:hover, body.role-selection-page .side-menu a.active,
body.style-guide-page .side-menu a:hover, body.style-guide-page .side-menu a.active {
	background: #23232a;
	opacity: 1;
}

body.role-selection-page .logo,
body.style-guide-page .logo {
	margin: 32px 0 80px 0;
	font-size: var(--text-2xl);
	letter-spacing: 2px;
	font-weight: var(--font-bold);
}

/* Override main-content for specific pages */
body.role-selection-page .main-content,
body.style-guide-page .main-content {
	flex: 1 1 0;
	padding: 48px 32px 0 32px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

body.role-selection-page .welcome,
body.style-guide-page .welcome {
	font-size: var(--text-4xl);
	font-weight: var(--font-bold);
	margin-bottom: 8px;
}

body.role-selection-page .upcoming-events,
body.style-guide-page .upcoming-events {
	font-size: var(--text-2xl);
	font-weight: var(--font-medium);
	margin-bottom: 32px;
}

body.role-selection-page .event-cards,
body.style-guide-page .event-cards {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}

body.role-selection-page .event1, body.role-selection-page .event2, body.role-selection-page .event3,
body.style-guide-page .event1, body.style-guide-page .event2, body.style-guide-page .event3 {
	min-width: 240px;
	max-width: 260px;
	flex: 1 1 240px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

body.role-selection-page .event1:hover, body.role-selection-page .event2:hover, body.role-selection-page .event3:hover,
body.style-guide-page .event1:hover, body.style-guide-page .event2:hover, body.style-guide-page .event3:hover {
	box-shadow: 0 6px 32px rgba(106,27,154,0.2);
	transform: translateY(-3px);
}

body.role-selection-page img,
body.style-guide-page img {
	height: 150px;
	width: 100%;
	object-fit: cover;
	border-radius: 16px 16px 0 0;
}

body.role-selection-page .event-card-info,
body.style-guide-page .event-card-info {
	font-size: var(--text-lg);
	display: flex;
	flex-direction: column;
	align-items: start;
	padding: 20px;
	width: 100%;
}

body.role-selection-page .event-card-header,
body.style-guide-page .event-card-header {
	font-size: var(--text-xl);
	font-weight: var(--font-bold);
	margin-bottom: 4px;
}

body.role-selection-page .event-card-date, body.role-selection-page .event-card-club,
body.style-guide-page .event-card-date, body.style-guide-page .event-card-club {
	color: var(--text-muted);
	font-size: var(--text-base);
	margin-bottom: 2px;
}

body.role-selection-page .live-button, body.role-selection-page .live-button1,
body.style-guide-page .live-button, body.style-guide-page .live-button1 {
	margin-top: 12px;
	padding: 4px 18px;
	border-radius: 12px;
	border: none;
	font-size: var(--text-base);
	font-weight: var(--font-medium);
	opacity: 1;
	transition: all 0.3s ease;
}

body.role-selection-page .live-button,
body.style-guide-page .live-button {
	background: #1e4023;
	color: #66ff00;
	border: 1px solid #2a5a2f;
	transition: all 0.3s ease;
}

body.role-selection-page .live-button:hover,
body.style-guide-page .live-button:hover {
	background: #2a5a2f;
	border-color: #3a6a3f;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(102, 255, 0, 0.2);
}

body.role-selection-page .live-button1,
body.style-guide-page .live-button1 {
	background: linear-gradient(90deg, #B278FF 0%, #6A1B9A 100%);
	color: #fff;
	border-radius: 12px;
	transition: all 0.3s ease;
}

body.role-selection-page .live-button1:hover,
body.style-guide-page .live-button1:hover {
	background: linear-gradient(90deg, #9A68E6 0%, #5A1A8A 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(178, 120, 255, 0.3);
}

/* Standard Live Button (grau) - für nicht-live Events */
body.role-selection-page .live-button:not(.live-button):not(.live-button1),
body.style-guide-page .live-button:not(.live-button):not(.live-button1) {
	background: #23232a;
	color: #fff;
	border: 1px solid #3a3a3a;
}

body.role-selection-page .live-button:not(.live-button):not(.live-button1):hover,
body.style-guide-page .live-button:not(.live-button):not(.live-button1):hover {
	background: #3a3a3a;
	border-color: #4a4a4a;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.role-selection-page .create-edit-buttons,
body.style-guide-page .create-edit-buttons {
	display: flex;
	gap: 24px;
	margin-top: 24px;
	width: 100%;
}

body.role-selection-page .create-event-button, body.role-selection-page .edit-profile-button,
body.style-guide-page .create-event-button, body.style-guide-page .edit-profile-button {
	flex: 1 1 0;
	font-size: 1.1rem;
	padding: 18px 0;
	border-radius: 12px;
	border: none;
	font-weight: 600;
	transition: all 0.3s ease;
	cursor: pointer;
}

body.role-selection-page .create-event-button,
body.style-guide-page .create-event-button {
	background: linear-gradient(90deg, #B278FF 0%, #6A1B9A 100%);
	color: #fff;
	transition: all 0.3s ease;
}

body.role-selection-page .create-event-button:hover,
body.style-guide-page .create-event-button:hover {
	background: linear-gradient(90deg, #9A68E6 0%, #5A1A8A 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(178, 120, 255, 0.3);
}

body.role-selection-page .edit-profile-button,
body.style-guide-page .edit-profile-button {
	background: #2d2346;
	color: #fff;
	border: 1px solid #3a2d5c;
}

body.role-selection-page .edit-profile-button:hover,
body.style-guide-page .edit-profile-button:hover {
	background: #3a2d5c;
	border-color: #4a3d6c;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.role-selection-page .right-sidebar,
body.style-guide-page .right-sidebar {
	min-width: 320px;
	background: transparent;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	padding: 48px 32px 0 0;
}

body.role-selection-page .analytics,
body.style-guide-page .analytics {
	padding: 32px 32px 24px 32px;
	margin-bottom: 24px;
	width: 100%;
	max-width: 320px;
}

body.role-selection-page .analytics-header,
body.style-guide-page .analytics-header {
	font-size: var(--text-2xl);
	font-weight: var(--font-bold);
	margin-bottom: 18px;
}

body.role-selection-page .analytics-items,
body.style-guide-page .analytics-items {
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
}

body.role-selection-page .analytics-views, body.role-selection-page .analytics-interactions, body.role-selection-page .analytics-ticket-sales,
body.style-guide-page .analytics-views, body.style-guide-page .analytics-interactions, body.style-guide-page .analytics-ticket-sales {
	text-align: center;
}

body.role-selection-page .analytics-views p:first-child, body.role-selection-page .analytics-interactions p:first-child, body.role-selection-page .analytics-ticket-sales p:first-child,
body.style-guide-page .analytics-views p:first-child, body.style-guide-page .analytics-interactions p:first-child, body.style-guide-page .analytics-ticket-sales p:first-child {
	font-size: var(--text-2xl);
	font-weight: var(--font-bold);
	margin-bottom: 2px;
}

body.role-selection-page .analytics-views p:last-child, body.role-selection-page .analytics-interactions p:last-child, body.role-selection-page .analytics-ticket-sales p:last-child,
body.style-guide-page .analytics-views p:last-child, body.style-guide-page .analytics-interactions p:last-child, body.style-guide-page .analytics-ticket-sales p:last-child {
	font-size: var(--text-base);
	color: var(--text-muted);
	margin-bottom: 0;
}

body.role-selection-page .header-bar,
body.style-guide-page .header-bar {
	position: fixed;
	top: 0;
	right: 0;
	width: 100vw;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 24px 40px 0 0;
	z-index: 100;
	gap: 16px;
	background: transparent;
}

/* Style Guide Layout */
.style-guide-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.style-guide-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* Color Palette Styles */
.color-palette {
    margin-bottom: 3rem;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.color-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
}

.color-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.gradient-purple {
    background: linear-gradient(to bottom, #B278FF, #6A1B9A);
}

.gradient-gold {
    background: var(--accent-gold);
}

.gradient-green {
    background: #4CAF50;
}

.gradient-black {
    background: var(--color-primary);
}

.gradient-red {
    background: var(--accent-red);
}

.color-info {
    flex: 1;
}

.color-label {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.color-hex {
    font-family: var(--font-family-mono);
    color: var(--accent-purple);
    font-size: var(--text-sm);
}

.error-messages-styles {
    margin-bottom: 3rem;
}

.error-messages-showcase {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.error-messages-showcase .card {
    padding: 1.5rem;
}

/* Typography Styles */
.typography {
    margin-bottom: 3rem;
}

.typography-showcase {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    margin-top: 1.5rem;
}

.utility-section {
    margin-top: 2rem;
}

.utility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.utility-group {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-primary);
}

.utility-examples {
    margin-top: 1rem;
}

.utility-examples p {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 6px;
    border-left: 3px solid var(--accent-purple);
}

/* Button Styles */
.button-styles {
    margin-bottom: 3rem;
}

.button-showcase {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Checkbox Styles */
.checkbox-styles {
    margin-bottom: 3rem;
}

.checkbox-showcase {
    margin-top: 1.5rem;
}

/* Popup Styles */
.popup-styles {
    margin-bottom: 3rem;
}

.popup-showcase {
    margin-top: 1.5rem;
    padding: 2rem;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    display: flex;
    justify-content: center;
}

.dn-popup {
    max-width: 520px;
    width: 100%;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--bg-primary);
    border: 2px solid var(--border-secondary);
    box-shadow: 0 6px 24px var(--shadow-primary);
}

.dn-popup-header {
    margin-bottom: 0.5rem;
}

.dn-popup-body {
    margin-bottom: 1.5rem;
}

.dn-popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

/* Dropdown Styles */
.dropdown-styles {
    margin-bottom: 3rem;
}

.dropdown-showcase {
    margin-top: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 2rem;
}

.suggestion-box-styles {
    margin-bottom: 3rem;
}

.suggestion-box-showcase {
    margin-top: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
}

.dn-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: var(--text-base);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    color-scheme: dark;
    background-image: linear-gradient(45deg, transparent 50%, var(--accent-gold) 50%),
      linear-gradient(135deg, var(--accent-gold) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.dn-select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.15);
}

.dn-select option {
    background: #1a1a1e;
    color: #ffffff;
    font-size: var(--text-base);
}

/* Custom Dropdown */
.dn-dropdown {
    position: relative;
    width: 100%;
}

.dn-dropdown-toggle {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: var(--text-base);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dn-dropdown-toggle:focus-visible {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.15);
}

.dn-dropdown-value {
    color: var(--text-primary);
}

.dn-dropdown-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    transform: rotate(45deg);
    margin-top: -2px;
}

.dn-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    background: #1a1a1e;
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 0.4rem;
    list-style: none;
    display: none;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.dn-dropdown.open .dn-dropdown-menu {
    display: block;
}

.dn-dropdown-option {
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dn-dropdown-option:hover,
.dn-dropdown-option[aria-selected="true"] {
    background: rgba(178, 120, 255, 0.2);
    color: var(--text-primary);
}

/* Suggestions and chips */
.dn-suggestions {
    margin-top: 0.6rem;
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-secondary);
    border-radius: 14px;
    padding: 0.6rem;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.dn-suggestions.open {
    display: flex;
}

.dn-suggestion-item {
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-size: var(--text-base);
    font-family: var(--font-family-primary);
}

.dn-suggestion-item:hover {
    background: rgba(178, 120, 255, 0.18);
    color: var(--text-primary);
    border-color: rgba(178, 120, 255, 0.35);
}

.dn-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.dn-chip {
    background: rgba(178, 120, 255, 0.2);
    color: var(--text-primary);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--text-sm);
}

.dn-chip button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--text-primary);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    line-height: 1;
}

.dn-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 9999;
}

/* Card Styles */
.card-styles {
    margin-bottom: 3rem;
}

.card-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card-showcase .card {
    padding: 1.5rem;
}

/* Color Utilities */
.color-utilities {
    margin-bottom: 3rem;
}

.color-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.color-examples p {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    margin-bottom: 0;
}

.background-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.background-demo {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    font-weight: var(--font-medium);
}

.border-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.border-demo {
    padding: 1rem;
    border: 3px solid;
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: var(--font-medium);
}

/* Checkbox Styles */
.dn-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.dn-checkbox-option {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: var(--font-medium);
}

.dn-checkbox-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dn-checkbox-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dn-checkbox-box::after {
    content: '';
    width: 6px;
    height: 10px;
    border-right: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dn-checkbox-input:checked + .dn-checkbox-box {
    border-color: var(--accent-gold);
    background: rgba(218, 165, 32, 0.12);
}

.dn-checkbox-input:checked + .dn-checkbox-box::after {
    opacity: 1;
}

.dn-checkbox-input:focus-visible + .dn-checkbox-box {
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.25);
}

.dn-checkbox-text {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .style-guide-wrapper {
        padding: 1rem;
    }
    
    .color-grid,
    .utility-grid,
    .card-showcase {
        grid-template-columns: 1fr;
    }
    
    .button-showcase {
        flex-direction: column;
    }
    
    .color-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   HAMBURGER MENU
   ============================================================ */

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mobile-nav.is-open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.mobile-nav-link {
    display: block;
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    letter-spacing: -0.02em;
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--accent-purple);
    background: rgba(178, 120, 255, 0.08);
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .nav {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    /* Prevent body scroll when menu open */
    body.menu-open {
        overflow: hidden;
    }
}
