/* 
 * ads_sidebar_widget.css - Ads Sidebar Widget Component Styles
 * Reusable ads sidebar widget for displaying advertisements
 */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --ads-border-radius: 0px;
    --ads-gap: 20px;
    --ads-primary-color: #126E51;
    --ads-text-primary: #2c3e50;
    --ads-text-secondary: #6c757d;
    --ads-border-color: rgba(0, 0, 0, 0.1);
}

/* ===== ADS SIDEBAR WIDGET CONTAINER ===== */
.ads-sidebar-widget {
    width: 100%;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.ads-sidebar-container {
    display: flex;
    flex-direction: column;
    gap: var(--ads-gap);
}

/* ===== AD BANNER STYLES ===== */
.ads-banner {
    width: 100%;
}

.ads-placeholder {
    border-radius: var(--ads-border-radius);
    color: white;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ads-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ads-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.ads-placeholder span {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ads-placeholder small {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ===== AD PLACEHOLDER VARIANTS ===== */

/* Primary Ad (Green theme) */
.ads-placeholder--primary {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-color: #81c784;
    color: #2e7d32;
}

/* Secondary Ad (Blue theme) */
.ads-placeholder--secondary {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #90caf9;
    color: #1976d2;
    min-height: 600px;
}

/* Tertiary Ad (Purple theme) */
.ads-placeholder--tertiary {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-color: #ce93d8;
    color: #7b1fa2;
}

/* Extra Ad (Orange theme) */
.ads-placeholder--extra {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #ffb74d;
    color: #f57c00;
    min-height: 100px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* All screen sizes - ads always stack vertically */
.ads-sidebar-container {
    display: flex;
    flex-direction: column;
    gap: var(--ads-gap);
}

.ads-banner {
    width: 100%;
}

/* Large screens - sidebar positioning */
@media (min-width: 992px) {
    .ads-sidebar-widget {
        position: sticky;
        top: 20px;
        height: fit-content;
    }
    
    .ads-placeholder--secondary {
        min-height: 600px;
    }
}

/* Medium and small screens - ads move below content */
@media (max-width: 991.98px) {
    .ads-sidebar-widget {
        position: static;
        margin-top: 0;
    }
    
    .ads-placeholder--secondary {
        min-height: 250px;
    }
}

/* ===== UTILITY CLASSES ===== */

/* Hide ads on mobile */
.ads-sidebar-widget--mobile-hidden {
    display: block;
}

@media (max-width: 992px) {
    .ads-sidebar-widget--mobile-hidden {
        display: none;
    }
}

/* Always show ads (even on mobile) */
.ads-sidebar-widget--always-show {
    display: block;
}

@media (max-width: 768px) {
    .ads-sidebar-widget--always-show .ads-sidebar-container {
        flex-direction: column;
    }
    
    .ads-sidebar-widget--always-show .ads-banner {
        width: 100%;
    }
} 