/* Styles pour le plugin VOD Rental */

/* Contenu verrouillé */
.vod-locked-content {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.vod-locked-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.vod-lock-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

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

.vod-locked-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.vod-locked-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.vod-purchase-info {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.vod-purchase-info p {
    margin: 10px 0;
    font-size: 1.2rem;
}

.vod-purchase-info strong {
    color: #ffd700;
    font-size: 1.4rem;
}

.vod-purchase-button {
    margin-top: 25px;
}

.vod-purchase-button .button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vod-purchase-button .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
}

/* Notice d'accès actif - Style identique au paywall */
.vod-access-notice {
    display: flex;
    padding: var(--Gouttire, 24px) 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--Gouttire, 24px);
    align-self: stretch;
    border-radius: var(--Trs-petit, 6px);
    background: var(--Button-achat, #F9F0CD);
    color: #000;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vod-access-notice.success {
    background: var(--Button-achat, #F9F0CD);
    border: 2px solid #28a745;
    color: #000;
}

.vod-access-notice.soutien {
    background: var(--Button-achat, #F9F0CD);
    border: 2px solid #ff6b6b;
    color: #000;
}

.vod-access-notice h3 {
    margin: 0;
    font-family: "Neue Haas Grotesk Text Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    text-align: center;
    color: #000;
}

.vod-access-notice p {
    margin: 0;
    font-family: "Neue Haas Grotesk Text Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    text-align: center;
    color: #000;
}

/* Compte à rebours */
.vod-countdown {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.vod-countdown .time-remaining {
    color: #ffd700;
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .vod-locked-content {
        padding: 30px 15px;
        margin: 15px 0;
    }
    
    .vod-lock-icon {
        font-size: 3rem;
    }
    
    .vod-locked-content h3 {
        font-size: 1.5rem;
    }
    
    .vod-purchase-button .button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Animation d'entrée */
.vod-locked-content {
    animation: slideInUp 0.6s ease-out;
}

.vod-access-notice.animated {
    animation: fadeInUp 0.6s ease-out;
}

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

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

/* Effet de brillance */
.vod-locked-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Styles pour les métabox admin */
.vod-meta-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.vod-meta-box label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.vod-meta-box input[type="checkbox"] {
    margin-right: 8px;
}

.vod-meta-box input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.vod-meta-box .description {
    font-style: italic;
    color: #666;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Styles pour les messages d'erreur */
.vod-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #c62828;
    margin: 15px 0;
}

/* Styles pour les messages de succès */
.vod-success {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #2e7d32;
    margin: 15px 0;
}

/* Options d'accès VOD */
.vod-access-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.vod-option {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.vod-option:hover {
    transform: translateY(-5px);
}

.vod-option h4 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.vod-option p {
    margin: 0 0 20px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.vod-option .btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.vod-option .btn-rouge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.vod-option .btn-rouge:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.vod-option .btn-primary {
    background: linear-gradient(45deg, #0073aa, #005a87);
    color: white;
}

.vod-option .btn-primary:hover {
    background: linear-gradient(45deg, #005a87, #0073aa);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.vod-option .btn-gris {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
}

.vod-option .btn-gris:hover {
    background: linear-gradient(45deg, #495057, #6c757d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Responsive pour les options */
@media (max-width: 768px) {
    .vod-access-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vod-option {
        padding: 15px;
    }
    
    .vod-option h4 {
        font-size: 1.1rem;
    }
    
    .vod-option .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Interface "Mes VOD" */
.vod-my-videos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.vod-user-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.vod-user-header h2 {
    margin: 0 0 20px 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.vod-user-info {
    font-size: 1.1rem;
}

.vod-soutien-badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
}

.vod-purchased-videos,
.vod-soutien-videos,
.vod-available-videos {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.vod-purchased-videos h3,
.vod-soutien-videos h3,
.vod-available-videos h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    color: #333;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
}

.vod-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.vod-video-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #0073aa;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vod-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.vod-video-card.purchased {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
}

.vod-video-card.soutien {
    border-left-color: #ff6b6b;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffe8e8 100%);
}

.vod-video-card.available {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff8e8 100%);
}

.vod-video-header {
    margin-bottom: 15px;
}

.vod-video-header h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.4;
}

.vod-video-type {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.vod-video-details {
    margin-bottom: 20px;
}

.vod-video-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.vod-video-details strong {
    color: #333;
}

.vod-soutien-access {
    background: #ff6b6b;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.vod-video-actions {
    text-align: center;
}

.vod-video-actions .button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.vod-video-actions .button-primary {
    background: linear-gradient(45deg, #0073aa, #005a87);
    color: white;
}

.vod-video-actions .button-primary:hover {
    background: linear-gradient(45deg, #005a87, #0073aa);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.vod-video-actions .button-secondary {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
}

.vod-video-actions .button-secondary:hover {
    background: linear-gradient(45deg, #495057, #6c757d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.vod-no-videos {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.vod-login-required {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.vod-login-required h3 {
    color: #0073aa;
    margin-bottom: 20px;
}

.vod-login-required .button {
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vod-login-required .button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Lecteur vidéo VOD */
.vod-video-player {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.vod-video-player h3 {
    margin: 0 0 20px 0;
    color: #333;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
}

.vod-video-content {
    margin-bottom: 20px;
}

.vod-access-info {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.vod-access-info p {
    margin: 0;
    color: #155724;
    font-weight: 600;
}

/* Responsive pour l'interface "Mes VOD" */
@media (max-width: 768px) {
    .vod-my-videos-container {
        padding: 15px;
    }
    
    .vod-user-header {
        padding: 20px;
    }
    
    .vod-user-header h2 {
        font-size: 2rem;
    }
    
    .vod-videos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vod-video-card {
        padding: 15px;
    }
}

/* Paywall VOD - Design identique au shortcode existant */
#vod-paywall-section {
    display: flex;
    padding: var(--Gouttire, 24px) 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--Gouttire, 24px);
    align-self: stretch;
    border-radius: var(--Trs-petit, 6px);
    background: var(--Button-achat, #F9F0CD);
    color: #000;
    margin: 20px 0;
}

#vod-paywall-section .chapo {
    font-family: "Neue Haas Grotesk Text Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    text-align: center;
}

#vod-paywall-section .paywall-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
#vod-paywall-section .chapo img{
    width: 24px;
    height: 24px;
    vertical-align: sub !important;
    margin-right: 6px;
}

#vod-paywall-section .btn-rouge {
    display: flex;
    height: 30px;
    padding: var(--Trs-petit, 6px) var(--Gouttire, 24px);
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: var(--Trs-petit, 6px);
    background: var(--Rouge-Tenoua, #E4001B) !important;
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 15px;
}

#vod-paywall-section .btn-rouge:hover {
    box-shadow: 3px 4px 0 0 #000, 0 0 6px 0 rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

#vod-paywall-section .btn-gris {
    display: flex;
    height: 30px;
    padding: var(--Trs-petit, 6px) var(--Gouttire, 24px);
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: var(--Trs-petit, 6px);
    background: var(--Gris-moyen, #D2D6DB);
    color: #000 !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 15px;
}

#vod-paywall-section .btn-gris:hover {
    box-shadow: 3px 4px 0 0 #000, 0 0 6px 0 rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

/* Variables CSS pour la compatibilité */
:root {
    --Gouttire: 24px;
    --Trs-petit: 6px;
    --Button-achat: #F9F0CD;
    --Rouge-Tenoua: #E4001B;
    --Gris-moyen: #D2D6DB;
}

/* Responsive pour le paywall */
@media (max-width: 768px) {
    #vod-paywall-section {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    #vod-paywall-section .chapo {
        font-size: 18px;
    }
    
    #vod-paywall-section .paywall-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    #vod-paywall-section .btn-rouge,
    #vod-paywall-section .btn-gris {
        width: 100%;
        justify-content: center;
    }
}
