/* /web/static/css/main.css */

:root {
    /* Color Palette - Catppuccin Mocha inspired */
    --bg-dark: #0f0f17;
    --bg-panel: #181825;
    --bg-input: #11111b;
    --accent-blue: #89b4fa;
    --accent-pink: #f4a7bb; /* Neon Pink */
    --text-main: #cdd6f4;
    --text-dim: #a6adc8;
    --discord-blurple: #5865f2;
    --white: #ffffff;
}

/* =========================================================
   GENERAL STYLES
========================================================= */
body { 
    font-family: 'Inter', 'Segoe UI', sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-height: 100vh;
}

/* Base container for all panels */
.container { 
    background-color: var(--bg-panel); 
    padding: 30px; 
    border-radius: 12px; 
    width: 100%; 
    max-width: 500px; 
    margin: 40px auto; 
    box-sizing: border-box; 
    border: 1px solid #313244;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Universal Heading style */
h1 { 
    margin-top: 0; 
    text-align: center; 
    color: var(--accent-pink); 
    text-shadow: 0 0 10px rgba(244, 167, 187, 0.3);
    margin-bottom: 25px;
}

hr { 
    border: 0; 
    border-top: 1px solid #45475a; 
    margin: 20px 0; 
}

.hidden { 
    display: none !important; 
}

/* Main wrapper for page content spacing */
.main-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* =========================================================
   NAVIGATION BAR
========================================================= */
nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0 40px; 
    height: 80px; 
    background-color: var(--bg-dark);
    border-bottom: 3px solid var(--accent-pink); 
    width: 100%; 
    box-sizing: border-box;
}

.nav-left, .nav-right { 
    display: flex; 
    align-items: center; 
    width: 300px; 
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto; /* Erlaubt dem Bereich, mit dem Namen zu wachsen */
    min-width: 200px;
}

.nav-links { 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
    flex-grow: 1; 
}

.nav-brand { 
    font-weight: bold; 
    font-size: 22px; 
    color: var(--accent-blue); 
}

.bot-logo { 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    border: 2px solid var(--accent-pink); 
    object-fit: cover; 
    margin-right: 12px; 
}

.nav-btn { 
    background: none; 
    border: 1px solid transparent; 
    color: var(--text-main); 
    font-weight: bold; 
    padding: 10px 18px; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: 0.3s; 
    text-decoration: none;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 10px;
    transition: background 0.2s;
    position: relative;
}

.user-dropdown:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.user-avatar-nav {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    object-fit: cover;
    display: block;
}

/* Position des Dropdown-Menüs korrigieren */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 55px;
    background-color: var(--bg-panel);
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    border-radius: 10px;
    z-index: 1000;
    border: 1px solid #45475a;
    overflow: hidden;
}

.dropdown-content.show { 
    display: block; 
    animation: fadeIn 0.2s ease-out;
}

/* Styling für die einzelnen Links im Menü */
.dropdown-item {
    padding: 12px 16px;
    display: block;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.dropdown-item:hover { 
    background-color: #313244; 
}

/* Smooth Fade-In Effekt */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-btn:hover { background-color: #313244; }
.nav-btn.active { background-color: var(--accent-pink); color: #11111b; }

/* =========================================================
   MESSAGE BOXES (Errors/Success)
========================================================= */
#messageBox {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.error { background-color: #f38ba8; color: #11111b; }
.success { background-color: #a6e3a1; color: #11111b; }

/* =========================================================
   UNIVERSAL LOGIN BUTTON
========================================================= */
.login-btn {
    background-color: var(--discord-blurple);
    color: var(--white);
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    box-sizing: border-box;
}

.login-btn:hover {
    background-color: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.login-btn img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

/* --- FOOTER STYLES --- */
.site-footer {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Leicht transparenter Rahmen im Darkmode */
    text-align: center;
    color: #888;
    font-family: sans-serif;
    font-size: 14px;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #5865F2; /* Discord Blau */
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #4752C4; /* Etwas dunkleres Blau beim Hovern */
    text-decoration: underline;
}

/* --- PRIVACY POLICY --- */
.privacy-container {
    max-width: 900px !important;
    margin: 40px auto;
    padding: 40px;
    line-height: 1.6;
}

/* Für sehr kleine Bildschirme (Handys) etwas Platz am Rand lassen */
@media (max-width: 950px) {
    .privacy-container {
        max-width: 90%;
        padding: 25px;
    }
}

/* =========================================================
   MOBILE RESPONSIVENESS (SMARTPHONE)
========================================================= */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
    }

    .nav-left, .nav-right {
        width: 100%;
        justify-content: center;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap; /* Lässt die Buttons in die nächste Zeile rutschen, wenn kein Platz ist */
        justify-content: center;
        gap: 8px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        flex: 1 1 auto; /* Lässt die Buttons flexibel wachsen */
        text-align: center;
        min-width: 100px; /* Verhindert, dass sie zu winzig werden */
    }

    /* Das Dropdown auf dem Handy zentrieren, damit es nicht über den Rand ragt */
    .dropdown-content {
        right: 50%;
        transform: translateX(50%);
        top: 60px;
        width: 90vw; /* Fast volle Bildschirmbreite */
    }

    .container {
        padding: 20px 15px; /* Weniger Rand auf dem Handy */
        margin: 20px auto;
        width: 95%;
    }
}