:root {
    /* Color Palette - African-inspired */
    --primary-bg: #1a1d29;
    --secondary-bg: #252836;
    --tertiary-bg: #2e3142;
    --accent-color: #e74c3c;
    --accent-secondary: #f39c12;
    --accent-tertiary: #27ae60;
    
    /* Regional colors */
    --nigeria-green: #008751;
    --senegal-gold: #fdef42;
    --ghana-red: #ce1126;
    --kenya-red: #bb0000;
    
    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b3c1;
    --text-muted: #6b6e7d;
    
    /* UI colors */
    --border-color: #3a3d4e;
    --hover-bg: #363948;
    --active-bg: #404354;
    
    /* Gradients */
    --gradient-warm: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    --gradient-cool: linear-gradient(135deg, #3498db 0%, #9b59b6 100%);
    --gradient-earth: linear-gradient(135deg, #27ae60 0%, #f39c12 100%);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--secondary-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    padding: var(--spacing-md) 0;
}

.nav-section {
    margin-bottom: var(--spacing-lg);
}

.nav-section-title {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

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

.nav-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    gap: var(--spacing-sm);
}

.nav-item:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--active-bg);
    color: var(--text-primary);
    font-weight: 500;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
}

.nav-icon {
    font-size: 1.1rem;
}

.badge {
    margin-left: auto;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.sidebar-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.btn-profile {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--tertiary-bg);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-profile:hover {
    background: var(--hover-bg);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    background: var(--primary-bg);
}

.content-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    backdrop-filter: blur(10px);
}

.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    background: var(--tertiary-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    gap: var(--spacing-sm);
}

.search-icon {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--tertiary-bg);
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.btn-icon:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 2px solid var(--secondary-bg);
}

/* Content Sections */
.content-section {
    padding: var(--spacing-xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.view-all {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.view-all:hover {
    color: var(--accent-color);
}

.btn-refresh {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refresh:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    border-color: var(--hover-bg);
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.featured-card {
    background: var(--secondary-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 1;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.featured-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.featured-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-weight: 600;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    padding: 0 var(--spacing-xl) var(--spacing-xl);
}

.content-column {
    min-width: 0;
}

/* Content List */
.content-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.content-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--secondary-bg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.content-item:hover {
    background: var(--hover-bg);
    transform: translateX(4px);
}

.content-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--tertiary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.content-info {
    flex: 1;
    min-width: 0;
}

.content-title {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.content-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.load-more {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-top: var(--spacing-md);
    transition: all 0.2s ease;
}

.load-more:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

/* Feed List */
.feed-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.feed-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--secondary-bg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-item:hover {
    background: var(--hover-bg);
}

.feed-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--tertiary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feed-info {
    flex: 1;
    min-width: 0;
}

.feed-title {
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.feed-chevron {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Discovery Grid */
.discovery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.discovery-card {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.discovery-card:hover {
    transform: scale(1.05);
}

.discovery-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(231,76,60,0.3), rgba(243,156,18,0.3));
    z-index: 1;
}

.discovery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discovery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-sm);
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    z-index: 2;
}

/* Match List */
.match-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.match-item {
    padding: var(--spacing-md);
    background: var(--secondary-bg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.match-item:hover {
    background: var(--hover-bg);
}

.match-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.match-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.match-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.match-score {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--accent-secondary);
    font-weight: 600;
}

.match-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.match-action {
    margin-top: var(--spacing-sm);
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--secondary-bg);
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: var(--spacing-xl);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tertiary-bg);
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--hover-bg);
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .content-section {
        padding: var(--spacing-md);
    }
    
    .content-grid {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--tertiary-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-bg);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--secondary-bg) 25%, var(--tertiary-bg) 50%, var(--secondary-bg) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}
