/* ============================================
    SKYSCRAPER ADS STYLES
    ============================================ */

/* Main Container Wrapper */
.ads-page-wrapper {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
    position: relative;
}

/* Left Sidebar Ad (160x flexible) */
.ads-left-sidebar {
    width: 160px;
    flex-shrink: 0;
}

.ads-skyscraper-left {
    width: 160px;
    min-height: 250px;
    max-height: 600px;
    height: auto;
    position: sticky;
    top: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f5f5f5;
    border: 1px solid rgba(0,0,0,0.05);
    animation: adsFadeInUp 0.6s ease-out;
}

.ads-skyscraper-left:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Right Sidebar Ad (160x flexible) - Symmetrical */
.ads-right-sidebar {
    width: 160px;
    flex-shrink: 0;
}

.ads-skyscraper-right {
    width: 160px;
    min-height: 250px;
    max-height: 600px;
    height: auto;
    position: sticky;
    top: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f5f5f5;
    border: 1px solid rgba(0,0,0,0.05);
    animation: adsFadeInUp 0.6s ease-out 0.1s;
    animation-fill-mode: both;
}

.ads-skyscraper-right:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Main Content Area */
.ads-main-content {
    flex: 1;
    min-width: 0;
}

/* Ad Image Wrapper - Auto Height Support */
.ads-image-wrapper {
    width: 100%;
    height: auto;
    min-height: 250px;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

/* Ad Image - Flexible Height */
.ads-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.ads-skyscraper-left:hover .ads-image,
.ads-skyscraper-right:hover .ads-image {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Bottom Gradient for Depth */
.ads-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ads-skyscraper-left:hover .ads-image-wrapper::after,
.ads-skyscraper-right:hover .ads-image-wrapper::after {
    opacity: 1;
}

/* Ad Label */
.ads-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 9px;
    padding: 4px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

/* Ad Overlay Content */
.ads-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 20px 15px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ads-skyscraper-left:hover .ads-overlay,
.ads-skyscraper-right:hover .ads-overlay {
    opacity: 1;
}

.ads-overlay h3 {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: bold;
}

.ads-overlay p {
    font-size: 11px;
    line-height: 1.4;
    margin: 0;
}

/* ============================================
    MOBILE POPUP ADS
    ============================================ */

.ads-mobile-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: adsFadeIn 0.3s ease-out;
}

.ads-mobile-popup.active {
    display: flex;
}

.ads-popup-content {
    position: relative;
    width: 90%;
    max-width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: adsSlideUp 0.4s ease-out;
}

.ads-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ads-popup-close:hover {
    background: rgba(0,0,0,0.9);
    transform: rotate(90deg);
}

.ads-popup-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.ads-popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Info Bar */
.ads-mobile-info-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #667eea;
    color: white;
    padding: 12px 15px;
    text-align: center;
    z-index: 9998;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.ads-mobile-info-bar button {
    background: white;
    color: #667eea;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    margin-top: 8px;
    cursor: pointer;
    font-size: 13px;
}

/* Animations */
@keyframes adsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

/* Desktop - Hide Mobile Elements */
@media (min-width: 1201px) {
    .ads-mobile-popup,
    .ads-mobile-info-bar {
        display: none !important;
    }
}

/* Tablet - Hide Right Sidebar Only */
@media (max-width: 1400px) {
    .ads-right-sidebar {
        display: none;
    }
    .ads-page-wrapper {
        max-width: 1200px;
    }
}

/* Tablet - Hide Left Sidebar */
@media (max-width: 1200px) {
    .ads-left-sidebar {
        display: none;
    }
    .ads-page-wrapper {
        padding: 10px;
    }
}

/* Mobile - Show Popup Instead */
@media (max-width: 1200px) {
    .ads-mobile-info-bar {
        display: block;
    }
}

/* Ensure original content is not affected */
.container,
.container-fluid {
    max-width: 100% !important;
}