/* Base Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #4F46E5, #7C3AED);
    --hover-transition: all 0.3s ease-in-out;
    --background-gradient: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 25%, #ddd6fe 50%, #c4b5fd 75%, #a5b4fc 100%);
}

body {
    background: var(--background-gradient);
    background-size: 200% 200%;
    animation: gradientBackground 15s ease infinite;
}

/* Typography */
.font-heading { 
    font-family: 'Playfair Display', serif; 
    font-weight: 700;
    letter-spacing: -0.5px;
}

.font-body { 
    font-family: 'Poppins', sans-serif; 
    letter-spacing: 0.2px;
}

/* Hero Section Enhancements */
.hero-gradient {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(124, 58, 237, 0.2));
    animation: gradientShift 15s ease infinite;
}

.app-icon {
    transform: translateY(0);
    transition: var(--hover-transition);
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.25);
}

.app-icon:hover {
    transform: translateY(-8px) rotate(3deg);
    box-shadow: 0 25px 50px -12px rgba(124, 58, 237, 0.35);
}

/* Feature Cards */
.feature-card {
    transition: var(--hover-transition);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.1), 0 10px 10px -5px rgba(124, 58, 237, 0.1);
}

.feature-icon {
    transition: var(--hover-transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Category Cards */
.category-card {
    transition: var(--hover-transition);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1);
}

.category-emoji {
    font-size: 2.5rem;
    transition: var(--hover-transition);
}

.category-card:hover .category-emoji {
    transform: scale(1.2) rotate(5deg);
}

/* Category Colors - More vibrant */
.category-amour { background: linear-gradient(135deg, #ff4d6d, #ff758f); color: white; }
.category-insolite { background: linear-gradient(135deg, #06d6a0, #1b9aaa); color: white; }
.category-celebrites { background: linear-gradient(135deg, #ffd166, #ffbd00); color: #333; }
.category-psychologie { background: linear-gradient(135deg, #9381ff, #b8b8ff); color: white; }
.category-business { background: linear-gradient(135deg, #293241, #3d5a80); color: white; }
.category-cinema { background: linear-gradient(135deg, #e71d36, #ff5c8a); color: white; }
.category-corps { background: linear-gradient(135deg, #ef476f, #f78c6b); color: white; }
.category-ia { background: linear-gradient(135deg, #5e60ce, #7400b8); color: white; }
.category-technologie { background: linear-gradient(135deg, #48cae4, #00b4d8); color: white; }
.category-alimentation { background: linear-gradient(135deg, #f77f00, #fcbf49); color: white; }
.category-espace { background: linear-gradient(135deg, #7209b7, #560bad); color: white; }
.category-nature { background: linear-gradient(135deg, #55a630, #80b918); color: white; }
.category-science { background: linear-gradient(135deg, #2ec4b6, #3a86ff); color: white; }
.category-animaux { background: linear-gradient(135deg, #83c5be, #006d77); color: white; }
.category-histoire { background: linear-gradient(135deg, #e9c46a, #f4a261); color: #333; }
.category-sports { background: linear-gradient(135deg, #118ab2, #073b4c); color: white; }

/* Premium Section */
.premium-card {
    transition: var(--hover-transition);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.premium-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 30px -12px rgba(79, 70, 229, 0.2);
    border-color: #4F46E5;
}

/* Carousel Styling - Enhanced */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.carousel {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
    overflow: visible;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    transform: scale(0.92) translateX(0);
    transition: all 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    opacity: 0.5;
    filter: blur(2px);
}

.carousel-slide.active {
    transform: scale(1) translateX(0);
    opacity: 1;
    filter: blur(0);
}

.carousel-image {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3);
    transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
    filter: brightness(1);
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.carousel-slide.active .carousel-image {
    box-shadow: 0 30px 60px rgba(79, 70, 229, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

.carousel-image:hover {
    transform: perspective(1200px) rotateY(3deg) rotateX(-2deg) scale(1.02);
    box-shadow: 0 35px 70px rgba(79, 70, 229, 0.5);
    filter: brightness(1.05);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    position: relative;
    gap: 8px;
    z-index: 30;
}

.carousel-nav::before {
    content: '';
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.3), transparent);
    width: 120px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    border-radius: 2px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(79, 70, 229, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    z-index: 1;
}

.carousel-dot:hover {
    background-color: rgba(79, 70, 229, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.6), 0 0 30px rgba(79, 70, 229, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border: 1px solid rgba(79, 70, 229, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    color: #4F46E5;
}

.carousel-button:hover {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.4);
    transform: translateY(-50%) scale(1.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.carousel-button:active {
    transform: translateY(-50%) scale(1.05);
}

.carousel-button.prev {
    left: -60px;
}

.carousel-button.next {
    right: -60px;
}


/* Animations */
@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .carousel-button.prev {
        left: 10px;
    }

    .carousel-button.next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .carousel-slide {
        min-width: 100%;
    }

    .carousel-container {
        max-width: 320px;
    }

    .carousel-image {
        max-height: 450px;
    }

    .carousel-button {
        width: 36px;
        height: 36px;
    }

    .carousel-button.prev {
        left: 5px;
    }

    .carousel-button.next {
        right: 5px;
    }

    .carousel-nav {
        margin-top: 20px;
    }
}

/* Footer */
.footer-link {
    transition: var(--hover-transition);
    position: relative;
    font-weight: 500;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: var(--primary-gradient);
    transition: var(--hover-transition);
}

.footer-link:hover::after {
    width: 100%;
}