/* =========================================
   CC QUANTITATIVE SYSTEMS - CORE STYLESHEET
   ========================================= */

/* --- 1. GLOBALNE USTAWIENIA (GLOBAL SETTINGS) --- */
* {
    box-sizing: border-box; /* Kluczowe dla responsywnosci */
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000; /* Deep Black */
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- 2. NAGLÓWEK (HEADER) --- */
header {
    padding: 20px 30px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    position: relative; /* Wazne dla menu mobilnego */
    z-index: 1000;
}

.logo {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
}

/* Ikona Hamburgera (Domyslnie ukryta na komputerze) */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
    user-select: none;
}

/* --- 3. NAWIGACJA (NAVIGATION) --- */
nav {
    display: flex;
    gap: 20px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    align-items: center;
}

nav a:hover {
    color: #00E676;
}

/* Przycisk wyrózniony w menu (OPEN ACCOUNT) */
.nav-btn-highlight {
    color: #00E676;
    border: 1px solid #00E676;
    padding: 8px 15px;
    margin-left: 10px;
    transition: 0.3s;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
}

.nav-btn-highlight:hover {
    background-color: #00E676;
    color: #000;
}

/* --- 4. GLÓWNA TRESC (LAYOUT) --- */
.container {
    flex: 1;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

/* Wysrodkowanie tresci */
.center-content {
    align-items: center;
    text-align: center;
}

/* --- 5. TYPOGRAFIA --- */
h1 {
    font-weight: 300;
    letter-spacing: 4px;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.4;
}

h2 {
    font-size: 16px;
    color: #fff;
    margin-top: 30px;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 10px;
    width: 100%;
}

p, li {
    color: #888;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* --- 6. ELEMENTY UI (PRZYCISKI, TERMINAL) --- */
.button-group {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.enter-btn {
    padding: 15px 30px;
    border: 1px solid #333;
    color: #fff;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    cursor: pointer;
}

.enter-btn:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

/* Szary przycisk (Secondary) */
.enter-btn.secondary {
    background-color: #111;
    color: #888;
    border-color: #333;
}

.enter-btn.secondary:hover {
    border-color: #666;
    color: #fff;
    background-color: #1a1a1a;
}

/* Terminal Loader */
#chart-container {
    flex: 1;
    position: relative;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loader-text {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #444;
    margin-top: 10px;
}

/* --- 7. FORMULARZE (CONTACT / REGISTER) --- */
.contact-hero {
    text-align: center;
    margin-bottom: 40px;
}

.form-wrapper {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
    background-color: #0a0a0a;
    padding: 30px;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    color: #888;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    background-color: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    border-radius: 4px;
    transition: 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #00E676;
    outline: none;
    background-color: #050505;
}

.submit-btn {
    width: 100%;
    background-color: #00E676;
    color: #000;
    border: none;
    padding: 14px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 4px;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #00c853;
    transform: translateY(-1px);
}

/* --- 8. STOPKA (FOOTER) --- */
footer {
    padding: 24px;
    background-color: #050505;
    text-align: center;
    font-size: 11px;
    color: #555;
    border-top: 1px solid #1a1a1a;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.tv-attribution a {
    color: #555;
    font-weight: 600;
    border-bottom: 1px dotted #555;
}

.tv-attribution a:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

/* =========================================
   9. RESPONSYWNOSC & HAMBURGER (MOBILE)
   ========================================= */

@media (max-width: 768px) {
    
    /* Header: Logo po lewej, Hamburger po prawej */
    header {
        padding: 20px;
        flex-direction: row; /* W poziomie */
        justify-content: space-between;
    }

    /* Pokaz ikone hamburgera */
    .hamburger {
        display: block;
    }

    /* Ukryj menu domyslnie */
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Zaraz pod naglówkiem */
        left: 0;
        background-color: #000000;
        border-bottom: 1px solid #1a1a1a;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    }

    /* Klasa .active (dodawana przez JS) pokazuje menu */
    nav.active {
        display: flex;
    }

    /* Linki w menu mobilnym */
    nav a {
        padding: 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #111;
        font-size: 14px;
    }

    /* Przycisk Open Account w menu mobilnym */
    .nav-btn-highlight {
        margin: 20px auto 0;
        display: inline-block;
        width: auto;
    }

    /* Layout kontenera na telefonie */
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 20px;
        letter-spacing: 2px;
    }

    /* Przyciski na glównej (launch/apply) w pionie */
    .button-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .enter-btn {
        width: 100%;
        margin: 0 !important;
        text-align: center;
    }
}