/**
 * Fabify Marketplace Theme - Contrast & Accessibility Fixes
 *
 * This file fixes contrast issues identified in accessibility audit.
 * Load AFTER marketplace.css
 */

/* ===========================================
   HERO SECTION - Improve text readability
   =========================================== */

/* Hero main text on hero images - increase opacity from 0.7 to 0.9 */
.hero-main-banner p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Hero countdown - increase opacity from 0.6 to 0.9 */
.hero-countdown {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Dark mode hero text */
[data-theme="dark"] .hero-main-banner p {
    color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] .hero-countdown {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* ===========================================
   DARK MODE - Fix low contrast borders
   =========================================== */

[data-theme="dark"] {
    --border-light: #3a3a3a !important;  /* Was #222222 - better contrast */
    --border: #333333 !important;         /* Was #2a2a2a - slightly lighter */
}

/* Specific border fixes for dark mode */
[data-theme="dark"] .product-card-luxury,
[data-theme="dark"] .cat-pill,
[data-theme="dark"] .product-card-premium,
[data-theme="dark"] .newsletter-box,
[data-theme="dark"] .footer-main {
    border-color: #3a3a3a !important;
}

/* ===========================================
   SEARCH RESULTS - New styles
   =========================================== */

.search-results-wrapper {
    min-height: 60vh;
}

.search-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border, #E5E5E5);
}

[data-theme="dark"] .search-header {
    border-bottom-color: #3a3a3a;
}

.search-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main, #121212);
    margin: 0 0 10px 0;
}

[data-theme="dark"] .search-title {
    color: var(--text-main, #f0f0f0);
}

.search-count {
    color: var(--text-muted, #666666);
    font-size: 14px;
}

[data-theme="dark"] .search-count {
    color: var(--text-muted, #b0b0b0);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted, #666666);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* Product card improvements */
.product-card-luxury:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

[data-theme="dark"] .product-card-luxury:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Suggestion tags */
.suggestion-tag {
    transition: all 0.2s ease;
}

.suggestion-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .suggestion-tag:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ===========================================
   PAGINATION - Better visibility
   =========================================== */

.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid var(--border, #ddd);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-main, #121212);
    transition: all 0.2s ease;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: var(--accent, #00ff88);
    color: var(--dark, #121212);
    border-color: var(--accent, #00ff88);
}

[data-theme="dark"] .pagination-wrapper .page-numbers {
    border-color: #3a3a3a;
    color: var(--text-main, #f0f0f0);
}

/* ===========================================
   ACCESSIBILITY - Focus indicators
   =========================================== */

a:focus,
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--focus-ring, #0066cc);
    outline-offset: 2px;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent, #00ff88);
    color: var(--dark, #121212);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* ===========================================
   RESPONSIVE - Mobile improvements
   =========================================== */

@media (max-width: 768px) {
    .search-title {
        font-size: 22px;
    }

    .suggestion-tags {
        flex-direction: column;
        align-items: stretch;
    }

    .suggestion-tag {
        text-align: center;
    }
}
