/* assets/css/global.css */

/* -----------------------------------------------------------
   0. FONTS & IMPORTS
----------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,700&display=swap');

/* -----------------------------------------------------------
   1. RESET & BODY
----------------------------------------------------------- */
:root {
    --font-main: 'Kanit', system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #020617; 
    background-color: var(--bg-dark); 
    color: #f8fafc;
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; }
* { box-sizing: border-box; }

/* -----------------------------------------------------------
   2. LAYOUT
----------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1000px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* -----------------------------------------------------------
   3. NAVIGATION (HEADER)
----------------------------------------------------------- */
.site-header {
    height: 70px;
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.85); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky; top: 0; z-index: 1000;
    transition: background 0.3s;
}

.nav-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 100%; 
}

.site-header .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 100%;
}

/* ============================================================
   LOGO DESIGN
============================================================ */
.brand { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
    text-decoration: none; 
    transition: transform 0.2s;
}
.brand:hover { transform: translateX(1px); }

.brand-graphic {
    display: flex;
    align-items: center;
    height: 40px;
    transform: skewX(-20deg); 
    box-shadow: 5px 5px 0px rgba(0,0,0,0.2); 
}

.cut-dark {
    height: 100%;
    width: 25px;
    background-color: #1e293b; 
    margin-right: -10px; 
    position: relative;
    z-index: 1;
}

.cut-accent {
    height: 100%;
    display: flex;
    gap: 4px; 
    background-color: var(--primary); 
    padding: 0 8px;
    align-items: center;
    position: relative;
    z-index: 2;
    border-left: 2px solid #020617; 
}

.cut-accent span {
    display: block;
    width: 4px;
    height: 24px;
    background-color: #020617; 
}

.brand-text { 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    line-height: 1; 
    font-family: var(--font-main);
}

.brand-title { 
    font-weight: 700; 
    font-size: 26px; 
    color: #fff; 
    letter-spacing: 0px; 
    text-transform: uppercase;
}
.brand-title span { color: var(--primary); font-weight: 700; }

.brand-sub { 
    font-size: 11px; 
    font-weight: 500; 
    text-transform: uppercase; 
    color: #fff; 
    opacity: 0.8; 
    letter-spacing: 3.7px; 
    margin-left: 2px; 
    margin-top: 0px;
    display: block;
}

/* ============================================================
   NAVIGATION LINKS
============================================================ */
.nav-menu { display: flex; gap: 6px; align-items: center; }

.nav-link { 
    font-family: var(--font-main);
    font-size: 13px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    color: var(--text-muted); 
    padding: 8px 18px; 
    border-radius: 8px; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link:hover { 
    color: #fff; 
    background: rgba(255,255,255,0.08); 
    transform: translateY(-1px);
}

.nav-link.active { 
    color: #020617; 
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    border-top: 1px solid rgba(255,255,255,0.2); 
    font-weight: 700; 
}

.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; padding: 5px; cursor: pointer; transition: color 0.2s; }
.mobile-toggle:hover { color: var(--primary); }

/* -----------------------------------------------------------
   4. HELFER KLASSEN
----------------------------------------------------------- */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* -----------------------------------------------------------
   5. RESPONSIVE / MOBILE MENÜ
----------------------------------------------------------- */
@media (max-width: 900px) {
    .mobile-toggle { display: block; }

    .nav-menu { 
        display: none; 
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: rgba(2, 6, 23, 0.98); 
        backdrop-filter: blur(20px); 
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        flex-direction: column;
        gap: 10px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.8);
        z-index: 1000;
        animation: slideDown 0.2s ease-out;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-menu.active { display: flex; }

    .nav-link {
        display: block;
        text-align: center;
        padding: 14px;
        width: 100%;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 6px;
    }
    
    .nav-link:hover {
        background: rgba(255,255,255,0.06);
        transform: none;
    }
    
    .nav-link.active {
        color: #020617; 
        background: var(--primary);
        box-shadow: none;
        border: none;
    }
    
    .hide-mobile { display: none !important; }
    .hide-mobile-l { display: none !important; }
}

/* TOTAL STATS STYLES */
.ts-meta { font-size: 9px; margin-top: 3px; font-weight: 500; letter-spacing: 0.3px; }
.ts-meta-best { font-size: 8px; margin-top: 2px; font-weight: 400; color: #cbd5e1; letter-spacing: 0.2px; }

/* ============================================================
   GLOBAL MODAL SYSTEM & INTERACTIVITY
============================================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    background: rgba(255,255,255,0.03);
    font-family: var(--font-main);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.modal-close:hover { color: #fff; }

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Interaktive Namen (Links) */
.clickable-name {
    cursor: pointer;
    transition: color 0.2s;
    border-bottom: 1px dotted transparent;
}
.clickable-name:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}