/* Ad System Styles - Public Pages */

/* Hide all ad slots on all pages */
[data-visibility-slot] { display: none !important; }

/* Slot Wrapper - works with visibility-slots.css */
.visibility-slot-wrapper {
    transition: opacity 0.3s ease;
}

.visibility-slot-wrapper:empty {
    display: none;
}

/* Image Banner (server-side rendered) */
.cekici-image-ad {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
    aspect-ratio: var(--ad-desktop-aspect);
    max-width: var(--ad-desktop-max);
}

.cekici-image-ad:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.cekici-image-ad img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Placeholder Ad (monetized CTA) */
.cekici-placeholder-ad {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: #fff;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: var(--ad-desktop-aspect);
    max-width: var(--ad-desktop-max);
}

.cekici-placeholder-ad:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Banner Reservation Ad (premium) */
.banner-reservation-ad {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* Rotation Stage */
[data-ad-rotation-stage] {
    width: 100%;
}

/* Ad Rotation Slot */
[data-ad-rotation-slot] {
    width: 100%;
}

/* Hide empty ad slots on homepage to prevent layout shift */
.homepage-ad-row .visibility-slot-wrapper:has(.cekici-placeholder-ad:only-child) {
    min-height: 0;
    margin: 0;
    padding: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .cekici-image-ad,
    .cekici-placeholder-ad {
        border-radius: 8px;
        aspect-ratio: var(--ad-mobile-aspect, var(--ad-desktop-aspect));
        max-width: var(--ad-mobile-max, var(--ad-desktop-max));
    }
}
