/* Revenue and Advertisement Styles */

/* AdSense Ad Containers */
.ad-banner,
.ad-sidebar,
.ad-content,
.ad-multiplex {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.ad-container {
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-label {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    color: #6c757d;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 10;
}

.ad-sidebar {
    max-width: 300px;
    margin: 1rem auto;
}

.ad-sidebar .ad-container {
    min-height: 250px;
}

.ad-content {
    max-width: 728px;
    margin: 2rem auto;
}

.ad-multiplex {
    max-width: 100%;
    margin: 3rem auto;
}

.ad-multiplex .ad-container {
    min-height: 200px;
}

/* Premium Listing Styles */
.premium-listing {
    position: relative;
    border: 2px solid #007bff;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    overflow: hidden;
}

.premium-listing[data-tier="featured"] {
    border-color: #28a745;
    background: linear-gradient(135deg, #fff 0%, #f8fff8 100%);
}

.premium-listing[data-tier="sponsored"] {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff 0%, #fffef8 100%);
}

.premium-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 0 12px 0 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.premium-listing[data-tier="featured"] .premium-badge {
    background: #28a745;
}

.premium-listing[data-tier="sponsored"] .premium-badge {
    background: #ffc107;
    color: #212529;
}

.premium-content {
    padding: 2rem;
    padding-top: 3rem;
}

/* Sponsored Content */
.sponsored-content {
    background: #fff8dc;
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 1rem;
    margin: 2rem 0;
    position: relative;
}

.sponsored-label {
    position: absolute;
    top: -8px;
    left: 16px;
    background: #ffd700;
    color: #212529;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.sponsored-tool {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.sponsored-tool img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.sponsored-info h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #212529;
}

.sponsored-info p {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.sponsored-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.sponsored-link:hover {
    text-decoration: underline;
}

/* Affiliate Link Indicators */
[data-affiliate="true"] {
    position: relative;
}

[data-affiliate="true"]::after {
    content: "🔗";
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.7;
}

/* Revenue Analytics Dashboard (for admin) */
.revenue-dashboard {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.revenue-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
    display: block;
}

.metric-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ad-content,
    .ad-banner {
        margin: 1rem 0;
        padding: 0.5rem;
    }
    
    .sponsored-tool {
        flex-direction: column;
        text-align: center;
    }
    
    .premium-content {
        padding: 1rem;
        padding-top: 2rem;
    }
    
    .revenue-metrics {
        grid-template-columns: 1fr;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ad-banner,
    .ad-sidebar,
    .ad-content {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .ad-label {
        background: rgba(45, 55, 72, 0.8);
        color: #cbd5e0;
    }
    
    .premium-listing {
        background: linear-gradient(135deg, #2d3748 0%, #364153 100%);
    }
    
    .sponsored-content {
        background: #2d3748;
        border-color: #ffd700;
    }
}