/* Advertisement Modal Styles */
.ad-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.ad-modal-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.ad-modal-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(255, 235, 59, 0.3);
    animation: slideInDown 0.6s ease-out;
    border: 2px solid rgba(255, 235, 59, 0.3);
    overflow: hidden;
}

.ad-modal-header {
    background: linear-gradient(90deg, rgba(255, 235, 59, 0.1) 0%, rgba(255, 235, 59, 0.2) 50%, rgba(255, 235, 59, 0.1) 100%);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 235, 59, 0.2);
}

.ad-modal-title {
    color: #ffeb3b;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ad-modal-title .ad-icon {
    font-size: 28px;
    animation: pulse 2s infinite;
}

.ad-countdown-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ad-countdown-text {
    color: #fff;
    font-size: 14px;
    opacity: 0.9;
}

.ad-countdown-timer {
    background: rgba(255, 235, 59, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    color: #ffeb3b;
    font-weight: bold;
    font-size: 18px;
    min-width: 80px;
    text-align: center;
    border: 1px solid rgba(255, 235, 59, 0.3);
    position: relative;
    overflow: hidden;
}

.ad-countdown-timer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.ad-modal-body {
    padding: 30px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ad-content-wrapper {
    width: 100%;
    max-width: 800px;
    min-height: 450px;
    background: #000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ad-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 235, 59, 0.2);
    border-top-color: #ffeb3b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.ad-modal-footer {
    background: rgba(255, 235, 59, 0.05);
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 235, 59, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ad-benefits {
    display: flex;
    gap: 20px;
    align-items: center;
}

.ad-benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    opacity: 0.8;
}

.ad-benefit-item i {
    color: #ffeb3b;
    font-size: 16px;
}

.ad-skip-button {
    background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    cursor: not-allowed;
    opacity: 0.3;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ad-skip-button.enabled {
    cursor: pointer;
    opacity: 1;
    animation: pulse 1.5s infinite;
}

.ad-skip-button.enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 235, 59, 0.4);
}

.ad-skip-button.enabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ad-skip-button.enabled:active::after {
    width: 300px;
    height: 300px;
}

/* Progress bar */
.ad-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 235, 59, 0.1);
}

.ad-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffeb3b, #ffc107);
    width: 0%;
    transition: width 1s linear;
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

/* Notification badge */
.ad-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
    color: #000;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: bold;
    z-index: 999998;
    display: none;
    animation: slideInRight 0.5s ease-out;
    box-shadow: 0 10px 30px rgba(255, 235, 59, 0.4);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.ad-notification.show {
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ad-modal-container {
        max-width: 95%;
        margin: 10px;
    }
    
    .ad-modal-header {
        padding: 15px 20px;
    }
    
    .ad-modal-title {
        font-size: 18px;
    }
    
    .ad-content-wrapper {
        min-height: 300px;
    }
    
    .ad-benefits {
        display: none;
    }
    
    .ad-modal-footer {
        justify-content: center;
    }
}

/* Floating ad reminder */
.ad-reminder-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
    color: #000;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    z-index: 9999;
    cursor: pointer;
    animation: bounce 2s infinite;
    box-shadow: 0 5px 20px rgba(255, 235, 59, 0.4);
    display: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.ad-reminder-bubble.show {
    display: block;
}

/* Disable text selection and context menu */
.ad-modal-overlay * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Custom scrollbar for ad content */
.ad-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.ad-content-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 235, 59, 0.1);
    border-radius: 4px;
}

.ad-content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 235, 59, 0.5);
    border-radius: 4px;
}

.ad-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 235, 59, 0.7);
}