/* =============================================
   CCA Morena — Ad Display Styles (Responsive)
   ============================================= */

/* ---------------------------------------------
   General Ad Styles
   --------------------------------------------- */
.ad-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.ad-item {
    transition: all 0.3s ease;
}

.ad-item:hover {
    opacity: 0.95;
}

/* ---------------------------------------------
   Homepage Banner
   --------------------------------------------- */
.homepage-banner {
    margin: 20px 0;
    text-align: center;
}

.homepage-banner .banner-image {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.homepage-banner .banner-image:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: scale(1.01);
}

.banner-placeholder {
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
    padding: 30px 20px;
    border-radius: 12px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-placeholder span {
    font-size: 18px;
    font-weight: 600;
    color: #1a237e;
}

/* ---------------------------------------------
   Sidebar Ads
   --------------------------------------------- */
.sidebar-ads {
    margin: 20px 0;
}

.sidebar-ad-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.sidebar-ad-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.sidebar-ad-item .ad-label {
    padding: 8px 12px 0;
    text-align: right;
}

.sidebar-ad-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------------------------------------------
   Sponsored Posts
   --------------------------------------------- */
.sponsored-posts {
    margin: 20px 0;
}

.sponsored-posts .sponsored-header {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.sponsored-post {
    background: #fff8e1;
    border: 1px solid #ffe0b2;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.sponsored-post:hover {
    box-shadow: 0 4px 20px rgba(255,111,0,0.1);
    transform: translateX(5px);
}

.sponsored-post .sponsored-badge {
    font-size: 11px;
    color: #ff6f00;
    font-weight: 600;
}

.sponsored-post .sponsored-title {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a2e;
}

.sponsored-post .sponsored-subtitle {
    font-size: 13px;
    color: #666;
}

/* ---------------------------------------------
   Bottom Banner
   --------------------------------------------- */
.bottom-banner {
    margin: 30px 0;
    text-align: center;
}

.bottom-banner .banner-image {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ---------------------------------------------
   Header Ad
   --------------------------------------------- */
.header-ad {
    text-align: center;
    padding: 5px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
}

.header-ad .ad-label {
    font-size: 9px;
    color: #ccc;
}

.header-ad img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    display: inline-block;
}

/* ---------------------------------------------
   Footer Ad
   --------------------------------------------- */
.footer-ad {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
}

.footer-ad .ad-label {
    font-size: 9px;
    color: #ccc;
}

.footer-ad img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    display: inline-block;
    border-radius: 8px;
}

/* ---------------------------------------------
   Responsive Styles
   --------------------------------------------- */

/* Tablets & Mobile */
@media (max-width: 768px) {
    .homepage-banner .banner-image {
        border-radius: 8px;
    }
    
    .banner-placeholder {
        padding: 20px 15px;
        min-height: 60px;
    }
    
    .banner-placeholder span {
        font-size: 15px;
    }
    
    .sidebar-ad-item {
        border-radius: 8px;
    }
    
    .sponsored-post {
        padding: 12px 15px;
    }
    
    .sponsored-post .sponsored-title {
        font-size: 14px;
    }
    
    .bottom-banner .banner-image {
        border-radius: 8px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .homepage-banner {
        margin: 12px 0;
    }
    
    .banner-placeholder {
        padding: 15px 12px;
        min-height: 50px;
    }
    
    .banner-placeholder span {
        font-size: 13px;
    }
    
    .sidebar-ad-item {
        margin-bottom: 12px;
    }
    
    .sponsored-post {
        padding: 10px 12px;
    }
    
    .sponsored-post .sponsored-title {
        font-size: 13px;
    }
    
    .sponsored-post .sponsored-subtitle {
        font-size: 12px;
    }
    
    .bottom-banner {
        margin: 20px 0;
    }
    
    .header-ad img {
        max-height: 40px;
    }
    
    .footer-ad img {
        max-height: 50px;
    }
    
    .ad-label {
        font-size: 8px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .banner-placeholder {
        padding: 12px 10px;
        min-height: 40px;
    }
    
    .banner-placeholder span {
        font-size: 11px;
    }
    
    .sponsored-post {
        padding: 8px 10px;
    }
    
    .sponsored-post .sponsored-title {
        font-size: 12px;
    }
}