/* 
 * Tropa da Roxinha - Stylesheet
 */

/* ====================================
   CSS VARIABLES & CUSTOM PROPERTIES
   ==================================== */
:root {
    /* Color System */
    --primary-bg: #1f1e1c;
    --secondary-bg: #2a2825;
    --card-bg: #38352f;
    --primary-text: #f0eee6;
    --secondary-text: #b0aea5;
    --accent: #8c8579;
    --highlight: #cec6b9;
    --border: #5c5a54;
    --action: #cec6b9;
    --action-hover: #e3dacc;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-md: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.35);
    
    /* UI Element Variables */
    --header-bg: rgba(31, 30, 28, 0.95);
}

/* ====================================
   BASE & RESET STYLES
   ==================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    font-size: var(--text-md);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ====================================
   LAYOUT COMPONENTS
   ==================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    width: 100%;
}

/* ====================================
   HEADER & MOBILE MENU
   ==================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    height: 80px;
}

.logo {
    font-size: var(--text-xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--space-sm) 0;
}

.logo-initials {
    background-color: var(--primary-text);
    color: var(--primary-bg);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

/* Mobile Menu */
.menu-checkbox {
    display: none; /* Hide the checkbox completely */
}

.menu-toggle {
    cursor: pointer;
    color: var(--primary-text);
    background: var(--secondary-bg);
    width: 40px;
    height: 40px;
    display: none; /* Hidden by default, shown on mobile */
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

nav ul li a {
    color: var(--primary-text);
    font-weight: 500;
    position: relative;
    padding: var(--space-sm) 0;
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: var(--primary-bg);
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3xl);
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 600px;
}

.hero-discord {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-discord iframe {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 350px;
    height: 500px;
    border: none;
}

.hero h1 {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    font-weight: 800;
}

.hero h1 .highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.2em;
    left: 0;
    width: 100%;
    height: 0.2em;
    background-color: var(--highlight);
    z-index: -1;
    border-radius: var(--radius-sm);
}

.hero p {
    font-size: clamp(var(--text-md), 2vw, var(--text-lg));
    margin-bottom: var(--space-2xl);
    color: var(--secondary-text);
    line-height: 1.6;
    max-width: 90%;
}

.hero-cta {
    margin-top: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--action);
    color: var(--primary-bg);
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

/* ====================================
   RESPONSIVE STYLES
   ==================================== */

/* Tablet (768px and up) */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-discord {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile (768px and down) */
@media (max-width: 768px) {
    /* Header layout adjustments */
    header {
        padding: 0 var(--space-md);
    }
    
    /* Show the menu toggle button on mobile */
    .menu-toggle {
        display: flex;
    }

    /* Hide navigation by default on mobile */
    nav {
        position: absolute;
        top: 80px; /* Height of header */
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        box-shadow: var(--shadow-lg);
        z-index: 995;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
    }

    /* Show navigation when checkbox is checked */
    .menu-checkbox:checked ~ nav {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        padding: var(--space-md) 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
        padding: var(--space-md);
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: var(--space-sm) 0;
        font-size: var(--text-lg);
    }
}

/* ====================================
   404 ERROR PAGE STYLES
   ==================================== */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: var(--space-xl);
    background-color: var(--primary-bg);
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-md);
    color: var(--accent);
    opacity: 0.8;
}

.error-message {
    max-width: 600px;
}

.error-message h1 {
    margin-bottom: var(--space-md);
    font-size: var(--text-2xl);
    color: var(--primary-text);
}

.home-link {
    margin-top: var(--space-xl);
    display: inline-block;
}

/* Small Mobile (480px and down) */
@media (max-width: 480px) {
    :root {
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 3rem;
    }
    
    .hero {
        padding-top: 100px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .error-code {
        font-size: 6rem;
    }
}
