/* Responsive Ad Styles for Florida Times */

/* Base ad container styles */
.ad-container {
    margin: 0rem 0 1.5rem 0;
    display: flex;
    justify-content: center;
    width: 100%;
}
 
 
.ad-wrapper {
    position: relative;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.ad-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
}

.ad-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ad-label {
    font-size: 0.6rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.5rem;
    background-color: #e9ecef;
    text-align: center;
    font-weight: 500;
    pointer-events: none;
}

.ad-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    position: relative;
    cursor: pointer;
}
.responsive-iframe {
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
  }
.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6c757d;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ad-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ad-placeholder small {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Header Ad (Leaderboard) */
.ad-header {
    margin: 1rem 0;
}

.ad-leaderboard {
    width: 728px;
    height: 90px;
}

/* Sidebar Ad (Medium Rectangle) */
.ad-sidebar {
    /* margin: 0rem 0; */
    margin: 0rem 0 1rem 0;
}

.ad-rectangle {
    width: 300px;
    height: 250px;
}

/* In-Article Ad (Responsive) */
.ad-in-article {
    margin: 2.5rem 0;
    clear: both;
}

.ad-responsive {
    width: 100%;
    max-width: 728px;
    height: auto;
    /* height: 250px;
    min-height: 200px; */
}

/* Footer Ad */
.ad-footer {
    margin: 2rem 0 1rem 0;
}

/* Mobile Sticky Bottom Ad */
.ad-mobile-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    display: none; /* Show only on mobile */
}

.ad-mobile-sticky .ad-wrapper {
    background-color: #ffffff;
    border-radius: 0;
    border: none;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.ad-mobile-banner {
    width: 320px;
    height: 50px;
}

.ad-close {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    z-index: 1001;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
}

.ad-close:hover {
    background-color: #dc3545;
    color: white;
}

/* Article List Ad (Native) */
.ad-article-list {
    margin: 3rem 0;
}

.ad-native {
    width: 100%;
    max-width: 600px;
    height: 200px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* Related Articles Ad */
.ad-related {
    margin: 1.5rem 0;
}

.ad-sidebar-small {
    width: 300px;
    height: 150px;
}

/* Responsive breakpoints */
@media (max-width: 767px) {
    /* Mobile adjustments */
    .ad-leaderboard {
        width: 320px;
        height: 50px;
    }
    
    .ad-rectangle {
        width: 300px;
        height: 250px;
    }
    
    .ad-responsive {
        width: 100%;
        max-width: 320px;
        height: 200px;
    }
    
    .ad-sidebar-small {
        width: 100%;
        max-width: 300px;
        height: 150px;
    }
    
    .ad-native {
        max-width: 100%;
        height: 180px;
    }
    
    /* Show mobile sticky ad */
    .ad-mobile-sticky {
        display: flex;
    }
    
    /* Hide desktop ads on mobile if needed */
    .ad-header {
        margin: 0.5rem 0;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet adjustments */
    .ad-leaderboard {
        width: 728px;
        height: 90px;
    }
    
    .ad-responsive {
        max-width: 728px;
        height: 250px;
    }
}

@media (min-width: 1024px) {
    /* Desktop adjustments */
    .ad-leaderboard {
        width: 728px;
        height: 90px;
    }
    
    .ad-responsive {
        width: 100%;
        max-width: 728px;
        max-height: 250px;
    }
}

/* Integration with article layout */
.article-layout .ad-in-article {
    width: 100%;
    margin: 3rem 0;
}

/* Sidebar integration */
.related-articles-sidebar .ad-sidebar,
.related-articles-sidebar .ad-related {
    width: 100%;
    height: auto;
    display: block;
}

.related-articles-sidebar .ad-rectangle,
.related-articles-sidebar .ad-sidebar-small {
    width: 100%;
    max-width: 320px;
}

/* Header integration */
.site-header + .ad-header {
    margin-top: 0;
}

/* Footer integration */
.site-footer .ad-footer {
    margin-bottom: 0;
}
 

/* Animation for mobile sticky */
.ad-mobile-sticky {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Print styles - hide ads */
@media print {
    .ad-container {
        display: none !important;
    }
} 