/* Mirage Style Theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #0d0d0f;
    --bg-secondary: #141418;
    --bg-card: #1a1a1f;
    --bg-card-hover: #222228;
    --text-primary: #ffffff;
    --text-secondary: #8a8a9a;
    --accent-primary: #b026ff;
    --accent-secondary: #8b00ff;
    --accent-gradient: linear-gradient(135deg, #b026ff 0%, #8b00ff 100%);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --glow-accent: 0 0 20px rgba(176, 38, 255, 0.6);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f2;
    --text-primary: #1a1a1f;
    --text-secondary: #6a6a7a;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .stars-bg {
    opacity: 0.3;
}

[data-theme="light"] .star {
    background: var(--accent-primary);
}

/* Theme Toggle Button - Purple Style */
.theme-toggle {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(164, 74, 255, 0.4);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(164, 74, 255, 0.6);
}

.theme-icon {
    position: absolute;
    font-size: 1.3rem;
    color: #000;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-icon.sun {
    opacity: 0;
    transform: translateY(30px);
}

.theme-icon.moon {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="light"] .theme-icon.sun {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="light"] .theme-icon.moon {
    opacity: 0;
    transform: translateY(-30px);
}

/* Page Transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.page-transition.active {
    opacity: 0.4;
    pointer-events: all;
}

/* Body transition for theme change */
body {
    transition: background-color 0.4s ease, color 0.4s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Light Background */
.light-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s infinite ease-in-out;
}

.light-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(164, 74, 255, 0.3) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.light-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.25) 0%, transparent 70%);
    top: 50%;
    right: -150px;
    animation-delay: -7s;
}

.light-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(164, 74, 255, 0.2) 0%, transparent 70%);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(50px, 30px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-30px, 60px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(40px, -20px) scale(1.05);
        opacity: 0.35;
    }
}

/* Cursor Light - Removed, using corner light instead */
.cursor-light {
    display: none;
}

/* Corner Ambient Light */
.corner-light {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(164, 74, 255, 0.2) 0%, rgba(123, 44, 191, 0.1) 30%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
    top: -150px;
    right: -150px;
    animation: cornerPulse 8s ease-in-out infinite;
}

@keyframes cornerPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

[data-theme="light"] .corner-light {
    opacity: 0.3;
}

/* News Modal */
.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.news-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.news-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.news-modal-overlay.active .news-modal {
    transform: scale(1) translateY(0);
}

.news-modal-header {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.news-modal-close:hover {
    background: var(--accent-gradient);
    color: #000;
    transform: scale(1.1);
}

.news-modal-category {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-gradient);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.news-modal-body {
    padding: 2rem;
    max-height: calc(85vh - 250px);
    overflow-y: auto;
}

.news-modal-date {
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.news-modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.news-modal-content {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.news-modal-content p {
    margin-bottom: 1rem;
}

.news-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px);
    padding: 0.6rem 2rem;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Override for light theme - navbar stays dark */
[data-theme="light"] .navbar {
    background: rgba(0, 0, 0, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .navbar .nav-link {
    color: #8a8a9a;
}

[data-theme="light"] .navbar .nav-link:hover {
    color: #ffffff;
}

[data-theme="light"] .navbar .nav-link.active {
    background: #1a1a1f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 1rem;
}

/* Theme toggle placement in navbar */
.navbar .theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    flex-shrink: 0;
}

/* Center navigation */
.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 0.2rem;
}

.nav-link {
    padding: 0.48rem 0.95rem;
    color: #8a8a9a;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    transition: all 0.3s ease;
    border-radius: 50px;
    position: relative;
    white-space: nowrap;
}

.nav-link i {
    margin-right: 0.35rem;
}

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

.nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Right section */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    margin-left: auto;
}

/* Auth buttons */
.btn-nav {
    padding: 0.5rem 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-nav-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-nav-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.btn-nav-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-nav-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.6);
    color: #ffffff;
}

/* User avatar & toggle */
.user-toggle {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

.user-toggle,
.user-toggle:hover,
.user-toggle:focus,
.user-toggle:focus-visible,
.user-toggle:active,
.user-toggle.show {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.3s ease;
}

.user-toggle:hover .user-avatar {
    border-color: var(--accent-primary);
}

.user-name {
    font-size: 0.8rem;
    color: #ffffff;
}

/* Notification badge */
.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar .dropdown-toggle,
.navbar .dropdown-toggle:hover,
.navbar .dropdown-toggle:focus,
.navbar .dropdown-toggle:focus-visible,
.navbar .dropdown-toggle:active,
.navbar .dropdown-toggle.show {
    outline: none !important;
    box-shadow: none !important;
}

.nav-dropdown > .nav-link {
    border: 1px solid transparent;
    background: transparent;
}

.nav-dropdown > .nav-link:hover,
.nav-dropdown > .nav-link.show {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.55rem;
    margin-left: 0.15rem;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.nav-dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 220px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 100;
}

.dropdown-menu-end {
    left: auto;
    right: 0;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    color: #8a8a9a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.dropdown-item i {
    font-size: 1.1rem;
    color: var(--accent-primary);
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 0.25rem 0;
}

/* Main Content */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section with Event Card */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
    align-items: start;
}

/* Event Card (Left) */
.event-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #7b2cbf 0%, #5a1f8f 50%, #3d1560 100%);
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.15)"/><circle cx="60" cy="70" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

