/* ============================================
   OPTION 1 : BOUTON ÉTENDU AVEC TEXTE (RECOMMANDÉ)
   ============================================ */

.add-story-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 60px;
    height: 60px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #FFB94A 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(247, 183, 49, 0.4);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.add-story-btn .btn-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 0.3s ease, opacity 0.3s ease;
}

.add-story-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(247, 183, 49, 0.5);
    min-width: 200px;
}

.add-story-btn:hover .btn-text {
    max-width: 200px;
    opacity: 1;
}

.add-story-btn i {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.add-story-btn:hover i {
    transform: rotate(90deg);
}

/* Animation de pulsation au chargement pour attirer l'attention */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(247, 183, 49, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(247, 183, 49, 0.7);
    }
}

.add-story-btn.first-visit {
    animation: pulse-glow 2s ease-in-out 3;
}

/* Mobile : toujours visible avec texte */
@media (max-width: 768px) {
    .add-story-btn {
        min-width: 180px;
        height: 50px;
        font-size: 16px;
        bottom: 70px;
        right: 15px;
    }
    
    .add-story-btn .btn-text {
        max-width: 150px;
        opacity: 1;
    }
    
    .add-story-btn i {
        font-size: 18px;
    }
}


/* ============================================
   OPTION 2 : BOUTON AVEC TOOLTIP ENRICHI
   ============================================ */

.add-story-btn-v2 {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background-color 0.3s;
}

.add-story-btn-v2:hover {
    transform: scale(1.1);
    background-color: var(--primary-color);
}

/* Tooltip enrichi */
.add-story-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.add-story-btn-v2:hover .add-story-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.add-story-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.add-story-tooltip h4 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-story-tooltip p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.add-story-tooltip .tooltip-icon {
    color: var(--secondary-color);
    font-size: 18px;
}


/* ============================================
   OPTION 3 : BOUTON AVEC BADGE "NOUVEAU"
   ============================================ */

.add-story-btn-v3 {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background-color 0.3s;
}

.add-story-btn-v3::before {
    content: 'NOUVEAU';
    position: absolute;
    top: -5px;
    right: -10px;
    background: linear-gradient(135deg, #FF6B6B, #FF3838);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 59, 59, 0.4);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Label flottant */
.add-story-label {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), #2a8e90);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(54, 177, 179, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.add-story-label::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #2a8e90;
}

.add-story-btn-v3:hover .add-story-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ============================================
   OPTION 4 : BOUTON AVEC ANIMATION ATTENTION
   ============================================ */

.add-story-btn-v4 {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background-color 0.3s;
}

/* Cercle ondulant pour attirer l'attention */
.add-story-btn-v4::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    transform: translate(-50%, -50%) scale(1);
    animation: ripple 2s ease-out infinite;
    opacity: 0;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.add-story-btn-v4:hover {
    transform: scale(1.1);
    background-color: var(--primary-color);
}

/* Label permanent en desktop */
@media (min-width: 769px) {
    .add-story-permanent-label {
        position: absolute;
        bottom: 75px;
        right: 0;
        background: white;
        color: var(--text-color);
        padding: 10px 16px;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        white-space: nowrap;
        pointer-events: none;
    }
    
    .add-story-permanent-label::after {
        content: '';
        position: absolute;
        bottom: -6px;
        right: 20px;
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid white;
    }
}


/* ============================================
   RESPONSIVE COMMUN
   ============================================ */

@media (max-width: 480px) {
    .add-story-btn,
    .add-story-btn-v2,
    .add-story-btn-v3,
    .add-story-btn-v4 {
        bottom: 70px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
