/**
 * AntiSpam V3 - Zentrales Stylesheet
 * Einheitliches Design für /user, /admin, /groupadmin
 */

:root {
    --primary: #e94560;
    --primary-hover: #ff6b6b;
    --bg: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    --card-bg: rgba(30, 30, 50, 0.8);
    --card-border: rgba(233, 69, 96, 0.3);
    --text: #ffffff;
    --text-muted: #888888;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --info: #0ea5e9;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #0a0a0f; background-image: var(--bg); background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

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

.container-narrow {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

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

/* Navigation */
.nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
}

.nav a.active {
    color: var(--text);
    background: var(--primary);
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-info.active {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary);
}

/* Level Badge - einheitlich für alle Seiten */
.level-badge {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.level-badge.sudo {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #000;
}

.level-badge.admin {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.level-badge.supporter {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

/* Role Badge - für Profil-Seiten */
.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-sudo {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #000;
}

.badge-admin {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
}

.badge-supporter {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
}

.badge-user {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.card h2 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-success { background: var(--success); }
.btn-warning { background: var(--warning); color: #000; }
.btn-danger { background: var(--danger); }

/* Forms */
input, select, textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text);
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success { background: var(--success); color: white; }
.badge-warning { background: var(--warning); color: #000; }
.badge-danger { background: var(--danger); color: white; }
.badge-info { background: var(--info); color: white; }
.badge-muted { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }

/* Avatar */
.avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

/* Alerts */
.alert {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-success { background: rgba(34, 197, 94, 0.2); border: 1px solid var(--success); }
.alert-warning { background: rgba(234, 179, 8, 0.2); border: 1px solid var(--warning); }
.alert-danger { background: rgba(239, 68, 68, 0.2); border: 1px solid var(--danger); }
.alert-info { background: rgba(14, 165, 233, 0.2); border: 1px solid var(--info); }

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }/* Stats classes für stats.php */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.85rem;
}