/* Left panel */
.leftbanner {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
    height: 540px;
    z-index: 9999;
    transition: all 0.3s ease;
}

/* Right panel */
.rightbanner {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
    height: 540px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.panel-content {
    width: 100%;
    height: 100%;
    background: center / contain no-repeat;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
}

/* banner 1 */
.leftbanner .panel-content {
    background-image: url('/assets/advertisement-shock.png');
}

/* banner 2 */
.rightbanner .panel-content {
    background-image: url('/assets/advertisement-phaycumasa.gif');
}

.panel-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    z-index: 10;
}

.panel-close:hover {
    background: rgba(255, 0, 0, 0.85);
    transform: scale(1.1);
}

.panel-content:hover .panel-close {
    opacity: 1;
}

@keyframes float {
    0%,100% { transform: translateY(-50%); }
    50% { transform: translateY(-50%) translateX(5px); }
}

.leftbanner.animated {
    animation: float 3s ease-in-out infinite;
}

.rightbanner.animated {
    animation: float 3s ease-in-out infinite reverse;
}

/* Tablete (portrait și landscape) */
@media (max-width: 1200px) and (min-width: 769px) {
    .leftbanner,
    .rightbanner {
        width: 160px;
        height: 360px;
        left: 10px;
    }
    
    .rightbanner {
        right: 10px;
        left: auto;
    }
}

/* Mobile - Panourile devin mai mici și se poziționează în colțuri */
@media (max-width: 768px) {
    .leftbanner {
        width: 80px;
        height: 180px;
        left: 5px;
        top: auto;
        bottom: 80px;
        transform: none;
    }
    
    .rightbanner {
        width: 80px;
        height: 180px;
        right: 5px;
        left: auto;
        top: auto;
        bottom: 80px;
        transform: none;
    }
    
    .panel-close {
        width: 20px;
        height: 20px;
        top: 4px;
        right: 4px;
        font-size: 12px;
    }
    
    /* Dezactivează animația pe mobile pentru performanță */
    .leftbanner.animated,
    .rightbanner.animated {
        animation: none;
    }
}

/* Mobile foarte mic */
@media (max-width: 480px) {
    .leftbanner {
        width: 70px;
        height: 160px;
        left: 3px;
        bottom: 70px;
    }
    
    .rightbanner {
        width: 70px;
        height: 160px;
        right: 3px;
        bottom: 70px;
    }
}

.hidden {
    opacity: 0;
    pointer-events: none;
}