.event-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.event-image {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
    animation: swordFloat 4s ease-in-out infinite;
}

@keyframes swordFloat {
    0%, 100% { transform: translateY(-50%) rotate(-15deg); }
    50% { transform: translateY(-55%) rotate(-12deg); }
}

.event-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.event-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    position: relative;
    z-index: 2;
}

.event-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
}

.event-card:hover .event-bg-image {
    opacity: 0.6;
    transform: scale(1.05);
    transition: all 0.5s ease;
}


/* Description Card (Right) */
.description-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.description-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.description-icon {
    font-size: 1.2rem;
}

.description-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.description-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.online-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.online-count {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
}

/* Server Cards List */
.servers-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Server Card */
.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.server-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.server-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.server-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.server-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.server-version {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.server-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 0.9rem 2.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(164, 74, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(164, 74, 255, 0.5);
}

.btn-secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn-icon i {
    font-size: 1.1rem;
}

.btn-primary i {
    margin-right: 0.5rem;
}


/* Side Navigation - Hidden */
.side-nav {
    display: none;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(164, 74, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(164, 74, 255, 0.2) 0%, rgba(123, 44, 191, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--accent-primary);
}

.feature-card:hover .feature-icon {
    background: var(--accent-gradient);
    color: #fff;
    transform: scale(1.1);
}

.feature-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* News Section */
.news-section {
    padding: 4rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
    height: 280px;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-light);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.news-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
    background: var(--accent-gradient);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    z-index: 3;
}

/* Sliding News Content */
.news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.9) 50%, rgba(0, 0, 0, 0.7) 80%, transparent 100%);
    transform: translateY(55%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    min-height: 75%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.news-card:hover .news-content {
    transform: translateY(0);
}

.news-date {
    color: var(--accent-primary);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: #fff;
}

.news-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease 0.1s;
    margin-bottom: 0.5rem;
}

.news-card:hover .news-excerpt {
    opacity: 1;
    transform: translateY(0);
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.6rem 1.2rem;
    background: var(--accent-gradient);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card:hover .news-read-more {
    opacity: 1;
    transform: translateY(0);
}

.news-read-more:hover {
    box-shadow: 0 4px 15px rgba(164, 74, 255, 0.4);
    transform: translateY(-2px) !important;
}


/* Stats Section */
.stats-section {
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(164, 74, 255, 0.3);
    transform: translateY(-4px);
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--accent-primary);
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .side-nav {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .navbar-toggler {
        order: 2;
    }
    
    .nav-right {
        display: none;
    }

    /* Mobile Menu Animation */
    .navbar-collapse {
        transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }
    
    .navbar-collapse:not(.show) {
        display: none;
    }
    
    .navbar-collapse.collapsing {
        height: 0;
        overflow: hidden;
        opacity: 0;
        transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }
    
    .navbar-collapse.show {
        opacity: 1;
    }

    /* Move auth buttons into the collapse menu for mobile */
    .nav-center {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 0.5rem;
        background: var(--bg-card);
        border-radius: 12px;
        margin-top: 1rem;
        border: 1px solid var(--border-color);
        order: 3;
    }
    
    .nav-center .nav-link {
        width: 100%;
        padding: 0.75rem 1.25rem;
        border-radius: 8px;
    }
    
    .nav-center .nav-dropdown {
        width: 100%;
    }
    
    .nav-center .dropdown-menu {
        position: static !important;
        width: 100%;
        background: rgba(255, 255, 255, 0.03) !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 1rem;
        margin-top: 0.25rem;
        transform: none !important;
    }

    .mobile-auth-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .mobile-auth-buttons .btn-nav {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 992px) {
    .mobile-auth-buttons {
        display: none;
    }
}

@media (max-width: 768px) {
    .event-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
}


/* ==================== PROFILE PAGE ==================== */

.profile-page {
    padding: 2rem 0 4rem;
}

/* Profile Header Card */
.profile-header-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.profile-header-bg {
    height: 120px;
    background: linear-gradient(135deg, #7b2cbf 0%, #5a1f8f 50%, #3d1560 100%);
    position: relative;
}

.profile-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="30" r="1.5" fill="rgba(255,255,255,0.15)"/><circle cx="50" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
}

.profile-header-content {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 0 2rem 1.5rem;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.profile-avatar-section {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 4px solid var(--bg-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    background: var(--bg-secondary);
}

.profile-role-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-user-info {
    flex: 1;
    padding-bottom: 0.5rem;
}

.profile-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.profile-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.profile-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-detail-icon {
    font-size: 1rem;
}

.text-success {
    color: #4caf50;
}

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

.text-danger {
    color: #f44336;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.profile-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Profile Cards */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-card:hover {
    border-color: var(--border-light);
}

.profile-card-danger {
    border-color: rgba(244, 67, 54, 0.3);
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.profile-card-icon {
    font-size: 1.25rem;
}

.profile-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.profile-card-body {
    padding: 1.5rem;
}

.profile-card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(164, 74, 255, 0.15);
}

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

/* Buttons */
.btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Profile Responsive */
@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1rem 1.5rem;
    }
    
    .profile-avatar-img {
        width: 100px;
        height: 100px;
    }
    
    .profile-details {
        justify-content: center;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-card-body {
        padding: 1rem;
    }
}
