/* =========================================================
   1. ROOT VARIABLES
========================================================= */
:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #141414;
    --surface-bg: rgba(255, 255, 255, 0.03);

    --accent-red: #ff6b6b;
    --accent-red-hover: #ff8787;
    --accent-red-dim: rgba(255, 107, 107, 0.15);
    --accent-red-glow: rgba(255, 107, 107, 0.35);

    --text-main: #ffffff;
    --text-dim: #cbd5e1;
    --accent-gray: #94a3b8;

    --border-light: rgba(255, 255, 255, 0.08);
    --border-soft: rgba(255, 255, 255, 0.05);

    --shadow-soft: 0 10px 30px rgba(0,0,0,0.35);
    --shadow-panel: -10px 0 40px rgba(0,0,0,0.6);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --header-height: 80px;
    --border-radius: 14px;

    --transition-fast: 0.2s ease;
    --transition-main: 0.3s ease;
}

/* =========================================================
   2. RESET & BASE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-main);
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: 16px;
}

/* =========================================================
   3. SCROLLBAR
========================================================= */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 20px;
}

/* =========================================================
   4. HEADER
========================================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 40px;
    z-index: 1000;

    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.logo-home-link {
    display: flex;
    align-items: center;
}

.logo-home-link:hover {
    transform: scale(1.03);
}

.logo-image {
    height: 50px;
    width: auto;
}

/* =========================================================
   5. BUTTONS
========================================================= */
.sign-in-btn,
.btn-registration,
#auth-btn {
    border: none;
    cursor: pointer;
    transition: var(--transition-main);
    font-weight: 700;
}

.sign-in-btn {
    padding: 10px 24px;
    border-radius: 999px;

    background: transparent;
    color: #fff;

    border: 1px solid rgba(255,255,255,0.2);
}

.sign-in-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

.btn-registration,
#auth-btn {
    background: var(--accent-red) !important;
    color: #000 !important;

    padding: 14px 28px;
    border-radius: 10px;

    text-transform: uppercase;
    letter-spacing: 0.5px;

    box-shadow: 0 4px 18px var(--accent-red-dim);
}

.btn-registration:hover,
#auth-btn:hover {
    background: var(--accent-red-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-red-glow);
}

#link {
    color: var(--accent-red);
    font-weight: 700;
}

/* =========================================================
   6. HAMBURGER MENU
========================================================= */
.hamburger {
    width: 52px;
    height: 52px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;

    cursor: pointer;
    z-index: 2100;

    border-radius: 14px;

    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition: var(--transition-main);
}

.hamburger:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

.hamburger span {
    width: 24px;
    height: 2px;

    background: white;
    border-radius: 999px;

    transition: var(--transition-main);
}

.side-panel.active ~ .main-header .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.side-panel.active ~ .main-header .hamburger span:nth-child(2) {
    opacity: 0;
}

.side-panel.active ~ .main-header .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   7. SIDE PANEL
========================================================= */
.side-panel {
    position: fixed;
    top: 0;
    right: -340px;

    width: 340px;
    max-width: 90vw;
    height: 100vh;

    z-index: 2000;

    padding: 30px;

    display: flex;
    flex-direction: column;

    background: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    border-left: 1px solid rgba(255,255,255,0.08);

    box-shadow: var(--shadow-panel);

    transition: right 0.35s ease;
}

.side-panel.active {
    right: 0;
}

.close-btn {
    align-self: flex-end;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255,255,255,0.05);

    color: white;
    font-size: 2rem;

    cursor: pointer;

    transition: var(--transition-main);
}

.close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-red);
}

/* =========================================================
   8. SIDE NAVIGATION
========================================================= */
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin-top: 40px;
}

.side-nav a {
    position: relative;

    padding: 16px 18px;

    border-radius: 12px;

    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;

    color: var(--text-main);

    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;

    transition: var(--transition-main);
}

.side-nav a:hover {
    color: var(--accent-red);

    background: rgba(255,255,255,0.06);
    border-color: rgba(255,107,107,0.15);

    transform: translateX(4px);
}

/* =========================================================
   9. OVERLAY
========================================================= */
.overlay {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    opacity: 0;
    visibility: hidden;

    z-index: 1900;

    transition: var(--transition-main);
}

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

