/* Mwaby News - Modern African Music Blog Styles */

:root {
    /* African-inspired color palette */
    --primary: #F59E0B;
    --primary-dark: #D97706;
    --secondary: #DC2626;
    --accent: #F97316;
    --success: #10B981;
    
    /* Neutral colors */
    --dark: #1F2937;
    --light: #F9FAFB;
    --muted: #6B7280;
    --border: #E5E7EB;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #F59E0B, #F97316);
    --gradient-secondary: linear-gradient(180deg, #DC2626, #B91C1C);
    --gradient-hero: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(220, 38, 38, 0.8));
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.3);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark theme variables */
[data-bs-theme="dark"] {
    --primary: #FCD34D;
    --primary-dark: #F59E0B;
    --dark: #F9FAFB;
    --light: #1F2937;
    --muted: #9CA3AF;
    --border: #374151;
    --shadow-glow: 0 0 40px rgba(252, 211, 77, 0.4);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Typography */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-gradient-text {
    background: linear-gradient(45deg, #FCD34D, #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Navbar */
.custom-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

[data-bs-theme="dark"] .custom-navbar {
    background: rgba(31, 41, 55, 0.95);
}

.navbar-toggler {
    border: none;
    background: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Search Bar */
.search-bar {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

[data-bs-theme="dark"] .search-bar {
    background: #374151;
    border-color: #4B5563;
}

/* Buttons */
.btn-hero {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-spring);
}

.btn-hero:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.category-chip {
    background: var(--light);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.category-chip:hover,
.category-chip.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 10vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    
}

.african-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(245, 158, 11, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.1) 2px, transparent 2px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Statistics Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #FCD34D, #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-card-small {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.stat-number-small {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .stat-card-small {
    background: #374151;
    border-color: #4B5563;
}

/* Music Cards */
.music-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

[data-bs-theme="dark"] .music-card {
    background: #374151;
    border-color: #4B5563;
}

/* Video Components */
.video-card {
    cursor: pointer;
}

.video-thumbnail,
.featured-video-img {
    border-radius: 12px 12px 0 0;
    transition: var(--transition);
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
}

.video-overlay:hover {
    opacity: 1;
}

.video-overlay-small {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover .video-overlay-small {
    opacity: 1;
}

.btn-play-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-spring);
}

.btn-play-large:hover {
    transform: scale(1.1);
}

.btn-play-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-duration {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* News Components */
.news-featured-img {
    height: 250px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.news-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Artist Components */
.artist-card .artist-image {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.artist-card:hover .artist-image {
    transform: scale(1.1);
}

.artist-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    animation: bounce 2s infinite;
}

.scroll-dot {
    width: 4px;
    height: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    margin-top: 8px;
    animation: scroll-dot 2s infinite;
}

/* Footer */
.footer {
    position: relative;
    background: var(--dark);
    color: white;
}

[data-bs-theme="dark"] .footer {
    background: #111827;
}

.footer-background {
    position: absolute;
    inset: 0;
}

.footer-pattern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.05;
}

.newsletter-section {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.footer-link {
    color: #9CA3AF;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
}

/* Advertisement Spaces */
.ad-space {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.ad-placeholder {
    background: #E5E7EB;
    border-radius: 8px;
    padding: 2rem;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-bs-theme="dark"] .ad-space {
    background: #374151;
    border-color: #4B5563;
}

[data-bs-theme="dark"] .ad-placeholder {
    background: #4B5563;
}

/* Badge styles */
.bg-accent {
    background-color: var(--accent) !important;
}

/* Text utilities */
.text-light-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-light-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40%, 43% {
        transform: translateX(-50%) translateY(-10px);
    }
    70% {
        transform: translateX(-50%) translateY(-5px);
    }
    90% {
        transform: translateX(-50%) translateY(-2px);
    }
}

@keyframes scroll-dot {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.animate-scale-in {
    animation: scaleIn 0.4s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section .display-1 {
        font-size: 2.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section .display-1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
}