/* Unikhorn Design System - Cohérent avec le site principal */

:root {
    --primary-purple: #E8D5F2;
    --secondary-pink: #FFE0EC;
    --accent-peach: #FFEFD7;
    --light-blue: #E8F3FF;
    --mint-green: #E8FFF0;
    --purple-dark: #9B7EBD;
    --pink-dark: #F4A7BA;
}

/* Gradients */
.gradient-pastel {
    background: linear-gradient(135deg, #E8D5F2 0%, #FFE0EC 25%, #FFEFD7 50%, #E8F3FF 75%, #E8FFF0 100%);
}

.gradient-soft {
    background: linear-gradient(180deg, rgba(232, 213, 242, 0.3) 0%, rgba(255, 224, 236, 0.2) 50%, rgba(255, 239, 215, 0.1) 100%);
}

.gradient-main {
    background: linear-gradient(135deg, #E8D5F2 0%, #FFE0EC 25%, #FFEFD7 50%, #E8F3FF 75%, #E8FFF0 100%);
}

/* Boutons */
.btn-gradient {
    background: linear-gradient(135deg, #9B7EBD 0%, #F4A7BA 100%);
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(155, 126, 189, 0.2);
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #8A6EAD 0%, #E497AA 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(155, 126, 189, 0.3);
}

.btn-secondary {
    background: white;
    border: 2px solid var(--purple-dark);
    color: var(--purple-dark);
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

.btn-secondary:hover {
    background: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(155, 126, 189, 0.2);
}

/* Cards */
.card-hover {
    transition: all 0.3s ease;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(155, 126, 189, 0.1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(155, 126, 189, 0.15);
}

.card-gradient {
    background: linear-gradient(135deg, rgba(232, 213, 242, 0.5) 0%, rgba(255, 224, 236, 0.3) 100%);
    border: 1px solid rgba(155, 126, 189, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

/* Typography */
.logo-text {
    background: linear-gradient(135deg, #9B7EBD 0%, #F4A7BA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 1.5rem;
}

.heading-gradient {
    background: linear-gradient(135deg, #9B7EBD 0%, #F4A7BA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
.sparkle {
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Stars effects */
.stars-container {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 8px;
    height: 8px;
    animation: twinkle 3s infinite;
}

.star:before {
    content: '✦';
    position: absolute;
    left: -4px;
    top: -4px;
    font-size: 16px;
    color: #9B7EBD;
    text-shadow: 
        0 0 6px rgba(155, 126, 189, 0.8),
        0 0 12px rgba(155, 126, 189, 0.6),
        0 0 18px rgba(155, 126, 189, 0.4);
    filter: drop-shadow(0 0 4px rgba(155, 126, 189, 0.6));
}

.star:after {
    content: '✨';
    position: absolute;
    left: -6px;
    top: -6px;
    font-size: 12px;
    color: #F4A7BA;
    text-shadow: 
        0 0 4px rgba(244, 167, 186, 0.8),
        0 0 8px rgba(244, 167, 186, 0.6),
        0 0 12px rgba(244, 167, 186, 0.4);
    filter: drop-shadow(0 0 3px rgba(244, 167, 186, 0.6));
    animation: sparkle-rotate 4s linear infinite;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(0.8);
    }
    25% { 
        opacity: 1; 
        transform: scale(1.2);
    }
    75% { 
        opacity: 0.8; 
        transform: scale(1.0);
    }
}

@keyframes sparkle-rotate {
    0% { transform: rotate(0deg) scale(0.8); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(0.8); }
}

/* Navigation */
.nav-link {
    color: #4B5563;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--purple-dark);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #9B7EBD 0%, #F4A7BA 100%);
    transition: width 0.3s ease;
}

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

/* Dropdown Navigation */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    min-width: 240px;
    box-shadow: 0 15px 35px rgba(155, 126, 189, 0.25);
    z-index: 1000;
    border-radius: 1rem;
    border: 1px solid rgba(155, 126, 189, 0.3);
    top: calc(100% + 0.5rem);
    left: 0;
    padding: 0.75rem 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-content a {
    color: #4B5563 !important;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin: 0.125rem 0.75rem;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-pink) 100%);
    color: var(--purple-dark) !important;
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(155, 126, 189, 0.2);
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

/* Subtle hover indicator instead of ugly arrow */
.dropdown-trigger:hover {
    color: var(--purple-dark);
}

.dropdown-trigger:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #9B7EBD 0%, #F4A7BA 100%);
}

/* Ensure dropdown stays visible when hovering over content */
.dropdown:hover .dropdown-trigger,
.dropdown-content:hover ~ .dropdown-trigger {
    color: var(--purple-dark);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile dropdown */
.mobile-dropdown {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-dropdown.active {
    display: block;
    max-height: 300px;
    opacity: 1;
}

.mobile-dropdown a {
    padding: 0.75rem 1rem;
    margin-left: 1rem;
    border-left: 3px solid var(--primary-purple);
    color: #6B7280 !important;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.mobile-dropdown a:hover {
    color: var(--purple-dark) !important;
    border-left-color: var(--purple-dark);
    background: rgba(232, 213, 242, 0.3);
    transform: translateX(4px);
}

/* Fix dropdown arrow rotation on mobile */
#mobile-dropdown-toggle span:last-child {
    transition: transform 0.3s ease;
}

/* Ensure proper stacking order */
.dropdown-content {
    z-index: 9999;
}

/* Code blocks */
.code-block {
    background: linear-gradient(135deg, rgba(232, 213, 242, 0.1) 0%, rgba(255, 224, 236, 0.05) 100%);
    border: 1px solid rgba(155, 126, 189, 0.2);
    border-radius: 0.5rem;
}

pre.language-javascript {
    margin: 0px !important;
    border-radius: 0.5rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.badge-purple {
    background: var(--primary-purple);
    color: var(--purple-dark);
    border-color: var(--purple-dark);
}

.badge-pink {
    background: var(--secondary-pink);
    color: var(--pink-dark);
    border-color: var(--pink-dark);
}

.badge-gradient {
    background: linear-gradient(135deg, #9B7EBD 0%, #F4A7BA 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(155, 126, 189, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.badge-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 126, 189, 0.4);
}

.badge-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Production status badge with better styling */
.status-badge {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.status-badge .status-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Responsive */
@media (prefers-reduced-motion: reduce) {
    .star, .sparkle, .float-animation {
        animation: none;
    }
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(155, 126, 189, 0.2);
    border-radius: 1rem;
}

/* Sections */
.section-gradient {
    background: linear-gradient(180deg, rgba(232, 213, 242, 0.1) 0%, transparent 100%);
    padding: 3rem 0;
}

/* Footer */
.footer-gradient {
    background: linear-gradient(135deg, #9B7EBD 0%, #F4A7BA 100%);
}