/**
 * Ad Styling
 * This file contains styles for all ad placements across the website
 */

/* General ad container styling */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

/* Ad label styling */
.ad-label {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.05);
    color: #999;
    font-size: 10px;
    padding: 2px 5px;
    text-transform: uppercase;
    z-index: 10;
}

/* Specific ad size containers */
.ad-300x250 {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

.ad-728x90 {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

.ad-160x600 {
    width: 160px;
    height: 600px;
}

.ad-160x300 {
    width: 160px;
    height: 300px;
}

.ad-468x60 {
    width: 468px;
    height: 60px;
    max-width: 100%;
}

.ad-320x50 {
    width: 320px;
    height: 50px;
    max-width: 100%;
}

/* Responsive ad container */
.ad-responsive {
    width: 100%;
    min-height: 90px;
    display: block;
}

.ad-responsive .mobile-ad {
    display: none;
}

/* Side ads styling */
.side-ads-container {
    position: relative;
    width: 100%;
}

.left-side-ad,
.right-side-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 160px;
    height: 600px;
}

.left-side-ad {
    left: 10px;
}

.right-side-ad {
    right: 10px;
}

/* Native ad styling */
.ad-native {
    width: 100%;
    min-height: 100px;
    background-color: transparent;
    border: none;
    margin: 30px auto;
}

/* Media queries for responsive design */
@media (max-width: 1400px) {
    .left-side-ad,
    .right-side-ad {
        display: none;
    }
}

@media (max-width: 768px) {
    .ad-728x90 {
        width: 100%;
        max-width: 468px;
        height: auto;
    }
    
    .ad-468x60 {
        width: 100%;
        max-width: 468px;
        height: auto;
    }
    
    .ad-responsive .desktop-ad {
        display: none;
    }
    
    .ad-responsive .mobile-ad {
        display: block;
    }
}

@media (max-width: 480px) {
    .ad-300x250 {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    
    .ad-responsive {
        min-height: 50px;
    }
}
