/*
Theme Name: Classifieds Pro - AI Powered
Theme URI: https://yoursite.com
Author: Your Company
Author URI: https://yoursite.com
Description: Professional classified ads platform with AI-powered ad review, image verification, payment processing (E-transfer & Crypto), and automated posting. Built for adult services, escorts, massage, dating, and general classifieds.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: classifieds-pro
Tags: classifieds, directory, listings, ads, ai-powered, payments, adult-friendly

This theme supports AI-powered content moderation, dual payment methods (E-transfer & Cryptocurrency),
and automated ad posting workflow.
*/

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-color: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f8bbd0;
    --secondary-color: #2c3e50;
    --accent-color: #ff6b6b;
    
    /* Neutral Colors */
    --dark: #1a1a1a;
    --gray-dark: #333333;
    --gray: #666666;
    --gray-light: #cccccc;
    --light: #f5f5f5;
    --white: #ffffff;
    
    /* Status Colors */
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --info: #2196f3;
    
    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Helvetica Neue", Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--secondary-color);
    color: var(--white);
    padding: var(--spacing-xs) 0;
    font-size: 0.875rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: var(--spacing-md) 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.site-logo:hover {
    color: var(--primary-dark);
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
}

.main-navigation a {
    color: var(--dark);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--primary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

/* Post Ad Button */
.btn-post-ad {
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.btn-post-ad:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

/* Search Box */
.search-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: var(--spacing-sm);
}

.search-input,
.search-select {
    padding: var(--spacing-sm);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   CATEGORIES GRID
   ========================================================================== */

.categories-section {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.category-card {
    background: var(--white);
    border: 2px solid var(--light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--dark);
}

.category-count {
    color: var(--gray);
    font-size: 0.875rem;
}

/* ==========================================================================
   LISTINGS GRID
   ========================================================================== */

.listings-section {
    padding: var(--spacing-xl) 0;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

/* Enhanced Listing Cards */
.listing-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.listing-card.premium-listing {
    border: 2px solid #f59e0b;
}

.listing-card.featured-listing {
    border: 2px solid #8b5cf6;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

.listing-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image Section */
.listing-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.listing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.listing-card:hover .listing-card-image img {
    transform: scale(1.05);
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.no-image-placeholder span {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    z-index: 2;
}

/* Badges Row */
.listing-badges {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-badge {
    color: #10b981;
}

.badge-icon {
    font-size: 12px;
}

.age-badge {
    color: #ef4444;
    font-weight: 700;
}

/* Content Section */
.listing-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-card-header {
    margin-bottom: 10px;
}

.listing-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: #f3f4f6;
    color: #6b7280;
}

.tag-category {
    background: #e0e7ff;
    color: #4f46e5;
}

.tag-location {
    background: #fef3c7;
    color: #d97706;
}

.listing-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card:hover .listing-card-title {
    color: #667eea;
}

.listing-card-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 12px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer Section */
.listing-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.listing-stats {
    display: flex;
    gap: 14px;
    align-items: center;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.stat-icon {
    font-size: 14px;
}

.listing-date {
    font-size: 12px;
    color: #9ca3af;
}

.time-ago {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .listing-card-image {
        height: 200px;
    }
    
    .listing-card-title {
        font-size: 16px;
    }
    
    .listing-card-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-widget h3 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-light);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
}

.footer-widget a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--gray-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SINGLE LISTING PAGE
   ========================================================================== */

.single-listing {
    background: #f9fafb;
    padding: 40px 0;
}

.single-listing .container {
    max-width: 1200px;
}

/* Header Section */
.listing-header {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.listing-meta-top {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.listing-category,
.listing-location,
.listing-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.listing-category {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.listing-location {
    background: #fef3c7;
    color: #d97706;
}

.listing-date {
    background: #f3f4f6;
    color: #6b7280;
}

.listing-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    color: #111827;
    margin: 0 0 20px 0;
}

/* AI Verification Badge */
.ai-verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.ai-verification-badge.verified {
    background: linear-gradient(135deg, #10b981, #059669);
}

.badge-icon {
    font-size: 24px;
    font-weight: bold;
}

.badge-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.badge-info strong {
    font-size: 15px;
    font-weight: 700;
}

.badge-info small {
    font-size: 12px;
    opacity: 0.9;
}

.age-badge {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

/* Content Layout */
.listing-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.listing-main {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Gallery */
.listing-gallery {
    margin-bottom: 30px;
}

.gallery-main {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-main img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background: #f3f4f6;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.gallery-thumb {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    aspect-ratio: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.no-image {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
}

/* Description */
.listing-description {
    margin-top: 30px;
}

.listing-description h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.listing-description p {
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 16px;
}

/* Sidebar */
.listing-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Contact Card */
.contact-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.contact-button:last-child {
    margin-bottom: 0;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.listing-contact-form .form-group {
    margin-bottom: 16px;
}

.listing-contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.listing-contact-form input,
.listing-contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.listing-contact-form input:focus,
.listing-contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Info Card */
.listing-info-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.listing-info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.info-item span {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.status-active {
    color: #10b981 !important;
    background: #d1fae5;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px !important;
}

/* Safety Tips */
.safety-tips {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.safety-tips h3 {
    font-size: 16px;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.safety-tips ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.safety-tips li {
    font-size: 13px;
    color: #92400e;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.safety-tips li:before {
    content: "⚠️";
    position: absolute;
    left: 0;
}

/* Related Listings */
.related-listings {
    margin-top: 60px;
}

.related-listings h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .listing-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .listing-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .listing-header {
        padding: 20px;
    }
    
    .listing-title {
        font-size: 24px;
    }
    
    .listing-main {
        padding: 20px;
    }
    
    .listing-sidebar {
        grid-template-columns: 1fr;
    }
    
    .gallery-main img {
        max-height: 300px;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.hidden { display: none; }
.visible { display: block; }

/* ==========================================================================
   AD SPOT STYLES
   ========================================================================== */

.ad-container {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-sm);
    background-color: var(--light);
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    text-align: center;
}

.ad-disclaimer {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
}

/* Header Banner (728x90 Leaderboard) */
.ad-header-banner {
    max-width: 728px;
    margin: var(--spacing-md) auto;
}

.ad-header-banner .ad-image {
    max-width: 728px;
    height: auto;
}

/* Sidebar Ads (300x250 Rectangle) */
.ad-sidebar {
    margin: var(--spacing-lg) 0;
    max-width: 300px;
}

.ad-sidebar .ad-image {
    max-width: 300px;
    height: auto;
}

/* Inline Ads Between Listings */
.ad-inline-wrapper {
    grid-column: 1 / -1;
    margin: var(--spacing-md) 0;
}

.ad-between-listings .ad-image {
    max-width: 728px;
    height: auto;
}

/* Footer Banner */
.ad-footer-banner {
    max-width: 728px;
    margin: var(--spacing-lg) auto var(--spacing-md);
}

.ad-footer-banner .ad-image {
    max-width: 728px;
    height: auto;
}

/* Mobile Sticky Banner (320x50) */
.ad-mobile-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: var(--spacing-xs);
    display: none;
}

.ad-mobile-sticky .ad-image {
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Show mobile sticky only on mobile */
@media (max-width: 768px) {
    .ad-mobile-sticky {
        display: block;
    }
    
    /* Add padding to body so content isn't hidden behind sticky ad */
    body.has-mobile-ad {
        padding-bottom: 60px;
    }
}

/* Ad Images General */
.ad-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.ad-link:hover {
    opacity: 0.9;
}

.ad-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ad Spot Widget in Widgets Area */
.widget.classifieds_ad_widget {
    margin-bottom: var(--spacing-lg);
}

/* Ad Label in Widget */
.ad-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Ad Adjustments */
@media (max-width: 768px) {
    .ad-header-banner,
    .ad-footer-banner,
    .ad-between-listings {
        max-width: 100%;
    }
    
    .ad-header-banner .ad-image,
    .ad-footer-banner .ad-image,
    .ad-between-listings .ad-image {
        max-width: 100%;
    }
    
    /* Hide desktop sidebars on mobile */
    .ad-sidebar {
        display: none;
    }
}

