/* BeCloser Theme Colors */
:root {
    --bg-color: #0c0e02;
    --lime: #d2fd5f;
    --purple: #763ee6;
    --blue: #63cee9;
    --text-light: #e2e2ee;
    --text-muted: #a0a0c0;
}

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

/* Typography setup */
@font-face {
    font-family: 'Locker';
    /*src: local('Locker'); */
    src: url('../fonts/LOCKER.ttf') format('ttf');
}

body {
    /* OS-level typography fallbacks */
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Apply Locker to Title and Headlines with fallbacks */
h1, h2, .logo {
    font-family: 'Locker', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(12, 14, 2, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(118, 62, 230, 0.3);
}

/* Brand Assets */
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.isotype { height: 40px; width: auto; }
.logotype { height: 30px; width: auto; }

/* Image Fallbacks */
img {
    color: var(--lime);
    font-style: italic;
    font-family: 'Poppins', sans-serif;
}

nav { display: flex; align-items: center; gap: 30px; }
nav a {
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: color 0.3s ease;
}
nav a:hover { color: var(--blue); }

.btn-login {
    border: 2px solid var(--purple);
    padding: 8px 24px;
    border-radius: 30px;
    color: var(--purple);
    transition: all 0.3s ease;
}
.btn-login:hover {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 0 15px rgba(118, 62, 230, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
    background: radial-gradient(circle at center, rgba(118,62,230,0.15) 0%, var(--bg-color) 60%);
    margin-top: 60px;
}

.hero h1 {
    font-size: 4rem; /* Fallback */
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--lime);
    text-shadow: 0 0 30px rgba(210, 253, 95, 0.2);
    margin-bottom: 10px;
    line-height: 1.1;
}
.hero p {
    font-size: 1.5rem; /* Fallback */
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--blue);
    margin-bottom: 50px;
    font-weight: 300;
}

.btn-primary {
    background: var(--lime);
    color: var(--bg-color);
    padding: 18px 45px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(210, 253, 95, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(210, 253, 95, 0.5);
}

/* Responsive YouTube Embed */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 60px auto 0;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(118, 62, 230, 0.2);
    border: 1px solid rgba(118, 62, 230, 0.3);
}

@supports not (aspect-ratio: 16 / 9) {
    .video-container {
        padding-bottom: 56.25%;
        height: 0;
    }
}
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Sections */
section { padding: 100px 5%; }
section h2 {
    font-size: 2.5rem; /* Fallback */
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    color: var(--purple);
    margin-bottom: 60px;
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(99, 206, 233, 0.2);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}
.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--blue);
    box-shadow: 0 10px 30px rgba(99, 206, 233, 0.1);
}
.feature-card .icon { font-size: 3.5rem; margin-bottom: 25px; }
.feature-card h3 { color: var(--text-light); margin-bottom: 15px; font-size: 1.5rem; }
.feature-card p { color: var(--text-muted); font-size: 1rem; }

/* Contact Section */
.contact { background: linear-gradient(180deg, var(--bg-color) 0%, rgba(118, 62, 230, 0.05) 100%); }
form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
input, textarea {
    width: 100%;
    padding: 18px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(118, 62, 230, 0.3);
    border-radius: 12px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--lime);
    box-shadow: 0 0 10px rgba(210, 253, 95, 0.2);
}
textarea { height: 180px; resize: vertical; }

.btn-secondary {
    background: var(--blue);
    color: var(--bg-color);
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.btn-secondary:hover { background: #4bb8d3; transform: scale(1.02); }

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; padding: 20px; }
    nav { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
    .hero { margin-top: 100px; }
}
/* Add this red variable to your existing :root */
:root {
    --red: #ff4d6d;
}

/* Current Event Hero */
.current-event {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 5% 60px;
    background: radial-gradient(circle at top center, rgba(118,62,230,0.2) 0%, var(--bg-color) 70%);
    margin-top: 60px;
}

.event-hero {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(118, 62, 230, 0.3);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 77, 109, 0.1);
    color: var(--red);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 77, 109, 0.3);
}

.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.red { background: var(--red); box-shadow: 0 0 8px var(--red); animation: pulse 1.5s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.event-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text-light);
    margin-bottom: 5px;
    line-height: 1.2;
}

