/**
 * Centralized CSS for Ads
 * File: ads/assets/ads.css
 * 
 * Include this file in your main CSS or add to app.css
 */

/* ===== HEADER ADS ===== */
.ad-header {
    background: var(--bg-dark, #2c3e50);
    padding: 20px 0;
    margin: 20px 0;
    border-radius: 8px;
}

.ad-content {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.banner.ads960250 {
    background: var(--bg-secondary, #ecf0f1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* ===== SIDEBAR ADS ===== */
.sidebar-ad-container {
    margin: 20px 0;
    text-align: center;
}

.ad-banner-sidebar {
    background: var(--bg-secondary, #ecf0f1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color, #ddd);
}

/* ===== CONTENT ADS ===== */
.content-ad-container {
    margin: 30px 0;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color, #eee);
    border-bottom: 1px solid var(--border-color, #eee);
}

.ad-banner-content {
    background: var(--bg-secondary, #ecf0f1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* ===== FOOTER ADS ===== */
.footer-ad-container {
    margin: 20px 0;
    text-align: center;
    padding: 20px 0;
    background: var(--bg-light, #f8f9fa);
    border-radius: 8px;
}

.ad-banner-footer {
    background: var(--bg-secondary, #ecf0f1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* ===== COMMON AD STYLES ===== */
.ad-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.ad-text {
    padding: 20px;
    font-size: 14px;
    color: var(--text-muted, #6c757d);
    text-align: center;
    font-weight: 500;
}

.ad-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark, #2c3e50);
    margin: 0 0 10px 0;
}

.ad-text p {
    font-size: 13px;
    color: var(--text-muted, #6c757d);
    margin: 0;
    line-height: 1.4;
}

.ad-text p strong {
    color: var(--primary-color, #007bff);
    font-weight: 600;
}

.ad-text p small {
    font-size: 11px;
    color: var(--text-muted, #6c757d);
    font-style: italic;
    display: block;
    margin-top: 5px;
}

.ad-text-link {
    color: var(--text-muted, #6c757d);
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    transition: color 0.3s ease;
}

.ad-text-link:hover {
    color: var(--primary-color, #007bff);
    text-decoration: none;
}

.ad-text-link:hover h4 {
    color: var(--primary-color, #007bff);
}

/* ===== RESPONSIVE ADS ===== */
@media (max-width: 768px) {
    .banner.ads960250 {
        height: 60px !important;
        max-width: 100%;
    }
    
    .ad-banner-sidebar {
        max-width: 100%;
    }
    
    .ad-banner-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 60px;
        padding: 10px;
        box-sizing: border-box;
    }
    
    .ad-banner-footer {
        max-width: 100%;
        height: 60px !important;
    }
    
    /* Content ads responsive */
    .content-ad-container {
        margin: 20px 0;
        padding: 15px 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .content-ad-container .ad-banner-content {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 60px;
        padding: 10px;
        box-sizing: border-box;
    }
}

@media (max-width: 576px) {
    .banner.ads960250 {
        height: 50px !important;
    }
    
    .ad-banner-content {
        height: auto !important;
        min-height: 50px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 8px;
        box-sizing: border-box;
    }
    
    .ad-banner-footer {
        height: 50px !important;
    }
    
    .ad-header {
        padding: 15px 0;
        margin: 15px 0;
    }
    
    .content-ad-container {
        margin: 15px 0;
        padding: 10px 5px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .content-ad-container .ad-banner-content {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 50px;
        padding: 8px;
        box-sizing: border-box;
    }
    
    /* Text ads responsive */
    .ad-text {
        padding: 10px;
        font-size: 12px;
    }
    
    .ad-text h4 {
        font-size: 14px;
        margin: 0 0 8px 0;
    }
    
    .ad-text p {
        font-size: 11px;
        line-height: 1.3;
    }
}

@media (max-width: 400px) {
    .content-ad-container {
        margin: 10px 0;
        padding: 8px 3px;
    }
    
    .content-ad-container .ad-banner-content {
        padding: 6px;
        min-height: 45px;
    }
    
    .ad-text {
        padding: 8px;
        font-size: 11px;
    }
    
    .ad-text h4 {
        font-size: 13px;
        margin: 0 0 6px 0;
    }
    
    .ad-text p {
        font-size: 10px;
        line-height: 1.2;
    }
}

/* ===== AD LABELS ===== */
.ad-label {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
    text-transform: uppercase;
}

.ad-label-top {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    left: auto !important;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 10;
    font-weight: bold;
}

/* ===== HOVER EFFECTS ===== */
.ad-banner-sidebar:hover,
.ad-banner-content:hover,
.ad-banner-footer:hover,
.banner.ads960250:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* ===== LOADING STATE ===== */
.ad-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
