/**
 * Vibegame - Styles communs
 * Utilisé par la page d'accueil et les pages de jeu
 */

body {
    background: radial-gradient(circle at top, #1a0f33 0%, #0d0820 40%, #050210 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.glass-card {
    background: rgba(30, 20, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.prose-content {
    line-height: 1.8;
}

.prose-content p {
    margin-bottom: 1rem;
}

/* Moving Stars Background avec Parallaxe */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.parallax-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes spaceTravel {
    from { transform: translateY(-10px); }
    to { transform: translateY(100vh); }
}

.gradient-text {
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-title {
    background: linear-gradient(to right, #f83600 0%, #f9d423 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Unstable Game Card Styles */
.unstable-card {
    position: relative;
    border: 2px solid transparent;
    background:
        linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.07)) padding-box,
        linear-gradient(45deg, #a855f7, #ec4899, #8b5cf6, #a855f7) border-box;
}

.unstable-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.5);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

/* ===========================================
   Navigation globale
   =========================================== */

/* Espacement pour header fixe */
body.has-fixed-nav {
    padding-top: 64px;
}

/* Liens navigation desktop */
.nav-link {
    color: #cbd5e1; /* slate-300 */
    font-weight: 600;
    padding: 0.5rem 0;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #a855f7, #ec4899);
    border-radius: 1px;
}

/* Liens navigation mobile */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.mobile-nav-link.active {
    background-color: rgba(168, 85, 247, 0.2);
    color: white;
}

/* Bouton Ko-fi dans header */
.kofi-btn {
    background: linear-gradient(to right, #f97316, #ef4444);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.kofi-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

/* ===========================================
   Filtres page Jeux
   =========================================== */

.filter-select {
    background: rgba(30, 20, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:hover,
.filter-select:focus {
    border-color: rgba(168, 85, 247, 0.5);
    outline: none;
}

.filter-input {
    background: rgba(30, 20, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.filter-input:hover,
.filter-input:focus {
    border-color: rgba(168, 85, 247, 0.5);
    outline: none;
}

.filter-input::placeholder {
    color: #64748b;
}
