/* Additional Placeholder Enhancements */

/* Animated gradient border for placeholders */
@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.ad-placeholder {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4), rgba(30, 41, 59, 0.4));
    border: 2px dashed transparent;
    background-clip: padding-box;
}

.ad-placeholder::before {
    background: linear-gradient(90deg,
            rgba(102, 126, 234, 0.1),
            rgba(118, 75, 162, 0.1),
            rgba(102, 126, 234, 0.1));
    background-size: 200% 200%;
    animation: gradient-border 3s ease infinite;
}

/* Specific placeholder info badges */
.ad-banner-top .ad-placeholder::after {
    content: "Best for: Leaderboard (728x90) or Responsive Banner";
}

.ad-game-top .ad-placeholder::after {
    content: "Best for: Horizontal Banner (728x90 or Responsive)";
}

.ad-game-below .ad-placeholder::after {
    content: "Best for: Medium Rectangle (300x250) - High CPC";
}

.ad-sidebar .ad-placeholder::after {
    content: "Best for: Wide Skyscraper (160x600 / 300x600)";
}

.ad-multiplex .ad-placeholder::after {
    content: "Best for: Multiplex / Matched Content";
}

.ad-in-article .ad-placeholder::after {
    content: "Best for: In-Article Responsive Ad";
}

/* Hover effect with info */
.ad-placeholder:hover::before {
    background: linear-gradient(90deg,
            rgba(102, 126, 234, 0.2),
            rgba(118, 75, 162, 0.2),
            rgba(102, 126, 234, 0.2));
}

/* Size indicators */
.ad-banner-top .ad-placeholder {
    position: relative;
}

.ad-banner-top .ad-placeholder::after {
    white-space: normal;
    max-width: 90%;
}

/* Demo mode indicator */
body::after {
    content: "🎯 Demo Mode: Ad placeholders visible | Add AdSense code to show live ads";
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 9999;
    animation: slideInUp 0.5s ease;
    max-width: 300px;
    text-align: center;
    line-height: 1.4;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    body::after {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.75rem;
        padding: 0.6rem 1rem;
    }
}

/* Hide demo indicator when ads are loaded */
body:has(.ad-placeholder ins.adsbygoogle)::after {
    display: none;
}