/* Styles pour les publicités natives dans les résultats de recherche - extrait de ads_search_native.blade.php */

.ad-native-container {
    margin: 1.5rem 0;
    width: 100%;
}

.ad-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.ad-native-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(45, 125, 50, 0.1);
    transition: all 0.3s ease;
}

.ad-native-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(45, 125, 50, 0.15);
}

/* Indicateur visuel pour les publicités cliquables */
.ad-native-card[onclick] {
    cursor: pointer;
}

.ad-native-card[onclick]:hover {
    border-color: #1976D2;
}

.ad-native-card[onclick] .ad-native-image {
    position: relative;
}

.ad-native-card[onclick] .ad-native-image::after {
    content: '🔗 Cliquez pour visiter';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(25, 118, 210, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.ad-native-card[onclick]:hover .ad-native-image::after {
    opacity: 1;
}

@media (max-width: 767px) {
    .ad-native-card[onclick] .ad-native-image::after {
        content: '🔗 Cliquez';
        font-size: 0.7rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Styles pour placeholder */
.ad-placeholder-card {
    border: 2px dashed #ccc;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    opacity: 0.8;
}

.ad-placeholder-card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(45, 125, 50, 0.1);
}

.ad-placeholder-badge {
    background: #999;
}

.ad-placeholder-image {
    min-height: 350px;
}

@media (min-width: 768px) {
    .ad-placeholder-image {
        min-height: 350px;
    }
}

.ad-native-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ad-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ad-native-header h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0;
}

.ad-native-body p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Hint "Voir en grand" pour pubs sans lien */
.js-ad-native-fullscreen {
    position: relative;
}
.ad-fs-hint {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    backdrop-filter: blur(2px);
}
.js-ad-native-fullscreen:hover .ad-fs-hint {
    opacity: 1;
}
@media (max-width: 767px) {
    .ad-fs-hint { opacity: 1; }
}

/* Image native - Format placeholder */
.ad-native-image-content {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Desktop : 1150x350px (ratio ~3.29:1, format horizontal) */
@media (min-width: 768px) {
    .ad-native-image {
        max-width: 1150px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .ad-native-image-content {
        width: 100%;
        max-width: 1150px;
        height: 350px;
        object-fit: cover;
    }
}

/* Mobile : 1150x350px (ratio ~3.29:1, format horizontal) */
@media (max-width: 767px) {
    .ad-native-header h3 {
        font-size: 1rem;
    }
    
    .ad-native-card {
        padding: 1rem;
    }
    
    .ad-native-image {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .ad-native-image-content {
        width: 100%;
        max-width: 100%;
        height: 350px;
        object-fit: cover;
    }
}

