/* Ethical Advertising System CSS for Islamic Dream Interpreter */

/* Ad badges and labels */
.ad-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ccc;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
}

.ad-disclaimer {
    font-size: 0.75rem;
    color: #999;
}

/* Ad containers */
.ad-placeholder {
    background-color: rgba(15, 15, 15, 0.5);
    border: 1px solid rgba(108, 117, 125, 0.2);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.ad-image-container {
    position: relative;
    overflow: hidden;
}

.banner-ad {
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.sidebar-ad {
    transition: transform 0.3s ease;
}

.sidebar-ad:hover {
    transform: translateY(-3px);
}

.interpretation-ad-slot {
    margin: 1rem 0;
    border-radius: 5px;
    overflow: hidden;
}

/* Mobile bottom ad banner */
.mobile-ad-banner {
    background-color: rgba(33, 37, 41, 0.95);
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.3);
    z-index: 1030;
}

/* Ad gate styling */
.ad-timer .progress-bar {
    transition: width 1s linear;
}

#adTimerProgress {
    height: 6px;
}

/* Premium badge */
.premium-badge {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Premium upgrade button animation */
.premium-upgrade-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.premium-upgrade-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: 1;
    transition: all 0.6s ease;
    opacity: 0;
}

.premium-upgrade-btn:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(0, 0);
}

/* Ad animation transitions */
.featured-ad {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.featured-ad:hover {
    transform: translateY(-5px);
}

/* Animation for skip button */
@keyframes pulseSkipButton {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#skipAdBtn:not([disabled]) {
    animation: pulseSkipButton 1.5s infinite;
}