/* assets/css/style.css */

/* --- 1. World-Class Variables & Theming --- */
:root {
    /* Core Brand Palette - HSL for dynamic theming */
    --primary-hue: 250; /* Indigo/Violet Default */
    --secondary-hue: 330; /* Pink/Rose Default */
    
    --primary-color: hsl(var(--primary-hue), 85%, 60%);
    --primary-dark: hsl(var(--primary-hue), 85%, 50%);
    --primary-light: hsl(var(--primary-hue), 90%, 96%);
    
    --secondary-color: hsl(var(--secondary-hue), 85%, 60%);
    --accent-color: #06b6d4; /* Cyan */
    --success-color: #10b981;
    --danger-color: #ef4444;
    
    /* Modern Gradients */
    --gradient-brand: linear-gradient(135deg, hsl(var(--primary-hue), 90%, 60%) 0%, hsl(var(--secondary-hue), 90%, 60%) 100%);
    --gradient-glow: radial-gradient(circle at top left, rgba(79, 70, 229, 0.4), transparent 40%), radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.4), transparent 40%);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    
    /* Surfaces & Text */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-light-alt: #f1f5f9;
    
    --text-main: #0f172a;
    --text-body: #475569;
    --text-muted: #94a3b8;
    
    /* Depth & Borders */
    --border-color: rgba(148, 163, 184, 0.2);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    
    /* Premium Shadows */
    --shadow-sm: 0 2px 4px rgba(148, 163, 184, 0.1);
    --shadow-md: 0 8px 16px -4px rgba(148, 163, 184, 0.1);
    --shadow-lg: 0 20px 40px -12px rgba(148, 163, 184, 0.2);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);
    
    /* Spacing & Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-pill: 9999px;
    
    --section-gap: 6rem;
}

/* Scrollbar Polish */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

a { text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* --- 2. Ultra-Modern Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--glass-border);
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: var(--text-main) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    color: transparent;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.3));
}

.nav-link {
    font-weight: 600;
    color: var(--text-body);
    padding: 0.6rem 1.2rem !important;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* User Dropdown */
.nav-item.dropdown .nav-link.dropdown-toggle {
    border: 1px solid var(--border-color);
    padding-right: 1.5rem !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin-top: 10px;
    animation: fadeUp 0.2s ease-out;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--bg-light-alt);
    color: var(--primary-color);
}

/* --- 3. Immersive Hero Section --- */
.hero-section {
    position: relative;
    padding: 8rem 0 10rem;
    background: #ffffff;
    overflow: hidden;
}

/* Mesh Gradient Animation */
.hero-section::before, .hero-section::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: blob-bounce 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.hero-section::before {
    top: -20%; left: -10%;
    background: var(--primary-light);
    animation-delay: -5s;
}

.hero-section::after {
    bottom: -20%; right: -10%;
    background: hsl(var(--secondary-hue), 90%, 90%);
}

@keyframes blob-bounce {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    animation: fadeDown 0.8s ease-out;
}

.hero-badge span {
    width: 8px; height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-body);
    max-width: 650px;
    margin: 0 auto 3rem;
    animation: fadeUp 0.8s ease-out 0.4s backwards;
}

/* Glassmorphism Search Bar */
.search-wrapper {
    background: rgba(255, 255, 255, 0.7);
    padding: 8px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    animation: scaleUp 0.6s ease-out 0.6s backwards;
}

.search-wrapper input {
    border: none; background: transparent; padding: 1rem 1.5rem; font-size: 1rem; outline: none; flex: 1;
}

.btn-search-hero {
    background: var(--gradient-brand);
    color: white; border: none; border-radius: var(--radius-pill); padding: 0 2.5rem; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: transform 0.2s;
}
.btn-search-hero:hover { transform: scale(1.05); }

/* --- 4. Premium Event Card (The "World Class" Component) --- */
.event-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.event-img-wrapper {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.event-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease;
}

.event-card:hover .event-img-wrapper img { transform: scale(1.1) rotate(1deg); }

.event-overlay-gradient {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    z-index: 1;
}

