/* VfL 1945 Dashboard - Stylesheet */

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

:root {
    --vfl-green: #65B32E;
    --vfl-green-dark: #4a8a1f;
    --vfl-green-light: rgba(101, 179, 46, 0.1);
    
    --white: #ffffff;
    --black: #000000;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --error: #ef4444;
    --error-light: rgba(239, 68, 68, 0.1);
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    --transition: 0.2s ease;
    --transition-fast: 0.15s ease;
    
    --sidebar-width: 260px;
    --header-height: 70px;
}

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

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--transition);
}

.sidebar-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.sidebar-nav {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    min-height: 0;
}

/* Scrollbar styling */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 1px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 6px;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 13px;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.nav-link.active {
    background: var(--vfl-green-light);
    color: var(--vfl-green);
}

.nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 10px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: var(--border-radius);
    transition: background var(--transition-fast);
}

.sidebar-user:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
}

.user-name {
    font-weight: 500;
    color: var(--gray-800);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 90;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-100);
    padding: 10px 16px;
    border-radius: 50px;
    width: 300px;
}

.header-search svg {
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

.header-search input {
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    width: 100%;
    font-family: inherit;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.visitor-count {
    font-size: 14px;
    color: var(--gray-500);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 24px;
    min-height: calc(100vh - var(--header-height));
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Boxes */
.box {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.box-medium {
    grid-column: span 1;
}

.box-large {
    grid-column: span 2;
}

.box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.box-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.box-title-icon {
    font-size: 18px;
}

.box-body {
    padding: 20px;
}

.box-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

/* Match Preview */
.match-preview {
    text-align: center;
}

.match-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--vfl-green);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.date-month {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.team-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    object-fit: contain;
}

.team-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-800);
}

.match-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vs-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vfl-green);
}

.vs-text {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--gray-400);
}

.match-competition {
    font-size: 13px;
    color: var(--gray-500);
}

/* Analysis */
.analysis-card {
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.analysis-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    object-fit: contain;
}

.analysis-info h4 {
    font-weight: 700;
    color: var(--gray-900);
}

.analysis-position {
    font-size: 13px;
    color: var(--gray-500);
}

.analysis-form {
    display: flex;
    gap: 4px;
}

.form-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.form-badge.win { background: var(--success); }
.form-badge.draw { background: var(--gray-400); }
.form-badge.loss { background: var(--error); }

/* Transfer Items */
.transfer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.transfer-item:last-child {
    border-bottom: none;
}

.transfer-player-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gray-100);
    object-fit: cover;
}

.transfer-info {
    flex: 1;
}

.transfer-player-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 14px;
}

.transfer-club {
    font-size: 12px;
    color: var(--gray-500);
}

.transfer-probability {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.transfer-probability-bar {
    height: 100%;
    background: var(--vfl-green);
    border-radius: 2px;
}

.transfer-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.transfer-badge.incoming { background: var(--success-light); color: var(--success); }
.transfer-badge.outgoing { background: var(--error-light); color: var(--error); }

/* News Items */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-card-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-card-content {
    padding: 12px;
    flex: 1;
}

.news-card-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 13px;
    margin: 4px 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.news-item:last-child {
    border-bottom: none;
}

.news-image {
    width: 80px;
    height: 60px;
    border-radius: var(--border-radius);
    object-fit: cover;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
}

.news-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--vfl-green);
    margin-bottom: 4px;
}

.news-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
    transition: color var(--transition-fast);
}

.news-title:hover {
    color: var(--vfl-green);
}

.news-meta {
    font-size: 12px;
    color: var(--gray-400);
}

/* FanSzene */
.fanscene-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.fanscene-item:last-child {
    border-bottom: none;
}

.fanscene-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--vfl-green);
}

.fanscene-title {
    font-weight: 600;
    color: var(--gray-900);
    margin: 4px 0;
}

.fanscene-date {
    font-size: 12px;
    color: var(--gray-500);
}

/* Sticker Items */
.sticker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.sticker-item:last-child {
    border-bottom: none;
}

.sticker-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticker-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--vfl-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.sticker-name {
    font-weight: 500;
    font-size: 14px;
}

.sticker-counts {
    display: flex;
    gap: 8px;
    font-size: 12px;
}

.sticker-have { color: var(--success); }
.sticker-need { color: var(--error); }

/* Quick Links */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.quick-link:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

.quick-link-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.quick-link-text {
    font-weight: 500;
    font-size: 13px;
    color: var(--gray-700);
}

/* Gallery Slider */
.gallery-slider {
    position: relative;
    overflow: hidden;
}

.gallery-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.gallery-caption-title {
    font-weight: 600;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.gallery-nav:hover {
    background: white;
    box-shadow: var(--shadow-lg);
}

.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--vfl-green);
    color: white;
}

.btn-primary:hover {
    background: var(--vfl-green-dark);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

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

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 14px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--vfl-green);
    box-shadow: 0 0 0 3px var(--vfl-green-light);
}

.form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--gray-500);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-error {
    background: var(--error-light);
    color: var(--error);
    border: 1px solid var(--error);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success { background: var(--success-light); color: var(--success); }
.badge-error { background: var(--error-light); color: var(--error); }
.badge-vfl { background: var(--vfl-green-light); color: var(--vfl-green); }

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.table th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gray-500);
    background: var(--gray-50);
}

.table tr:hover {
    background: var(--gray-50);
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--vfl-green);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 200;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .box-large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .site-header {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .box-medium,
    .box-large {
        grid-column: span 1;
    }
    
    .header-search {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .header-search {
        display: none;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 12px;
    }
    
    .match-vs {
        flex-direction: row;
        gap: 8px;
    }
}
