/**
 * RéuniLoc - Styles Premium
 * À ajouter dans assets/css/ ou intégrer dans le CSS principal
 */

/* ===================================
   BADGES PREMIUM
   =================================== */

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    margin-left: 10px;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.3);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.premium-badge-offer {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Badge sur les cartes d'annonces */
.reuniloc-offer-card.premium {
    border: 2px solid #FFD700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.reuniloc-offer-card.premium::before {
    content: "⭐ Premium";
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
}

/* ===================================
   LIENS RÉSEAUX SOCIAUX PREMIUM
   =================================== */

.premium-author-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #FFF9E6, #FFFBF0);
    border-radius: 8px;
    border: 1px solid #FFE5B4;
}

.premium-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 18px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.premium-link:hover {
    border-color: #FFD700;
    background: #FFF9E6;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    color: #000;
}

.premium-link:active {
    transform: translateY(-1px);
}

/* Icônes spécifiques par réseau */
.premium-link[href*="facebook"] {
    border-color: #1877F2;
}

.premium-link[href*="facebook"]:hover {
    background: #E7F3FF;
    border-color: #1877F2;
}

.premium-link[href*="instagram"] {
    border-color: #E4405F;
}

.premium-link[href*="instagram"]:hover {
    background: #FFE9EE;
    border-color: #E4405F;
}

.premium-link[href*="linkedin"] {
    border-color: #0A66C2;
}

.premium-link[href*="linkedin"]:hover {
    background: #E8F2FC;
    border-color: #0A66C2;
}

.premium-link[href*="twitter"],
.premium-link[href*="x.com"] {
    border-color: #1DA1F2;
}

.premium-link[href*="twitter"]:hover,
.premium-link[href*="x.com"]:hover {
    background: #E8F5FD;
    border-color: #1DA1F2;
}

/* ===================================
   SECTION PREMIUM DANS ANNONCE
   =================================== */

.premium-section {
    background: #FFFEF7;
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.15);
}

.premium-section h3 {
    color: #B8860B;
    margin-top: 0;
    font-size: 18px;
}

/* ===================================
   CARTES DE PACKS
   =================================== */

.pack-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #e0e0e0, #e0e0e0);
    transition: background 0.3s ease;
}

.pack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pack-card.free::before {
    background: linear-gradient(90deg, #2196F3, #64B5F6);
}

.pack-card.standard::before {
    background: linear-gradient(90deg, #9C27B0, #BA68C8);
}

.pack-card.advanced::before {
    background: linear-gradient(90deg, #4CAF50, #81C784);
}

.pack-card.premium {
    border-color: #FFD700;
    background: linear-gradient(135deg, #FFFEF7 0%, #FFF9E6 100%);
}

.pack-card.premium::before {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.pack-card.current {
    border-color: #4CAF50;
    background: #E8F5E9;
}

/* Prix du pack */
.pack-price {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pack-price .amount {
    font-size: 38px;
    font-weight: bold;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pack-card.premium .pack-price .amount {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pack-price .period {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

/* Features du pack */
.pack-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.pack-features li {
    padding: 10px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pack-features li:last-child {
    border-bottom: none;
}

.pack-features li::before {
    content: '✓';
    color: #4CAF50;
    font-weight: bold;
    margin-right: 8px;
}

.pack-card.premium .pack-features li::before {
    content: '⭐';
}

/* ===================================
   BARRES DE PROGRESSION CRÉDITS
   =================================== */

.credit-bar {
    margin: 15px 0;
}

.credit-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.credit-label span {
    color: #666;
    font-weight: 500;
}

.credit-label strong {
    font-size: 16px;
    color: #2196F3;
}

.progress-bar {
    height: 12px;
    background: #E0E0E0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer-progress 2s infinite;
}

@keyframes shimmer-progress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Couleur de progression selon le niveau */
.progress-fill.low {
    background: linear-gradient(90deg, #F44336, #EF5350);
}

.progress-fill.medium {
    background: linear-gradient(90deg, #FF9800, #FFB74D);
}

/* ===================================
   NOTICES ET MESSAGES
   =================================== */

.reuniloc-notice {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.reuniloc-notice.success {
    background: #E8F5E9;
    border-color: #4CAF50;
    color: #2E7D32;
}

.reuniloc-notice.error {
    background: #FFEBEE;
    border-color: #F44336;
    color: #C62828;
}

.reuniloc-notice.info {
    background: #E3F2FD;
    border-color: #2196F3;
    color: #1565C0;
}

.reuniloc-notice.warning {
    background: #FFF3E0;
    border-color: #FF9800;
    color: #E65100;
}

.reuniloc-notice h3 {
    margin-top: 0;
    font-size: 18px;
}

/* ===================================
   BOUTONS PREMIUM
   =================================== */

.button-premium {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #000 !important;
    border: none !important;
    padding: 12px 30px !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.button-premium:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4) !important;
}

.button-premium:active {
    transform: translateY(0) !important;
}

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

@media (max-width: 768px) {
    .premium-author-links {
        flex-direction: column;
    }
    
    .premium-link {
        width: 100%;
        justify-content: center;
    }
    
    .pack-card {
        margin-bottom: 20px;
    }
    
    .pack-price .amount {
        font-size: 28px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-section,
.premium-author-links {
    animation: fadeInUp 0.5s ease;
}

/* ===================================
   TOOLTIPS PREMIUM
   =================================== */

.premium-tooltip {
    position: relative;
    cursor: help;
}

.premium-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.premium-tooltip::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.premium-tooltip:hover::after,
.premium-tooltip:hover::before {
    opacity: 1;
}

/* ===================================
   STATISTIQUES ADMIN
   =================================== */

.reuniloc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-item.premium {
    background: linear-gradient(135deg, #FFF9E6, #FFE5B4);
    border-color: #FFD700;
}

.stat-item.total {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border-color: #4CAF50;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   SWITCH TOGGLE
   =================================== */

.reuniloc-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.reuniloc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.reuniloc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.reuniloc-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .reuniloc-slider {
    background-color: #2196F3;
}

input:checked + .reuniloc-slider:before {
    transform: translateX(26px);
}

/* Mode premium pour le switch */
.premium-switch input:checked + .reuniloc-slider {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}
