/* FlexProfile.de - Unified Global CSS */
/* Diese Datei wird auf allen Seiten geladen */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #667eea;
    --primary-hover: #5a67d8;
    --secondary-color: #764ba2;
    --text-color: #14171a;
    --text-muted: #657786;
    --border-color: #e1e8ed;
    --background-color: #f5f8fa;
    --white: #ffffff;
    --danger: #e0245e;
    --success: #17bf63;
    --warning: #ffad1f;
    --shadow: 0 2px 8px rgba(0,0,0,0.12);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
    --radius: 15px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --header-height: 70px;
}

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

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: var(--header-height);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== UNIFIED HEADER STYLES ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: var(--header-height);
    transition: all 0.3s ease;
}

.header.sticky {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.98);
}

.header .container {
    height: 100%;
    padding: 0 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* ===== NAVIGATION ===== */
.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-item {
    padding: 10px 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.nav-item.active {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ===== MOBILE MENU TOGGLE ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    z-index: 1001;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== USER MENU ===== */
.user-menu {
    position: relative;
    z-index: 1100;
}

.user-avatar-container {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* ===== USER DROPDOWN ===== */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 280px;
    padding: 0;
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.dropdown-user-info {
    flex: 1;
}

.dropdown-name {
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-color);
}

.dropdown-username {
    color: var(--text-muted);
    font-size: 14px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.05);
    text-decoration: none;
    color: var(--text-color);
    transform: translateX(5px);
}

.dropdown-item.logout {
    color: var(--danger);
}

.dropdown-item.logout:hover {
    background: rgba(224, 36, 94, 0.1);
    color: var(--danger);
}

/* ===== MOBILE OVERLAY ===== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== CARDS - GLOBAL ===== */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(0,0,0,0.02);
}

/* ===== BUTTONS - GLOBAL ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.btn-danger {
    background: linear-gradient(45deg, var(--danger), #c1185c);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 8px 20px rgba(224, 36, 94, 0.4);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== FORMS - GLOBAL ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: white;
    color:#000;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(224, 36, 94, 0.1);
}

.form-control.success {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(23, 191, 99, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: var(--danger);
    font-size: 14px;
    margin-top: 5px;
}

/* ===== ALERTS - GLOBAL ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(23, 191, 99, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(224, 36, 94, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-info {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.alert-warning {
    background: rgba(255, 173, 31, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

/* ===== LOADING ===== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-color); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
    body {
        padding-top: var(--header-height);
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        padding: 0 15px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
        z-index: 999;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        justify-content: center;
    }
    
    .user-dropdown {
        width: 260px;
        right: -10px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .card-body {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
    
    :root {
        --header-height: 60px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .header .container {
        padding: 0 10px;
    }
    
    .user-dropdown {
        width: calc(100vw - 40px);
        right: -15px;
        max-width: 280px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .nav-item {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ===== ANIMATIONS - GLOBAL ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== ACCESSIBILITY ===== */
.nav-toggle:focus,
.user-avatar:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.dropdown-item:focus {
    background: rgba(102, 126, 234, 0.1);
    outline: none;
}

/* ===== DARK MODE SUPPORT ===== 
@media (prefers-color-scheme: dark) {
    .header {
        background: rgba(30, 30, 30, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .user-dropdown {
        background: #2a2a2a;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-item {
        color: #ffffff;
    }
    
    .dropdown-item:hover {
        background: rgba(102, 126, 234, 0.2);
        color: #ffffff;
    }
    
    .dropdown-name {
        color: #ffffff;
    }
    
    .dropdown-username {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .nav-menu {
        background: rgba(30, 30, 30, 0.98);
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
    .card {
        background: rgba(30, 30, 30, 0.95);
        color: #ffffff;
    }
    
    .form-control {
        background: rgba(255, 255, 255, 0.8);
        border-color: rgba(255, 255, 255, 0.2);
        color: #000000;
    }
} */

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .header {
        border-bottom: 2px solid var(--primary-color);
    }
    
    .user-dropdown {
        border: 2px solid var(--primary-color);
    }
    
    .dropdown-item:focus {
        outline: 2px solid var(--primary-color);
    }
    
    .nav-item {
        border: 2px solid transparent;
    }
    
    .nav-item.active {
        border-color: rgba(255, 255, 255, 0.5);
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Social Links Styling */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 120px;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-title {
    font-weight: 500;
}

/* Platform-specific colors on hover */
.social-twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.social-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    border-color: #dc2743;
}

.social-linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.social-github:hover {
    background: #333;
    color: white;
    border-color: #333;
}

.social-youtube:hover {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

.social-facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-website:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.social-tiktok:hover {
    background: #000;
    color: white;
    border-color: #000;
}

.social-discord:hover {
    background: #5865f2;
    color: white;
    border-color: #5865f2;
}

.social-twitch:hover {
    background: #9146ff;
    color: white;
    border-color: #9146ff;
}

.social-spotify:hover {
    background: #1db954;
    color: white;
    border-color: #1db954;
}

/* Compact layout option */
.social-links.compact {
    gap: 8px;
}

.social-links.compact .social-link {
    min-width: auto;
    padding: 8px 12px;
}

.social-links.compact .social-title {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .social-links {
        gap: 8px;
    }
    
    .social-link {
        padding: 8px 12px;
        min-width: auto;
        font-size: 13px;
    }
    
    .social-title {
        display: none;
    }
}

/* Widget no-content styling */
.no-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    color: #6c757d;
    text-align: center;
}

.no-content .icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-content .icon svg {
    width: 32px;
    height: 32px;
}

/* Alternative: Icon-only layout */
.social-links.icons-only .social-link {
    min-width: auto;
    padding: 12px;
    border-radius: 50%;
    aspect-ratio: 1;
    justify-content: center;
}

.social-links.icons-only .social-title {
    display: none;
}
.nav-badge {
    background: #e0245e;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    margin-left: 5px;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}
