/**
 * MON ESPACE TEASER MENU - Style pour inciter à l'inscription
 * Design premium avec effets de verrouillage et call-to-action
 */

/* Bouton principal avec highlight */
.nav-link-highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
    color: white !important;
    border-radius: 8px;
    padding: 10px 16px !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-link-highlight:hover::before {
    left: 100%;
}

.nav-link-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.nav-link-highlight .new-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    font-weight: 700;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

/* Animation pulse pour le badge GRATUIT */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Menu teaser personnalisé */
.mon-espace-teaser-menu {
    min-width: 380px;
    max-width: 420px;
    padding: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
}

/* Header du teaser */
.teaser-header {
    padding: 20px 20px 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid #3b82f6;
}

/* Divider */
.teaser-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 12px 0;
}

/* Items du teaser */
.teaser-item {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    margin-bottom: 0;
}

/* Forcer les icônes à la bonne taille */
.teaser-item > i:first-child {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Container du contenu texte */
.teaser-item > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

/* Titres et descriptions dans le teaser */
.teaser-item .nav-dropdown-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #1e293b;
    margin: 0;
}

.teaser-item .nav-dropdown-desc {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #64748b;
    margin: 0;
}

.teaser-item:hover {
    background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
    border-left-color: #3b82f6;
    padding-left: 24px;
}

/* Item verrouillé */
.locked-item {
    opacity: 0.85;
}

.locked-item:hover {
    opacity: 1;
}

/* Icône de verrouillage */
.teaser-lock {
    margin-left: auto;
    color: #94a3b8;
    font-size: 14px;
    transition: all 0.3s ease;
}

.teaser-item:hover .teaser-lock {
    color: #3b82f6;
    transform: scale(1.1);
}

/* Item featured avec effet spécial */
.featured-item {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-left: 3px solid #8b5cf6;
    position: relative;
}

.featured-item::before {
    content: '⭐';
    position: absolute;
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
    font-size: 16px;
    animation: star-shine 2s infinite;
}

@keyframes star-shine {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateY(-50%) scale(1.2); }
}

.featured-item:hover {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-left-color: #7c3aed;
}

/* Badges dans les items */
.badge-free,
.badge-new,
.badge-feature {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    display: inline-block;
}

.badge-free {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.badge-new {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
    animation: pulse 2s infinite;
}

.badge-feature {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e3a8a;
    border: 1px solid #60a5fa;
}

/* CTA principal */
.nav-dropdown-cta {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin: 12px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-dropdown-cta:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    border-color: #60a5fa;
}

.nav-dropdown-cta strong {
    flex: 1;
}

.nav-dropdown-cta i.fa-arrow-right {
    transition: transform 0.3s ease;
}

.nav-dropdown-cta:hover i.fa-arrow-right {
    transform: translateX(4px);
}

/* Footer du teaser */
.teaser-footer {
    padding: 12px 20px 16px;
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
}

.teaser-footer a {
    text-decoration: none;
    transition: all 0.2s ease;
}

.teaser-footer a:hover {
    text-decoration: underline;
}

/* Icônes colorées */
.teaser-item i.fas:first-child {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* Titres et descriptions */
.teaser-item .nav-dropdown-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.teaser-item .nav-dropdown-desc {
    color: #64748b;
    font-size: 12px;
}

/* Effet shimmer sur le menu au hover */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .mon-espace-teaser-menu {
        min-width: 320px;
        max-width: 340px;
    }
    
    .teaser-header h3 {
        font-size: 14px;
    }
    
    .teaser-header p {
        font-size: 12px;
    }
    
    .teaser-item {
        padding: 12px 16px;
    }
    
    .nav-dropdown-cta {
        font-size: 14px;
        padding: 14px 16px;
        margin: 10px 12px;
    }
}

/* Dark mode support */
[data-theme="dark"] .mon-espace-teaser-menu {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .teaser-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

[data-theme="dark"] .teaser-item {
    color: #f1f5f9;
}

[data-theme="dark"] .teaser-item:hover {
    background: linear-gradient(90deg, #1e293b 0%, #334155 100%);
}

[data-theme="dark"] .featured-item {
    background: linear-gradient(135deg, #581c87 0%, #6b21a8 100%);
}

[data-theme="dark"] .featured-item:hover {
    background: linear-gradient(135deg, #6b21a8 0%, #7e22ce 100%);
}

[data-theme="dark"] .teaser-footer {
    background: #0f172a;
    color: #94a3b8;
}

[data-theme="dark"] .nav-dropdown-cta {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}