.streamer-name {
    color: var(--blue);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Ticket Status & Progress Bar */
.ticket-status {
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.ticket-count strong {
    color: var(--lime);
    font-size: 1.2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #1a1a26;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lime), var(--blue));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Actions & Stream Links */
.event-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.stream-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-platform {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-twitch {
    background: rgba(145, 70, 255, 0.1);
    color: #bf94ff;
    border-color: rgba(145, 70, 255, 0.3);
}
.btn-twitch:hover { background: rgba(145, 70, 255, 0.2); }

.btn-youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
    border-color: rgba(255, 0, 0, 0.3);
}
.btn-youtube:hover { background: rgba(255, 0, 0, 0.2); }

/* Socials */
.socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.social-link {
    color: var(--purple);
    text-decoration: none;
    transition: color 0.2s;
}
.social-link:hover { color: var(--lime); }

/* Calendar Section */
.calendar-section { padding: 60px 5% 100px; }
.calendar-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    color: var(--blue);
    margin-bottom: 50px;
}

.calendar-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    display: flex;
    align-items: center;
    background: #17171f;
    border: 1px solid #28283a;
    border-radius: 16px;
    padding: 20px 30px;
    transition: border-color 0.3s, transform 0.2s;
}
.event-card:hover {
    border-color: var(--purple);
    transform: translateX(5px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(118, 62, 230, 0.1);
    border-radius: 12px;
    padding: 10px 20px;
    min-width: 90px;
    margin-right: 25px;
}

.month { color: var(--purple); font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; }
.day { color: var(--text-light); font-size: 1.8rem; font-weight: 700; font-family: 'Locker', sans-serif; line-height: 1; }

.event-details { flex: 1; }
.event-details h4 { font-size: 1.2rem; margin-bottom: 4px; color: var(--text-light); }
.event-details p { font-size: 0.9rem; color: var(--text-muted); }

/* Mobile Adjustments for Events */
@media (max-width: 768px) {
    .current-event { margin-top: 100px; padding-top: 40px; }
    .event-hero { padding: 30px 20px; }
    .event-card { flex-direction: column; text-align: center; gap: 15px; padding: 25px; }
    .event-date { margin-right: 0; width: 100%; }
}

/* ── Thumbnail Video Embed ── */
.video-thumbnail-container {
    width: 100%;
    max-width: 800px;
    margin: 60px auto 0;
    text-align: center;
}

.thumbnail-wrapper {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(118, 62, 230, 0.2);
    border: 1px solid rgba(118, 62, 230, 0.3);
    text-decoration: none;
    background-color: #17171f;
}

/* Fallback for older browsers without aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .thumbnail-wrapper {
        padding-bottom: 56.25%;
        height: 0;
    }
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-wrapper:hover .video-thumbnail {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Play Button Overlay */
.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 14, 2, 0.4); /* Dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.thumbnail-wrapper:hover .play-button-overlay {
    background: rgba(12, 14, 2, 0.2);
}

.play-icon {
    width: 80px;
    height: 80px;
    background: var(--purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    padding-left: 6px; /* Visually centers the triangle */
    box-shadow: 0 0 20px rgba(118, 62, 230, 0.6);
    transition: all 0.3s ease;
}

.thumbnail-wrapper:hover .play-icon {
    background: var(--lime);
    color: var(--bg-color);
    box-shadow: 0 0 30px rgba(210, 253, 95, 0.6);
    transform: scale(1.1);
}

/* Text Link Fallback */
.fallback-text {
    margin-top: 16px;
    font-size: 0.95rem;
}

.fallback-text a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.fallback-text a:hover {
    color: var(--blue);
    text-decoration: underline;
}

/* ── Twitch-Specific Hover Effects ── */
.twitch-wrapper:hover .twitch-icon {
    background: #9146ff; /* Official Twitch Purple */
    color: #ffffff;
    box-shadow: 0 0 30px rgba(145, 70, 255, 0.6);
    transform: scale(1.1);
}

.twitch-wrapper:hover {
    border-color: rgba(145, 70, 255, 0.5);
    box-shadow: 0 10px 30px rgba(145, 70, 255, 0.15);
}