/* ============================================
   ADVERTISEMENT STYLES
   ============================================ */

/* Common ad container styles */
.ad-container {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    position: relative;
}

.ad-wrapper {
    display: inline-block;
    max-width: 100%;
}

.ad-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Header Ad */
.ad-header {
    background: linear-gradient(to bottom, #f9f9f9 0%, #ffffff 100%);
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-bottom: 0;
}

.ad-header .ad-wrapper {
    max-width: 970px;
    margin: 0 auto;
}

/* Center Ad */
.ad-center {
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 40px 20px;
    margin: 60px 0;
}

.ad-center .ad-wrapper {
    max-width: 728px;
    margin: 0 auto;
}

/* Footer Ad */
.ad-footer {
    background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-top: 0;
}

.ad-footer .ad-wrapper {
    max-width: 970px;
    margin: 0 auto;
}

/* Text link ads */
.ad-text-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.ad-text-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Ad label (optional - for disclosure) */
.ad-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ad-header,
    .ad-center,
    .ad-footer {
        padding: 15px 10px;
    }
    
    .ad-header .ad-wrapper,
    .ad-center .ad-wrapper,
    .ad-footer .ad-wrapper {
        max-width: 320px;
    }
    
    .ad-center {
        margin: 30px 0;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .ad-header .ad-wrapper,
    .ad-center .ad-wrapper,
    .ad-footer .ad-wrapper {
        max-width: 728px;
    }
}

/* Hide ads on print */
@media print {
    .ad-container {
        display: none !important;
    }
}

/* Google AdSense friendly wrapper */
.adsbygoogle {
    display: block;
    text-align: center;
    margin: 20px auto;
}

/* Prevent layout shift */
.ad-placeholder {
    min-height: 90px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ddd;
    border-radius: 8px;
}

.ad-placeholder::after {
    content: "Advertisement";
    color: #999;
    font-size: 12px;
}