/**
 * Floating Ads System Styles
 * Appears on center-left every 60 seconds
 */

.floating-ads-btn {
    position: fixed;
    left: -120px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 16px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-left: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.2);
}

.floating-ads-btn.visible {
    left: 0;
    opacity: 1;
    pointer-events: auto;
}

.ads-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.ads-icon-wrapper i {
    font-size: 1.3rem;
    color: #ffc107;
    z-index: 2;
    position: relative;
}

.ads-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.3);
    animation: ads-pulse 2s ease-out infinite;
}

@keyframes ads-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

.ads-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-ads-btn:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 152, 0, 0.25));
    transform: translateY(-50%) translateX(5px);
    box-shadow: 0 6px 30px rgba(255, 193, 7, 0.4);
}

.floating-ads-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Hide sponsored button on mobile - desktop only */
@media (max-width: 768px) {
    .floating-ads-btn {
        display: none !important;
    }
}

/* Ads Display - Appears in space (no modal overlay) */
.floating-ads-display {
    position: fixed;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ads-display-content {
    position: relative;
    width: 400px;
    background: linear-gradient(135deg, rgba(30, 37, 53, 0.98), rgba(26, 26, 46, 0.98));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(255, 193, 7, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 193, 7, 0.3);
    padding: 30px;
}

/* Style 1: Popup from center */
.floating-ads-display.style-popup {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
}

.floating-ads-display.style-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    animation: popup-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popup-bounce {
    0% { transform: translate(-50%, -50%) scale(0.5); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Style 2: Fade in center */
.floating-ads-display.style-fade {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.floating-ads-display.style-fade.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: fade-glow 1s ease-out;
}

@keyframes fade-glow {
    0% {
        opacity: 0;
        filter: brightness(2);
    }
    100% {
        opacity: 1;
        filter: brightness(1);
    }
}

/* Style 3: Slide from left */
.floating-ads-display.style-slide {
    top: 50%;
    left: -500px;
    transform: translateY(-50%);
}

.floating-ads-display.style-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slide-from-left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slide-from-left {
    0% {
        left: -500px;
        transform: translateY(-50%) rotate(-10deg);
        opacity: 0;
    }
    100% {
        left: 50%;
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 1;
    }
}

/* Style 4: Premium fade with particles */
.floating-ads-display.style-premium {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.floating-ads-display.style-premium.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: premium-appear 1.2s ease-out;
}

.floating-ads-display.style-premium.active .ads-display-content {
    animation: premium-glow 2s ease-in-out infinite;
}

@keyframes premium-appear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0px);
    }
}

@keyframes premium-glow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 193, 7, 0.5);
    }
}

.ads-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ads-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

.ads-modal-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 20px;
    color: #ffc107;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.ads-modal-body {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ads-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.ads-placeholder i {
    font-size: 3rem;
    color: rgba(255, 193, 7, 0.5);
    margin-bottom: 15px;
}

.ads-placeholder h3 {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-weight: 600;
}

.ads-placeholder p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.ads-note {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Actual Ad Content Styles */
.ads-actual-content {
    text-align: center;
    max-width: 100%;
}

.ads-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
    object-fit: cover;
}

.ads-title {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    font-weight: 700;
}

.ads-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 25px;
}

.ads-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.ads-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
    background: linear-gradient(135deg, #ff9800, #ffc107);
}

.ads-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-style: italic;
}

/* Mobile responsive styles for ads popup */
@media (max-width: 768px) {
    .ads-display-content {
        width: 90vw;
        max-width: 400px;
        padding: 24px;
    }

    .ads-modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
        top: 12px;
        right: 12px;
    }

    .ads-modal-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .ads-title {
        font-size: 1.3rem;
    }

    .ads-description {
        font-size: 0.95rem;
    }

    .ads-image {
        max-height: 220px;
        border-radius: 10px;
    }

    .ads-cta-button {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .ads-display-content {
        width: 94vw;
        padding: 20px;
        border-radius: 16px;
    }

    .ads-modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .ads-modal-body {
        min-height: auto;
        padding: 0;
    }

    .ads-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .ads-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .ads-image {
        max-height: 180px;
        margin-bottom: 16px;
    }
}

