/**
 * BAUTEAM Styles
 * Dunkles Theme mit Lila-Akzenten, Glow & Glassmorphism
 * Mobile First
 */

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

:root {
    /* Farben - Dunkles Theme mit Lila-Akzenten */
    --color-primary: #9d4edd;
    --color-primary-dark: #7b2cbf;
    --color-primary-light: #c77dff;
    --color-bg-dark: #0a0a0f;
    --color-bg-darker: #05050a;
    --color-bg-card: rgba(20, 20, 35, 0.7);
    --color-bg-glass: rgba(30, 30, 50, 0.5);
    --color-text: #e8e8f0;
    --color-text-muted: #9090a0;
    --color-success: #06ffa5;
    --color-error: #ff006e;
    --color-info: #4cc9f0;

    /* Schatten & Glow (intensiver) */
    --shadow-glow: 0 0 30px rgba(157, 78, 221, 0.6);
    --shadow-glow-strong: 0 0 60px rgba(157, 78, 221, 0.9);
    --shadow-soft: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(ellipse at top, #0f0f1a 0%, #05050a 100%);
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    flex: 1;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-light);
    text-shadow: var(--shadow-glow);
    text-decoration: none;
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    color: var(--color-primary-light);
    background: rgba(157, 78, 221, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(157, 78, 221, 0.2);
    padding: 2rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-primary-light);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.glow-text {
    color: var(--color-primary-light);
    text-shadow: var(--shadow-glow);
}

.subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-top: -0.5rem;
}

.small-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

code {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* ============================================
   CARDS (Glass Effect)
   ============================================ */
.auth-card,
.dashboard-card {
    background: var(--color-bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    transition: all var(--transition-normal);
}

.auth-card:hover,
.dashboard-card:hover {
    box-shadow: var(--shadow-soft), var(--shadow-glow-strong);
    border-color: rgba(157, 78, 221, 0.5);
    transform: translateY(-4px);
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.auth-card {
    width: 100%;
    max-width: 480px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-body {
    margin-bottom: 1rem;
}

.auth-form {
    margin: 2rem 0;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
}

.auth-info {
    margin-top: 2rem;
    text-align: center;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-wrapper {
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.dashboard-card {
    max-width: 900px;
    margin: 0 auto;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.user-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    box-shadow: var(--shadow-glow-strong);
    margin-top: 1rem;
}

.dashboard-body {
    margin-top: 2rem;
}

.user-info {
    margin-bottom: 2rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.info-table th,
.info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.info-table th {
    color: var(--color-text-muted);
    font-weight: 500;
    width: 35%;
}

.info-table td {
    color: var(--color-text);
}

.actions {
    text-align: center;
    margin: 2rem 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    width: 100%;
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-glow), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow-strong), 0 6px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.btn-steam {
    background: linear-gradient(135deg, #171a21 0%, #1b2838 100%);
    color: white;
    box-shadow: 0 0 30px rgba(102, 192, 244, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-steam:hover {
    box-shadow: 0 0 50px rgba(102, 192, 244, 0.7), 0 6px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   BADGES
   ============================================ */
.role-badge,
.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.role-master { background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%); color: #000; }
.role-admin { background: linear-gradient(135deg, #ff006e 0%, #ff4d8d 100%); color: white; }
.role-moderator { background: linear-gradient(135deg, #4cc9f0 0%, #72ddf7 100%); color: #000; }
.role-user { background: rgba(255, 255, 255, 0.15); color: var(--color-text); }

.status-active { background: var(--color-success); color: #000; }
.status-pending { background: var(--color-info); color: #000; }
.status-disabled { background: var(--color-error); color: white; }

/* ============================================
   INFO BOXES
   ============================================ */
.info-box {
    background: var(--color-bg-glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(157, 78, 221, 0.25);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash {
    position: fixed;
    top: 1rem;
    right: 1rem;
    max-width: 400px;
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    z-index: 9999;
    animation: slideIn 0.3s ease;
    transition: opacity var(--transition-normal);
    backdrop-filter: blur(10px);
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-error {
    background: rgba(255, 0, 110, 0.9);
    color: white;
}

.flash-success {
    background: rgba(6, 255, 165, 0.9);
    color: #000;
}

.flash-info {
    background: rgba(76, 201, 240, 0.9);
    color: #000;
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--color-primary);
    padding: 1.5rem;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.6);
}

.cookie-consent-content {
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent p {
    flex: 1;
    margin: 0;
    min-width: 300px;
}

.cookie-consent .btn {
    flex-shrink: 0;
}

/* ============================================
   LINKS
   ============================================ */
.link {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

.link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-fast);
}

.link:hover::after {
    width: 100%;
}

.link:hover {
    color: var(--color-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .auth-card,
    .dashboard-card {
        padding: 1.75rem;
    }

    .info-table th,
    .info-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .info-table th {
        width: 40%;
    }

    .flash {
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }

    .cookie-consent-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-consent p {
        min-width: auto;
    }

    .header-nav {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }

    .auth-card,
    .dashboard-card {
        padding: 1.25rem;
    }

    .btn-large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }

    .user-avatar {
        width: 80px;
        height: 80px;
    }
}
