/* Aksoy Banner - Frontend Styles */
/* Version: 2.1 */
/* Author: Serhat AKSOY */
/* Author URI: https://www.aksoysoftware.com/ */
/* %100 Mobile Responsive - Optimized for all devices */

#banners-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.banner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

.close-banner {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}

.close-banner:hover {
    background: rgba(0, 0, 0, 0.9);
}

.close-banner:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.banner-link {
    width: 100%;
    display: block;
}

.banner1 {
    display: flex !important;
}

.banner2 {
    display: none !important;
}

/* Tablet ve mobil cihazlar */
@media (max-width: 1024px) {
    #banners-container {
        padding: 0 10px;
    }
}

/* Mobil cihazlar */
@media (max-width: 768px) {
    .banner1 {
        display: none !important;
    }

    .banner2 {
        display: flex !important;
    }
    
    .close-banner {
        width: 28px;
        height: 28px;
        font-size: 20px;
        top: 6px;
        right: 6px;
    }
    
    /* Mobil için ekstra güvence */
    #banners-container .banner2 {
        display: flex !important;
    }
    
    #banners-container .banner1 {
        display: none !important;
    }
    
    .banner img {
        max-width: 100%;
        height: auto;
    }
}

/* Küçük mobil cihazlar */
@media (max-width: 480px) {
    #banners-container {
        padding: 0 5px;
    }
    
    .close-banner {
        width: 24px;
        height: 24px;
        font-size: 18px;
        top: 4px;
        right: 4px;
    }
    
    .banner {
        box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    }
}

/* Çok küçük mobil cihazlar */
@media (max-width: 360px) {
    .close-banner {
        width: 22px;
        height: 22px;
        font-size: 16px;
        top: 3px;
        right: 3px;
    }
}

/* Touch cihazlar için optimizasyon */
@media (hover: none) and (pointer: coarse) {
    .close-banner {
        min-width: 44px;
        min-height: 44px;
    }
}
