/* Dark Theme Country-Targeted Ad Styles */
.country-targeted-ad {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, 
        rgba(17, 24, 39, 0.95), 
        rgba(15, 20, 32, 0.98)
    );
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    opacity: 0;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 4px 20px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.country-targeted-ad.ad-loaded {
    transform: translateY(0);
    opacity: 1;
}

.country-targeted-ad::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.08) 0%, 
        rgba(139, 92, 246, 0.06) 25%,
        rgba(16, 185, 129, 0.08) 50%,
        rgba(245, 101, 101, 0.06) 75%,
        rgba(251, 146, 60, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.country-targeted-ad:hover::before {
    opacity: 1;
}

.country-targeted-ad:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 8px 30px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Shimmer Effect */
.sponsored-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Badge Styles */
.country-targeted-ad .badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: badge-pulse 3s infinite ease-in-out;
    z-index: 2;
}

.badge-local {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: #ffffff !important;
}

@keyframes badge-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    }
}

/* Platform Header */
.country-targeted-ad .platform-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 24px 24px 0;
}

.platform-icon-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12), 
        rgba(255, 255, 255, 0.06)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.country-targeted-ad:hover .platform-icon-wrapper {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.platform-icon-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
}

.platform-icon-emoji,
.platform-icon-fallback {
    font-size: 26px;
    line-height: 1;
}

.platform-info {
    flex: 1;
}

.country-targeted-ad .platform-title {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.country-targeted-ad .platform-subtitle {
    margin: 0 0 8px 0;
    font-size: 14px;
    opacity: 0.8;
    color: #d1d5db;
    font-weight: 400;
}

/* Targeting Info */
.targeting-info {
    font-size: 12px;
    color: #10b981;
    font-weight: 500;
    opacity: 0.9;
}

/* Features List */
.country-targeted-ad .platform-features {
    list-style: none;
    padding: 0 24px;
    margin: 0 0 20px 0;
}

.country-targeted-ad .platform-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: #f3f4f6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 400;
}

.country-targeted-ad .platform-features li:last-child {
    border-bottom: none;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Earnings Info */
.country-targeted-ad .earnings-info {
    padding: 16px 24px;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05), 
        rgba(255, 255, 255, 0.02)
    );
    margin: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.earnings-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.country-targeted-ad .earnings-amount {
    font-size: 18px;
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

/* Button Styles */
.country-targeted-ad .sponsor-btn {
    position: relative;
    margin: 20px 24px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    display: block;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
}

.country-targeted-ad .sponsor-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.country-targeted-ad .btn-text {
    position: relative;
    z-index: 2;
}

.country-targeted-ad .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.country-targeted-ad .sponsor-btn:hover .btn-shine {
    left: 100%;
}

/* Trust Indicators */
.country-targeted-ad .trust-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0 24px 20px;
}

.country-targeted-ad .trust-badge {
    font-size: 11px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .country-targeted-ad .platform-header {
        padding: 20px 20px 0;
        gap: 16px;
    }
    
    .country-targeted-ad .platform-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .country-targeted-ad .platform-icon-img {
        width: 32px;
        height: 32px;
    }
    
    .country-targeted-ad .platform-icon-emoji,
    .country-targeted-ad .platform-icon-fallback {
        font-size: 24px;
    }
    
    .country-targeted-ad .platform-title {
        font-size: 18px;
    }
    
    .country-targeted-ad .platform-features,
    .country-targeted-ad .earnings-info,
    .country-targeted-ad .sponsor-btn,
    .country-targeted-ad .trust-indicators {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .country-targeted-ad .earnings-info {
        margin: 0 12px;
    }
    
    .country-targeted-ad .platform-features li {
        font-size: 13px;
    }
    
    .country-targeted-ad .earnings-amount {
        font-size: 16px;
    }
    
    .country-targeted-ad .sponsor-btn {
        padding: 12px 20px;
        font-size: 14px;
        margin: 16px 20px 16px;
    }
}

/* Light theme compatibility */
@media (prefers-color-scheme: light) {
    .country-targeted-ad {
        background: linear-gradient(135deg, 
            rgba(248, 250, 252, 0.95), 
            rgba(241, 245, 249, 0.98)
        );
        border-color: rgba(0, 0, 0, 0.1);
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.1),
            0 4px 20px rgba(0, 0, 0, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    
    .country-targeted-ad .platform-title {
        color: #111827;
        text-shadow: none;
    }
    
    .country-targeted-ad .platform-subtitle {
        color: #6b7280;
    }
    
    .country-targeted-ad .platform-features li {
        color: #374151;
    }
    
    .country-targeted-ad .earnings-label {
        color: #6b7280;
    }
    
    .country-targeted-ad .trust-badge {
        background: rgba(0, 0, 0, 0.05);
        color: #6b7280;
        border-color: rgba(0, 0, 0, 0.1);
    }
    
    .country-targeted-ad .platform-icon-wrapper {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.8), 
            rgba(255, 255, 255, 0.6)
        );
        border-color: rgba(0, 0, 0, 0.08);
    }
    
    .country-targeted-ad .earnings-info {
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.02), 
            rgba(0, 0, 0, 0.01)
        );
        border-color: rgba(0, 0, 0, 0.06);
    }
    
    .country-targeted-ad .targeting-info {
        color: #059669;
    }
}


/* Dark Theme Country-Targeted Ad Styles */
.country-targeted-ad {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, 
        rgba(10, 15, 25, 0.98), 
        rgba(8, 12, 20, 1)
    );
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    opacity: 0;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 4px 20px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}