.event-category-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(4px);
    padding: 4px 12px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    z-index: 2; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-date-box {
    position: absolute; top: 12px; right: 12px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(4px);
    padding: 6px 10px; border-radius: 8px;
    text-align: center; line-height: 1; z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-date-box .month { display: block; font-size: 0.7rem; font-weight: 800; color: var(--secondary-color); text-transform: uppercase; }
.event-date-box .day { display: block; font-size: 1.2rem; font-weight: 800; color: var(--text-main); }

.event-content { padding: 1.5rem; position: relative; background: #fff; flex: 1; }

.event-price-float {
    position: absolute; top: -20px; right: 20px;
    background: var(--primary-color); color: white;
    padding: 6px 16px; border-radius: 50px;
    font-weight: 700; font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    border: 3px solid #fff; z-index: 5;
}

.event-title {
    font-size: 1.15rem; font-weight: 800; line-height: 1.4; margin-bottom: 0.5rem; transition: color 0.2s;
}
.event-card:hover .event-title a { color: var(--primary-color); }

.event-action { transition: all 0.3s; }
.group-hover-btn { transition: all 0.3s; border: 1px solid #f3f4f6; }
.event-card:hover .group-hover-btn { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.transform-icon { transition: transform 0.3s; }
.event-card:hover .transform-icon { transform: translateX(5px); color: white !important; }

/* --- 5. Additional Sections --- */
.section-padding { padding: var(--section-gap) 0; }
.bg-light-alt { background-color: var(--bg-light-alt); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-tag { color: var(--primary-color); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; display: block; margin-bottom: 1rem; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }

/* "How It Works" */
.step-card { text-align: center; padding: 2rem; position: relative; transition: transform 0.3s; }
.step-card:hover { transform: translateY(-10px); }
.step-icon { width: 80px; height: 80px; margin: 0 auto 1.5rem; background: white; border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--primary-color); box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.step-number { position: absolute; top: -10px; right: -10px; width: 30px; height: 30px; background: var(--text-main); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; border: 3px solid white; }
.steps-connector { position: absolute; top: 60px; left: 15%; right: 15%; height: 2px; background-image: linear-gradient(to right, var(--border-color) 50%, transparent 50%); background-size: 20px 100%; z-index: 0; display: none; }
@media (min-width: 992px) { .steps-connector { display: block; } }

/* Stats */
.stats-section { background: var(--text-main); color: white; position: relative; overflow: hidden; }
.stat-item { text-align: center; padding: 2rem; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-number { font-size: 3.5rem; font-weight: 900; background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.5rem; display: block; }
.stat-label { font-size: 1.1rem; color: #94a3b8; font-weight: 500; }

/* Testimonials */
.testimonial-card { background: white; padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); position: relative; height: 100%; transition: transform 0.3s; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testimonial-quote { color: var(--primary-color); font-size: 2rem; position: absolute; top: 1.5rem; right: 1.5rem; opacity: 0.2; }
.testimonial-text { font-size: 1.05rem; color: var(--text-body); margin-bottom: 1.5rem; font-style: italic; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--bg-light-alt); object-fit: cover; }
.author-info h6 { margin: 0; font-size: 0.95rem; font-weight: 700; }
.author-info small { color: var(--text-muted); font-size: 0.85rem; }

/* Newsletter CTA */
.cta-section { background: var(--gradient-brand); position: relative; overflow: hidden; padding: 6rem 0; text-align: center; color: white; }
.cta-pattern { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(rgba(255,255,255,0.2) 1px, transparent 1px); background-size: 30px 30px; opacity: 0.3; }
.cta-content { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
.cta-input-group { background: white; padding: 8px; border-radius: var(--radius-pill); display: flex; margin-top: 2rem; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.cta-input-group input { border: none; flex: 1; padding: 0 1.5rem; outline: none; }
.cta-input-group button { background: var(--text-main); color: white; border: none; padding: 1rem 2rem; border-radius: var(--radius-pill); font-weight: 700; cursor: pointer; transition: transform 0.2s; }
.cta-input-group button:hover { transform: scale(1.05); }

/* --- 6. Forms, Buttons, & Utilities --- */
.form-control, .form-select { border: 1px solid var(--border-color); padding: 0.75rem 1rem; font-size: 0.95rem; border-radius: var(--radius-md); background-color: #fff; transition: all 0.2s; }
.form-control:focus, .form-select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); }
.form-label { font-weight: 600; font-size: 0.9rem; color: var(--text-main); margin-bottom: 0.4rem; }
.btn-primary { background: var(--gradient-brand); border: none; box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4); padding: 0.8rem 1.8rem; font-weight: 600; transition: all 0.3s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.5); }
.btn-lg { padding: 0.8rem 2rem; font-size: 1.1rem; border-radius: var(--radius-md); }
.text-gradient { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* --- 7. Footer (Dark Theme - Fixed High Contrast) --- */
footer { 
    background: #0f172a; 
    color: #cbd5e1; /* Lighter text base (Slate 300) */
    padding: 5rem 0 2rem; 
    border: none; 
    margin-top: auto; 
}

footer h5 { 
    color: #ffffff; 
    margin-bottom: 1.5rem; 
    font-size: 1.1rem; 
    font-weight: 700;
}

footer a { 
    color: #94a3b8; /* Slate 400 */
    display: block; 
    margin-bottom: 0.8rem; 
    font-size: 0.95rem; 
    transition: all 0.2s ease;
}

footer a:hover { 
    color: var(--primary-color); /* Pop color on hover */
    transform: translateX(5px); 
}

/* Fix for dark Bootstrap utilities inside dark footer */
footer .text-muted {
    color: #94a3b8 !important; /* Force readable gray */
}

footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important; /* Subtle light border */
}

/* Social Icons */
.social-links { 
    display: flex; 
    gap: 1rem; 
    margin-top: 1.5rem; 
}

.social-icon { 
    width: 40px; 
    height: 40px; 
    background: rgba(255,255,255,0.05); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    color: #ffffff; 
    transition: all 0.3s ease; 
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover { 
    background: var(--primary-color); 
    border-color: var(--primary-color);
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

/* --- 8. Admin & Auth Layouts --- */
.auth-container { background: #fff; padding: 3rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); max-width: 450px; margin: 4rem auto; }
.admin-sidebar { background: #111827; min-height: 100vh; color: #9ca3af; }
.admin-sidebar .nav-link { color: #9ca3af; margin-bottom: 0.25rem; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: rgba(255,255,255,0.1); color: white; }

/* --- 9. Animations --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse-glow { 0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); } }
.pulse-button { animation: pulse-glow 2s infinite; }
.shadow-glow { box-shadow: var(--shadow-glow); }