/* assets/css/style.css */
:root {
    --bg-dark: #060913;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Apple Liquid System-Farben (Saturiert für dunkle Hintergründe) */
    --accent-blue: #0A84FF;
    --accent-green: #30D158;
    --accent-red: #FF453A;
    --btn-primary: linear-gradient(135deg, #0A84FF, #0056b3);
    
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", "Inter", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Erlaubt natürliches Scrollen bei vielen Links */
    padding: 60px 20px;
    overflow-x: hidden;
    position: relative;
    letter-spacing: -0.01em;
}

/* Dynamische, organische Hintergrund-Lichter (Echter Liquid-Effekt) */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    opacity: 0.45;
    pointer-events: none;
    animation: pulse 12s infinite alternate ease-in-out;
}

.blob-1 {
    top: -20%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.3) 0%, transparent 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(94, 92, 230, 0.25) 0%, transparent 70%);
    animation-delay: -4s;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0px, 0px); }
    100% { transform: scale(1.15) translate(30px, 50px); }
}

/* App Container nutzt jetzt den gesamten horizontalen Platz elegant aus */
.app-container {
    width: 100%;
    max-width: 1440px; /* Erweitert für optimale Desktop-Ausnutzung */
    margin: 0 auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

/* Apple Liquid Glass Card Component */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.2),
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.12); /* Subtile Lichtkante oben */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dashboard Header als edle, breite Kontrollbar */
.dashboard-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 18px;
}

.avatar {
    width: 48px;
    height: 48px;
    background: var(--btn-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 0 20px rgba(10, 132, 255, 0.4);
}

.user-profile h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.role-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-tag { background: rgba(10, 132, 255, 0.15); color: #40a0ff; border: 1px solid rgba(10, 132, 255, 0.3); }

.header-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-tab:hover {
    color: var(--text-main);
}

.nav-tab.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-logout {
    color: var(--text-muted);
    font-size: 18px;
    padding: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-left: 8px;
}

.btn-logout:hover {
    color: var(--accent-red);
    background: rgba(255, 69, 58, 0.1);
}

/* Perfekt ausbalanciertes Grid-Layout für Desktop */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Erzwingt 3 gleichmäßige Spalten auf Desktop */
    gap: 30px;
    width: 100%;
}

.category-card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: -0.4px;
}

.icon-social { color: #FF2D55; }
.icon-pod { color: #FF9500; }
.icon-tools { color: #AF52DE; }

.links-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
}

/* Hochwertige OS-Style Buttons für die Links */
.link-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px 24px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pfeil nach rechts außen platzieren */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Link-Inhalt links bündig */
.link-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.link-item i.main-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

/* Subtiler Pfeil rechts für den App-Look */
.link-item::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(0);
}

/* Hover-Effekte im Apple Liquid Stil */
.link-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.link-item:hover i.main-icon {
    color: var(--accent-blue);
    transform: scale(1.1);
}

.link-item:hover::after {
    color: var(--text-main);
    transform: translateX(4px);
}

/* Tab Management Logik */
.tab-content { display: none; width: 100%; }
.tab-content.active { display: block; }

/* Animationen */
.animated-fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   📱 RESPONSIVE BREAKPOINTS (Garantiert perfektes Mobile UI)
   ========================================================================== */

@media (max-width: 1100px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten auf Tablets */
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 12px;
    }
    
    .app-container {
        gap: 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        padding: 25px 20px;
        text-align: center;
    }
    
    .user-profile {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-navigation {
        justify-content: center;
    }
    
    .nav-tab {
        padding: 10px 16px;
        font-size: 13px;
        flex-grow: 1;
        justify-content: center;
    }
    
    .grid-container {
        grid-template-columns: 1fr; /* 1 vollflächige Spalte auf dem Smartphone */
        gap: 20px;
    }
    
    .glass-card {
        padding: 25px 20px;
    }
    
    .category-card {
        min-height: auto;
    }
}