/* Base */
.baads-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.baads-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.baads-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Slight rounding for premium feel */
}

/* Badge */
.baads-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
    letter-spacing: 0.5px;
}

/* --- Top Zone (Hybrid) --- */
.baads-top-layout {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.baads-main-banner {
    flex: 1; /* Takes remaining space (70-75%) */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.baads-main-banner-empty {
    flex: 1;
    background: #f0f0f1;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    border-radius: 8px;
}

.baads-weather-widget {
    flex: 0 0 280px; /* Fixed width for Widget (~25-30%) */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.baads-weather-content {
    text-align: center;
}

.baads-city {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.baads-temp-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.baads-temp {
    font-size: 32px;
    font-weight: 700;
    color: #0073aa; /* Example Brand Color */
}

.baads-icon {
    font-size: 28px;
}

.baads-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    display: block;
}

.baads-forecast-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 10px;
}

.baads-forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #555;
}

.baads-forecast-day .icon {
    font-size: 14px;
    margin: 2px 0;
}

/* --- Grid Zone (3 Columns) --- */
.baads-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.baads-grid-slot {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9; /* Placeholder bg while loading */
    min-height: 150px; /* Prevent collapse */
}

/* Responsive */
@media (max-width: 768px) {
    .baads-top-layout {
        flex-direction: column;
    }
    
    .baads-weather-widget {
        flex: auto;
        width: 100%;
        margin-top: 10px;
    }

    .baads-grid-layout {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}

/* --- In-Feed Ad (Between Posts) --- */
.baads-infeed-layout {
    max-width: 300px;
    margin: 20px auto;
    text-align: center;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
}

.baads-infeed-layout .baads-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.baads-infeed-layout .baads-badge {
    font-size: 8px;
    padding: 1px 4px;
}

/* Auto-injected In-Feed (inside Elementor Posts Widget) */
.baads-infeed-auto {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f1f2 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.baads-infeed-auto .baads-link {
    display: block;
    width: 100%;
}

.baads-infeed-auto .baads-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 6px;
    transition: transform 0.2s;
}

.baads-infeed-auto .baads-img:hover {
    transform: scale(1.02);
}

.baads-infeed-auto .baads-badge {
    position: static;
    display: inline-block;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.5);
    font-size: 9px;
    padding: 2px 8px;
}

/* --- In-Feed GRID (Full Width every 8 posts) --- */
.baads-infeed-grid {
    width: 100%;
    max-width: 100%;
    margin: 40px 0;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 8px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .baads-infeed-grid {
        padding: 10px;
        margin: 20px 0;
    }
}    padding: 2px 8px;
}

/* --- In-Content Ad (Middle of Article) --- */
.baads-incontent-layout {
    max-width: 728px;
    margin: 30px auto;
    text-align: center;
    clear: both;
}

.baads-incontent-layout .baads-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.baads-incontent-layout .baads-badge {
    background: rgba(0, 0, 0, 0.5);
    font-size: 9px;
}

/* Auto-injected version has extra spacing */
.baads-incontent-auto {
    margin: 40px auto;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Responsive for In-Content */
@media (max-width: 768px) {
    .baads-incontent-layout {
        max-width: 100%;
        margin: 20px 0;
    }
    
    .baads-infeed-layout {
        max-width: 100%;
    }
}
