@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

:root {
    --color-midnight: #222222; /* Softer dark gray */
    --color-midnight-light: #333333;
    --color-amber: #F4F4F4;
    --color-coral: #7A7A7A;
    --color-text-main: #4A4A4A;
    --color-text-muted: #737373;
    --color-bg-light: #F9F9F8; /* Soft off-white */
    --color-bg-white: #FCFBF9; /* Lighter cream white */
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--color-bg-white);
    color: var(--color-midnight);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
}

/* Custom Animations */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 10s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Hide scrollbar for carousel */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Nav Styling */
.nav-transparent {
    background-color: transparent;
}

.nav-scrolled {
    background: linear-gradient(135deg, var(--color-midnight) 0%, var(--color-midnight-light) 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-link {
    color: #BFBFBF;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-transparent .nav-link {
    color: #333333;
}

.nav-transparent .nav-link:hover, .nav-transparent .nav-link.active {
    color: #CA2791 !important;
}

.nav-transparent-dark {
    background-color: transparent;
}

.nav-transparent-dark .nav-link {
    color: #E5E7EB; /* light gray */
}

.nav-transparent-dark .nav-link:hover, .nav-transparent-dark .nav-link.active {
    color: #CA2791 !important;
}

.nav-transparent-dark .nav-menu-icon {
    color: white;
}

.nav-scrolled .nav-link {
    color: #BFBFBF;
}

.nav-scrolled .nav-link:hover, .nav-scrolled .nav-link.active {
    color: #CA2791 !important;
}

.nav-scrolled .nav-menu-icon {
    color: white;
}

.nav-transparent .nav-menu-icon {
    color: #333333;
}

.nav-logo, .footer-logo {
    transition: filter 0.3s ease;
}

.nav-scrolled .nav-logo, .nav-transparent-dark .nav-logo {
    filter: brightness(0) invert(1);
}

.site-footer .footer-logo {
    filter: brightness(0) invert(1);
}

/* Hero Section */
.hero-section {
    background-color: var(--color-midnight);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.4) 100%);
    z-index: 10;
}

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

/* Buttons */
.btn-primary {
    background-color: #0F0F0F;
    color: #F4F4F4;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: linear-gradient(to right, #9333ea, #ec4899);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #0F0F0F;
    font-weight: 600;
    border: 2px solid #0F0F0F;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #0F0F0F;
    color: #F4F4F4;
    transform: translateY(-2px);
}

/* Cards */
.content-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-badge {
    color: var(--color-coral);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-title a {
    color: var(--color-midnight);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--color-coral);
}

.card-excerpt {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-amber);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

/* Footer */
.site-footer {
    background-color: var(--color-midnight);
    color: white;
    padding: 4rem 0 2rem;
}

/* Podcast Hero Carousel */
.podcast-hero {
    background-color: #FDF9F1; /* Soft warm background like the mockup */
    overflow: hidden;
    padding: 6rem 0;
}

.carousel-container {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
    padding: 2rem 0;
}

.carousel-item {
    width: 200px;
    height: 280px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.5s ease;
}

/* Curve calculations (pseudo 3D bend) */
.carousel-item:nth-child(1) { transform: rotateY(25deg) scale(0.85) translateZ(-150px) translateX(60px); opacity: 0.7; }
.carousel-item:nth-child(2) { transform: rotateY(15deg) scale(0.95) translateZ(-50px) translateX(20px); opacity: 0.9; }
.carousel-item:nth-child(3) { transform: translateZ(0) scale(1.05); z-index: 10; opacity: 1; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.carousel-item:nth-child(4) { transform: rotateY(-15deg) scale(0.95) translateZ(-50px) translateX(-20px); opacity: 0.9; }
.carousel-item:nth-child(5) { transform: rotateY(-25deg) scale(0.85) translateZ(-150px) translateX(-60px); opacity: 0.7; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-item {
        width: 140px;
        height: 200px;
    }
    .carousel-item:nth-child(1), .carousel-item:nth-child(5) { display: none; }
}

/* Video Marquee (Infinite Loop, Pause on Hover) */
.video-marquee-container {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.video-marquee {
    display: flex;
    animation: marquee-scroll 40s linear infinite;
    width: max-content;
}

.video-marquee:hover {
    animation-play-state: paused;
}

.video-card {
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .video-card {
        width: 220px;
    }
    .video-marquee {
        animation-duration: 20s;
    }
}
