/**
 * Styles publics pour LVDD Ads Manager
 */

.lvdd-ad-container {
    margin: 20px 0;
    text-align: center;
    clear: both;
}

.lvdd-ad-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.lvdd-ad-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.lvdd-ad-link:hover {
    opacity: 0.9;
}

/* Publicité texte */
.lvdd-ad-text {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
    max-width: 600px;
    margin: 20px auto;
}

.lvdd-ad-text h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
}

.lvdd-ad-text p {
    color: #666;
    line-height: 1.6;
}

.lvdd-ad-text .lvdd-ad-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.lvdd-ad-text .lvdd-ad-link:hover {
    background: #005177;
    opacity: 1;
}

/* Popup Modal */
.lvdd-ad-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lvdd-ad-popup-overlay.lvdd-show {
    opacity: 1;
    visibility: visible;
}

.lvdd-ad-popup-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lvdd-ad-popup-overlay.lvdd-show .lvdd-ad-popup-content {
    transform: scale(1);
}

.lvdd-ad-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lvdd-ad-popup-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lvdd-ad-popup-content .lvdd-ad-container {
    margin: 0;
    padding: 20px;
}

.lvdd-ad-popup-content .lvdd-ad-image {
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .lvdd-ad-container {
        margin: 15px 0;
    }
    
    .lvdd-ad-text {
        padding: 15px;
        margin: 15px 10px;
    }
    
    .lvdd-ad-popup-content {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .lvdd-ad-popup-content .lvdd-ad-container {
        padding: 15px;
    }
}
