/* ==========================================
   CSS Variables & Base Styles
   ========================================== */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --accent-gold: #f59e0b;
    --twitter-blue: #1da1f2;
    --instagram-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --youtube-red: #ff0000;
    --border-radius: 16px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--text-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.navbar-brand .logo {
    height: 60px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.navbar-brand .logo:hover {
    transform: scale(1.05);
}

.btn-donate {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    color: var(--text-white);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.02" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(99, 102, 241, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-section h1 {
    color: var(--text-white);
    text-shadow: 2px 4px 16px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.hero-cta .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.hero-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

.hero-cta .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--text-white);
}

.hero-cta .btn-outline-light:hover {
    background: var(--text-white);
    color: var(--primary-color);
    border-color: var(--text-white);
    transform: translateY(-3px);
}

/* ==========================================
   Section Utilities
   ========================================== */
.section-padding {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

/* ==========================================
   Episode Cards
   ========================================== */
.episode-card {
    background: var(--text-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.episode-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.episode-image {
    position: relative;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

.episode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.episode-card:hover .episode-image img {
    transform: scale(1.1);
}

.episode-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--accent-gold), #f97316);
    color: var(--text-white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.episode-content {
    padding: 2.5rem;
}

.episode-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.episode-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.episode-description {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.episode-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.episode-meta .badge {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==========================================
   Content Cards
   ========================================== */
.content-card {
    padding: 2rem;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.icon-box i {
    font-size: 2.5rem;
    color: var(--text-white);
}

.bg-dark .section-title {
    color: var(--text-white);
}

.image-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.image-card img {
    transition: transform 0.6s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

/* ==========================================
   Buttons
   ========================================== */
.btn-youtube {
    background: var(--youtube-red);
    color: var(--text-white);
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.3);
}

.btn-youtube:hover {
    background: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.4);
    color: var(--text-white);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--text-white);
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(188, 24, 136, 0.3);
}

.btn-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(188, 24, 136, 0.4);
    color: var(--text-white);
}

/* ==========================================
   Twitter Feed
   ========================================== */
.twitter-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tweet-card {
    background: var(--text-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--twitter-blue);
}

.tweet-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.tweet-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tweet-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.tweet-info {
    flex: 1;
}

.tweet-author {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

.tweet-time {
    color: var(--text-light);
    font-size: 0.85rem;
}

.tweet-icon {
    font-size: 1.5rem;
    color: var(--twitter-blue);
}

.tweet-content p {
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================
   Gallery
   ========================================== */
.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-text {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   Newsletter
   ========================================== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
}

.newsletter-icon i {
    font-size: 4rem;
    background: var(--instagram-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-form .input-group {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    border: none;
}

.newsletter-form .btn {
    padding: 1.2rem 2rem;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    font-weight: 600;
}

.newsletter-form .btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* ==========================================
   Background Gradients
   ========================================== */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--darker-bg);
    color: var(--text-white);
    padding: 4rem 0 2rem;
}

.footer-logo {
    max-width: 200px;
    filter: brightness(1.2);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.3rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
    color: var(--text-white);
}

.btn-donate-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    padding: 0.9rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-donate-footer:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    color: var(--text-white);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0 1.5rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 991px) {
    .section-padding {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-logo {
        max-width: 300px;
    }
    
    .episode-content {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-cta .btn {
        padding: 0.85rem 1.8rem;
        font-size: 1rem;
    }
    
    .episode-title {
        font-size: 1.5rem;
    }
    
    .episode-subtitle {
        font-size: 1.2rem;
    }
    
    .newsletter-card {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================
   Smooth Scrolling
   ========================================== */
html {
    scroll-behavior: smooth;
}

/* ==========================================
   Loading Animation
   ========================================== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f0f0f0 8%, #f8f8f8 18%, #f0f0f0 33%);
    background-size: 1000px 100%;
}
