﻿/* ===== GENERAL STYLES ===== */
body {
    /* Add any global body styles here if needed */
}

.error {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

/* ===== MEME/CARD STYLES ===== */
.meme-image {
    transition: transform 0.2s ease-in-out;
}

    .meme-image:hover {
        transform: scale(1.05);
    }

.meme-card {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    .meme-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

.nsfw-overlay {
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border: 2px dashed #ff9800;
}

/* ===== UPLOAD & RATING STYLES ===== */
.file-upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
    opacity: 0;
}

.image-preview {
    max-height: 200px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background-color: #f5f5f5;
    border-radius: 8px;
    min-height: 220px;
}

.rating-card {
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    min-width: 120px;
}

    .rating-card:hover:not([disabled]) {
        border-color: var(--mud-palette-primary);
        transform: translateY(-2px);
    }

    .rating-card.selected {
        border-color: var(--mud-palette-primary);
        background-color: var(--mud-palette-primary-lighten);
    }

    .rating-card[disabled] {
        opacity: 0.6;
        cursor: not-allowed;
    }

.custom-progress-bar .mud-linear-progress-bar {
    background: linear-gradient(90deg, #f44336 0%, #f44336 20%, #ff9800 20%, #ff9800 40%, #ffeb3b 40%, #ffeb3b 60%, #8bc34a 60%, #8bc34a 80%, #4caf50 80%, #4caf50 100%);
}

.custom-progress-bar.simple .mud-linear-progress-bar {
    background: linear-gradient(90deg, #f44336 0%, #ff9800 50%, #4caf50 100%);
}

/* ===== ADVERTISING PLACEHOLDER STYLES ===== */
/* Main Container - Default (Desktop) */
.ad-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 1rem auto;
    background-color: var(--mud-palette-surface);
    border: 2px dashed var(--mud-palette-divider);
    transition: all 0.3s ease;
}

    .ad-container:hover {
        border-color: var(--mud-palette-primary);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

/* Ad Size Classes - Fixed sizes (not responsive) */
.ad-unit {
    overflow: hidden;
    border-radius: 4px;
}

/* Individual ad size classes - override responsive behavior */
.header-ad {
    width: 728px;
    height: 90px;
    max-width: 728px;
    min-height: 90px;
}

.sidebar-ad {
    width: 300px;
    height: 250px;
    max-width: 300px;
    min-height: 250px;
}

.content-top-ad,
.content-bottom-ad {
    width: 728px;
    height: 90px;
    max-width: 728px;
    min-height: 90px;
}

.in-content-ad {
    width: 300px;
    height: 250px;
    max-width: 300px;
    min-height: 250px;
    margin: 1rem auto;
}

.footer-ad {
    width: 468px;
    height: 60px;
    max-width: 468px;
    min-height: 60px;
}

/* Placeholder Content */
.ad-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: var(--mud-palette-text-secondary);
}

.ad-premium {
    border: 2px solid var(--mud-palette-warning);
}

/* Advertise Button */
.advertise-button {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(4px);
    border-radius: 20px;
    font-size: 0.75rem;
    padding: 4px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Dark Mode Support */
.mud-theme-dark .ad-container {
    background-color: var(--mud-palette-surface);
    border-color: var(--mud-palette-divider);
}

.mud-theme-dark .advertise-button {
    background-color: rgba(30, 30, 45, 0.9) !important;
    color: var(--mud-palette-primary) !important;
}

/* ===== ADVERTISE PAGE STYLES ===== */
.mock-site {
    background: white;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 8px;
    padding: 16px;
}

.mock-header, .mock-sidebar, .mock-content, .mock-footer {
    border: 1px solid var(--mud-palette-divider);
}

.mock-ad {
    border-radius: 4px;
    position: relative;
}

    .mock-ad::after {
        content: "YOUR AD HERE";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: var(--mud-palette-text-secondary);
        font-size: 12px;
        font-weight: bold;
    }

/* Pricing Cards */
.mud-paper.featured-pricing {
    transform: scale(1.05);
    z-index: 1;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mud-dialog-container .mud-dialog {
    animation: fadeIn 0.3s ease-out;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Mobile (768px and below) - Switch to mobile sizes */
@media (max-width: 768px) {
    /* Override ALL ad containers to mobile size */
    .ad-container {
        width: 300px !important;
        height: 250px !important;
        max-width: 300px !important;
        min-height: 250px !important;
    }

    /* Override specific ad classes to mobile size */
    .header-ad,
    .content-top-ad,
    .content-bottom-ad {
        width: 300px !important;
        height: 250px !important;
        max-width: 300px !important;
        min-height: 250px !important;
    }

    /* Sidebar and in-content already 300x250, but ensure consistency */
    .sidebar-ad,
    .in-content-ad {
        width: 300px !important;
        height: 250px !important;
        max-width: 300px !important;
        min-height: 250px !important;
    }

    /* Footer ad - make larger on mobile since 468x60 is too wide */
    .footer-ad {
        width: 300px !important;
        height: 250px !important;
        max-width: 300px !important;
        min-height: 250px !important;
    }

    /* Button adjustments for mobile */
    .advertise-button {
        width: 100%;
        border-radius: 4px;
        font-size: 0.7rem !important;
        padding: 2px 8px !important;
    }

    /* Hide header ad on very small screens */
    @media (max-width: 400px) {
        .header-ad {
            display: none !important;
        }
    }

    /* Advertise page mock ads */
    .mock-header .mock-ad,
    .mock-content .mock-ad {
        width: 300px !important;
        height: 250px !important;
    }
}

/* Desktop Only (769px and above) - Keep desktop sizes */
@media (min-width: 769px) {
    /* Ensure desktop sizes are applied */
    .ad-container {
        width: 728px !important;
        height: 90px !important;
        max-width: 728px !important;
        min-height: 90px !important;
    }
    .ad-container-nav {
        width: 240px !important;
        height: 300px !important;
        max-width: 240px !important;
        min-height: 300px !important;
    }

    .header-ad,
    .content-top-ad,
    .content-bottom-ad {
        width: 728px !important;
        height: 90px !important;
        max-width: 728px !important;
        min-height: 90px !important;
    }

    .footer-ad {
        width: 468px !important;
        height: 60px !important;
        max-width: 468px !important;
        min-height: 60px !important;
    }
}

/* Fixed size ads - ensure they keep their sizes */
.sidebar-ad,
.in-content-ad {
    width: 300px !important;
    height: 250px !important;
    max-width: 300px !important;
    min-height: 250px !important;
}

.footer-ad .advertise-button {
    font-size: 0.65rem !important;
    padding: 1px 6px !important;
}
