@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --surface-bg: #f8fafc;
    --card-bg: #ffffff;
    --card-border: rgba(226, 232, 240, 0.85);
    --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --card-shadow-hover: 0 12px 28px -4px rgba(37, 99, 235, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}

body {
    font-family: var(--font-sans);
    background-color: var(--surface-bg);
    color: #1e293b;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 75px;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* Karten & Komponenten */
.card {
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card {
    border-radius: 16px;
    border: 1px solid var(--card-border);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover) !important;
    border-color: rgba(59, 130, 246, 0.4);
    color: inherit;
}

.module-card {
    border-radius: 16px;
    border: 1px solid var(--card-border);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover) !important;
    border-color: rgba(59, 130, 246, 0.4);
}

/* Gamification Hero Card */
.hero-gamification {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #3b82f6 100%);
    border-radius: 20px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.35);
}

.hero-gamification::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Soft Badges */
.badge-soft-primary { background-color: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; font-weight: 600; }
.badge-soft-success { background-color: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; font-weight: 600; }
.badge-soft-warning { background-color: #fffbeb; color: #b45309; border: 1px solid #fde68a; font-weight: 600; }
.badge-soft-danger { background-color: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; font-weight: 600; }
.badge-soft-info { background-color: #f0fdfa; color: #0f766e; border: 1px solid #ccfbf1; font-weight: 600; }
.badge-soft-secondary { background-color: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; font-weight: 600; }

/* Filter Buttons & Smart Chips */
.smart-chip {
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.smart-chip:hover {
    background-color: #eff6ff !important;
    border-color: #bfdbfe;
    color: #1d4ed8 !important;
}

/* Modern App Header */
.navbar-app {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-app .navbar-brand {
    color: #0f172a;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-app .nav-link {
    color: #64748b;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.navbar-app .nav-link:hover {
    color: #2563eb;
    background: #f8fafc;
}

.navbar-app .nav-link.active {
    color: #2563eb;
    background: #eff6ff;
    font-weight: 600;
}

.user-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 14px 4px 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.user-pill:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.user-avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Mobile Bottom Navigation Bar */
.bottom-nav-bar {
    display: none;
}

@media (max-width: 991.98px) {
    .bottom-nav-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 66px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(226, 232, 240, 0.9);
        z-index: 1040;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 600;
        transition: all 0.15s ease;
        padding: 6px 14px;
        border-radius: 12px;
    }

    .bottom-nav-item i {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }

    .bottom-nav-item.active {
        color: #2563eb;
    }

    .bottom-nav-item:hover {
        color: #2563eb;
    }
}
