/* 
 * Floating Ad Banners CSS
 * For Harry Potter House Quiz
 */

/* Common styles for ad containers */
.ad-container {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 90;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Left ad container */
.ad-container-left {
    left: 10px;
}

/* Right ad container */
.ad-container-right {
    right: 10px;
}

/* Ad header */
.ad-header {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    font-family: 'Cinzel Decorative', cursive;
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Ad content placeholder */
.ad-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.ad-placeholder-text {
    font-size: 0.8rem;
    color: var(--text-color);
    text-align: center;
    padding: 10px;
}

/* Close button */
.ad-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: none;
    color: var(--accent-color);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.3s ease;
}

.ad-close:hover {
    color: var(--text-color);
}

/* Minimize/expand button */
.ad-minimize {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: none;
    color: var(--accent-color);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.3s ease;
}

.ad-minimize:hover {
    color: var(--text-color);
}

/* Minimized state */
.ad-container.minimized {
    width: 40px;
    height: 120px;
}

.ad-container.minimized .ad-content,
.ad-container.minimized .ad-header {
    display: none;
}

.ad-container.minimized .ad-minimize {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .ad-container {
        width: 120px;
    }
}

@media (max-width: 1200px) {
    .ad-container {
        width: 100px;
        height: 500px;
    }
}

@media (max-width: 992px) {
    .ad-container {
        display: none;
    }
}

/* Bottom ad for mobile */
.ad-container-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: rgba(0, 0, 0, 0.8);
    border-top: 1px solid var(--accent-color);
    padding: 10px;
    z-index: 95;
}

.ad-content-mobile {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.ad-close-mobile {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: none;
    color: var(--accent-color);
    font-size: 1rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .ad-container-mobile {
        display: block;
    }
    
    /* Add padding to body to prevent content from being hidden behind the mobile ad */
    body {
        padding-bottom: 90px;
    }
}