/* =========================================================
   10. BADGES
========================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 12px;

    border-radius: 999px;

    background: var(--accent-red);
    color: #000;

    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;

    margin-left: 10px;
}

/* =========================================================
   11. SCHEDULE SECTION
========================================================= */
.schedule-section {
    width: 100%;
    max-width: 1400px;

    margin: 120px auto;
    padding: 0 40px;
}

.calendar-container {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;

    padding: 40px;

    border-radius: 28px;

    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-light);

    backdrop-filter: blur(14px);
}

.calendar-left {
    padding: 30px;

    border-radius: 22px;

    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-soft);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.day {
    aspect-ratio: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    cursor: pointer;

    color: var(--text-dim);
    font-size: 1rem;

    transition: var(--transition-fast);
}

.weekday {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.78rem;
}

.day:hover:not(.empty) {
    background: var(--accent-red-dim);
    color: #fff;
}

.day.has-event {
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    font-weight: 700;
}

.day.selected {
    background: var(--accent-red);
    color: #000;
}

.day.today {
    border: 1px solid #fff;
}

/* =========================================================
   12. EVENT DETAILS
========================================================= */
.calendar-right {
    display: flex;
}

.event-detail-card {
    width: 100%;

    padding: 50px;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            var(--accent-red-dim),
            rgba(0,0,0,0.35)
        );

    border-left: 5px solid var(--accent-red);
}

.event-detail-card h2 {
    font-size: 2.5rem;
    margin: 20px 0;
}

#detailDateLabel {
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =========================================================
   13. EXCLUSIVE CONTENT
========================================================= */
.exclusive-wrapper {
    margin-top: 20px;
    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.12);
}

/* =========================================================
   14. FOOTER
========================================================= */
.main-footer {
    margin-top: 120px;
    padding: 100px 40px 40px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            var(--secondary-bg)
        );

    border-top: 1px solid rgba(255,107,107,0.08);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
}

.footer-section h3 {
    margin-bottom: 25px;

    color: var(--accent-red);

    font-size: 0.9rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-logo {
    margin-bottom: 20px;

    font-size: 1.8rem;
    font-weight: 900;
}

.brand-info p {
    margin-bottom: 25px;

    color: var(--text-dim);
    line-height: 1.7;
}

/* Socials */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);

    transition: var(--transition-main);
}

.social-links a:hover {
    background: var(--accent-red-dim);
    border-color: var(--accent-red);

    color: var(--accent-red);

    transform: translateY(-3px);
}

/* Newsletter */
.footer-form {
    display: flex;
    gap: 10px;

    margin-top: 15px;
}

.footer-form input {
    flex: 1;

    padding: 14px;

    border-radius: 10px;

    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);

    color: white;
}

.footer-form input:focus {
    outline: none;
    border-color: var(--accent-red);
}

.footer-form button {
    border: none;
    cursor: pointer;

    padding: 0 24px;

    border-radius: 10px;

    background: var(--accent-red);
    color: #000;

    font-weight: 800;
    text-transform: uppercase;

    transition: var(--transition-main);
}

.footer-form button:hover {
    background: var(--accent-red-hover);
    box-shadow: 0 0 18px var(--accent-red-glow);
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;

    text-align: center;

    color: var(--accent-gray);
    font-size: 0.8rem;

    border-top: 1px solid rgba(255,255,255,0.05);
}

/* =========================================================
   15. RESPONSIVE
========================================================= */
@media (max-width: 992px) {

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .calendar-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .main-header {
        height: 70px;
        padding: 0 20px;
    }

    .logo-image {
        height: 42px;
    }

    .schedule-section {
        padding: 0 20px;
    }

    .calendar-container {
        padding: 20px;
    }

    .event-detail-card {
        padding: 30px 22px;
    }

    .event-detail-card h2 {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-form {
        flex-direction: column;
        max-width: 400px;
        margin: 15px auto 0;
    }

    .footer-form button {
        padding: 14px;
    }

    .side-panel {
        width: 100%;
        max-width: 100%;
        right: -100%;
        padding: 24px;
    }

    .side-nav a {
        font-size: 1rem;
    }
}