/* ================================================================
   STORYBANK - CSS PREMIUM POUR PAGE STORIES
   Design hyper-professionnel avec effets avancés
   ================================================================ */

/* Variables CSS Premium */
:root {
    --premium-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #4facfe 100%);
    --premium-gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --premium-shadow-light: 0 10px 40px rgba(0,0,0,0.08);
    --premium-shadow-heavy: 0 30px 80px rgba(0,0,0,0.15);
    --premium-shadow-glow: 0 15px 40px rgba(102, 126, 234, 0.2);
    --premium-blur: blur(30px);
    --premium-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fond subtil sans animation excessive */
.stories-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(79, 172, 254, 0.02) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

/* Header élégant et discret */
.stories-page-header {
    position: relative;
    z-index: 10;
}

.stories-page-header::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--premium-gradient-2);
    border-radius: 32px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stories-page-header:hover::after {
    opacity: 0.1;
}

/* Barre de recherche simple et élégante */
.search-form {
    position: relative;
}

.search-input {
    background: rgba(255,255,255,0.9);
    backdrop-filter: var(--premium-blur);
    transition: var(--premium-transition);
}

.search-input:focus {
    background: rgba(255,255,255,0.95);
    box-shadow: 
        0 0 0 2px rgba(102, 126, 234, 0.3),
        0 4px 12px rgba(0,0,0,0.1);
}

/* Filtres avec effet de glassmorphisme */
.filters-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: var(--premium-blur);
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.filters-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--premium-gradient-1);
    opacity: 0.03;
    pointer-events: none;
}

/* Cartes d'histoires élégantes */
.story-card {
    position: relative;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Effet holographique sur le titre */
.story-title {
    position: relative;
    background: var(--premium-gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Badge de catégorie simple */
.story-category {
    background: var(--premium-gradient-2);
    position: relative;
    transition: all 0.2s ease;
}

.story-category:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* Stats discrets */
.story-stats span {
    position: relative;
    padding: 6px 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}

.story-stats span:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Effet de révélation du contenu */
.story-excerpt {
    position: relative;
    overflow: hidden;
}

.story-excerpt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(transparent, rgba(255,255,255,0.9));
    pointer-events: none;
}

/* Pagination avec effet de vague */
.pagination-link {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
}

.pagination-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--premium-gradient-2);
    transition: left 0.3s ease;
    z-index: -1;
}

.pagination-link:hover::before {
    left: 0;
}

.pagination-link:hover {
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--premium-shadow-glow);
}

/* Animation d'entrée simple */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-card {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

/* Délais d'animation plus rapides */
.story-card:nth-child(1) { animation-delay: 0.05s; }
.story-card:nth-child(2) { animation-delay: 0.1s; }
.story-card:nth-child(3) { animation-delay: 0.15s; }
.story-card:nth-child(4) { animation-delay: 0.2s; }
.story-card:nth-child(5) { animation-delay: 0.25s; }
.story-card:nth-child(6) { animation-delay: 0.3s; }
.story-card:nth-child(7) { animation-delay: 0.35s; }
.story-card:nth-child(8) { animation-delay: 0.4s; }
.story-card:nth-child(9) { animation-delay: 0.45s; }
.story-card:nth-child(10) { animation-delay: 0.5s; }
.story-card:nth-child(11) { animation-delay: 0.55s; }
.story-card:nth-child(12) { animation-delay: 0.6s; }

/* Effet de survol des liens */
.story-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.story-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.story-link:hover::after {
    opacity: 1;
}

/* Badge "Nouveau" simple */
.new-badge {
    position: relative;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Message "Aucun résultat" stylisé */
.no-results {
    background: rgba(255,255,255,0.9);
    backdrop-filter: var(--premium-blur);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.no-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--premium-gradient-1);
    opacity: 0.05;
    pointer-events: none;
}

.no-results i {
    font-size: 4rem;
    background: var(--premium-gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

/* Responsive Premium */
@media (max-width: 768px) {
    .story-card {
        margin-bottom: 20px;
    }
    
    .story-card:nth-child(n) {
        animation-delay: calc(var(--i, 0) * 0.1s);
    }
}

/* Effet de focus premium pour l'accessibilité */
*:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Performance - GPU Acceleration */
.story-card,
.search-form,
.filters-container,
.pagination-link {
    will-change: transform, opacity;
    transform: translateZ(0);
} 