﻿/* ═══════════════════════════════════════════════════════════════════════
   WRC - Weed Race Club CSS Stylesheet
   Yo mon, dis be de style file for keepin' tings lookin' fresh and proper!
   ═══════════════════════════════════════════════════════════════════════ */

/* COLOR VARIABLES - De palette of life, ya know? */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2c2c2c;
    --accent-color: #4caf50;        /* Dat green goodness! */
    --text-color: #f0f0f0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════════
   GENERAL BODY STYLES - De canvas of our masterpiece, mon!
   ═══════════════════════════════════════════════════════════════════════ */
body {
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Exo 2', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('hero-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Container for centering content - Keep tings centered, keep de mind centered */
.container {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   HEADER SECTION - De top of de page, where de magic begins!
   ═══════════════════════════════════════════════════════════════════════ */
header {
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin: 0.5rem 0;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(45, 232, 148, 0.7);  /* Dat glowing green, mon! */
}

header .tagline {
    font-size: 1rem;
    color: #ccc;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   MAIN CONTENT WRAPPER - De container for all de good stuff, ya dig?
   ═══════════════════════════════════════════════════════════════════════ */
main {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(20, 20, 22, 0.85);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION STYLES - De building blocks of organization, mon!
   ═══════════════════════════════════════════════════════════════════════ */
section {
    margin: 1.5rem 0;
    padding: 40px 0;
    text-align: center;
}

section:nth-child(odd) {
    background-color: var(--secondary-color);
}

/* ═══════════════════════════════════════════════════════════════════════
   HEADINGS AND TEXT - De words dat make tings make sense
   ═══════════════════════════════════════════════════════════════════════ */
h2, h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 0 0 0.75rem 0;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    margin: 0 0 1rem 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   SEPARATOR LINE - Just a lil' thing to keep tings apart, ya know?
   ═══════════════════════════════════════════════════════════════════════ */
.separator {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(45, 232, 148, 0.75), rgba(255, 255, 255, 0));
    margin: 2rem 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO SECTION & DISCORD BUTTON - De call to action, mon!
   ═══════════════════════════════════════════════════════════════════════ */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.discord-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #2de894;     /* Dat vibrant green, perfect for clickin'! */
    color: #1e1e1e;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    max-width: 200px;
    margin: 1rem auto;
    border: none;
    cursor: pointer;
}

/* When you hover, de button gets even more beautiful, mon! */
.discord-button:hover {
    background-color: #8affc1;
    transform: scale(1.05);
}

.button-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════
   DISCORD WIDGET - Show dem live action from de Discord server
   ═══════════════════════════════════════════════════════════════════════ */
#discord-widget-section iframe {
    width: 100%;
    max-width: 400px;
    height: 400px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER - De ending, but not really de ending, mon!
   ═══════════════════════════════════════════════════════════════════════ */
footer {
    text-align: center;
    padding: 1rem 0;
    color: #aaa;
    background: rgba(0, 0, 0, 0.6);
    margin-top: auto;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
    padding: 0;
}

/* Links in de footer get dat green treatment, ya dig? */
footer a {
    color: #2de894;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════
   GLASSMORPHISM EFFECT - Dat blurry, transparent goodness for all blocks
   ═══════════════════════════════════════════════════════════════════════ */
header, main, footer {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    max-width: 700px;
    margin: 1.5rem auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════
   CONTROLS SECTION - Home button and language toggle, organized nice
   ═══════════════════════════════════════════════════════════════════════ */
#controls-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

/* Home button - Simple outline, no flashiness needed, mon! */
.home-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: transparent;
    color: #2de894;
    text-decoration: none;
    font-size: 2rem;
    border-radius: 5px;
    border: 2px solid #2de894;
    transition: color 0.3s, border-color 0.3s, transform 0.2s;
}

/* Hover effect - Make it pop a lil' bit */
.home-button:hover {
    color: #8affc1;
    border-color: #8affc1;
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════════════════
   LANGUAGE TOGGLE SWITCH - Flip between English and Deutsch, easy as pie!
   ═══════════════════════════════════════════════════════════════════════ */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background-color: rgba(44, 44, 44, 0.6);
    border-radius: 25px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.lang-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ddd;
    min-width: 70px;
    text-align: center;
}

/* De actual toggle switch - Slide it like you mean it! */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    transition: 0.4s;
    border-radius: 30px;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

/* De slider button itself - Keep it movin'! */
.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: #2de894;
    transition: 0.4s;
    border-radius: 50%;
}

/* When checked, move dat slider to de right, mon! */
.toggle-input:checked + .slider:before {
    transform: translateX(30px);
}

/* ═══════════════════════════════════════════════════════════════════════
   IMPRESSUM BLOCKS - De legal stuff, but make it look nice
   ═══════════════════════════════════════════════════════════════════════ */
.impressum-block {
    text-align: left;
    background-color: rgba(44, 44, 44, 0.5);
    padding: 1rem;
    margin: 1rem 0;
    border-left: 3px solid #4caf50;
    border-radius: 4px;
}

.impressum-block h3 {
    text-align: left;
    margin-top: 0;
}

.impressum-block p {
    text-align: left;
    margin: 0.5rem 0;
}

.impressum-block strong {
    color: #2de894;
}

/* ═══════════════════════════════════════════════════════════════════════
   EMAIL LINKS - Make dem emails stand out in green, so smooth!
   ═══════════════════════════════════════════════════════════════════════ */
.impressum-block a {
    color: #2de894 !important;
    text-decoration: none;
    font-weight: bold;
}

.impressum-block a:hover {
    color: #8affc1 !important;
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════
   AGE VERIFICATION GATE - Must be 18+ to enter, keep it legal!
   ═══════════════════════════════════════════════════════════════════════ */
.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.age-gate-overlay.hidden {
    display: none;
}

.age-gate-box {
    background: rgba(20, 20, 22, 0.95);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.age-gate-box h2 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.6rem;
    margin: 0 0 1rem 0;
}

.age-gate-box p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.age-gate-box p strong {
    color: #2de894;
}

.age-gate-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.age-btn {
    padding: 12px 28px;
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.age-btn-yes {
    background-color: #2de894;
    color: #1e1e1e;
}

.age-btn-yes:hover {
    background-color: #8affc1;
    transform: scale(1.05);
}

.age-btn-no {
    background-color: transparent;
    color: #ff5555;
    border: 2px solid #ff5555;
}

.age-btn-no:hover {
    background-color: rgba(255, 85, 85, 0.15);
    transform: scale(1.05);
}

/* While the age gate is active, prevent scrolling the page behind it */
body.age-gate-active {
    overflow: hidden;
}