/* ============================================================================
   AGGRESSIVE FULL-WIDTH OVERRIDES
   Forces all containers to use full viewport width with smart padding
   ============================================================================ */

/* Remove ALL max-width constraints */
.container,
.hero-container,
.main-content > *,
.tab-content > div,
section > div {
    max-width: none !important;
    width: 100% !important;
}

/* Hero Section - Aligned with page */
.hero {
    width: 100% !important;
    margin: 0 !important;
    position: relative;
    left: auto !important;
    right: auto !important;
}

.hero-container {
    max-width: none !important;
    width: 100% !important;
    padding: 2rem clamp(1rem, 5vw, 6rem) !important;
    display: grid !important;
    gap: 2rem !important;
    margin: 0 auto !important;
}

/* Main Content Full Width */
.main-content {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

/* Container Smart Padding */
.container {
    padding-left: clamp(1rem, 5vw, 6rem) !important;
    padding-right: clamp(1rem, 5vw, 6rem) !important;
}

/* Search Results Grid - Dynamic Columns */
.results-grid {
    display: grid !important;
    gap: 1.5rem !important;
    padding: 2rem clamp(1rem, 5vw, 6rem) !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    max-width: none !important;
}

/* Tab Content Full Width */
.tab-content {
    width: 100% !important;
    max-width: none !important;
}

#search-tab .container,
#report-tab .container,
#stats-tab .container,
#map-tab .container {
    max-width: none !important;
    width: 100% !important;
    padding: 2rem clamp(1rem, 5vw, 6rem) !important;
}

/* Form Containers - Centered with max-width for readability */
.form-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem !important;
}

/* Stats Grid - Full Width */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 2rem 0 !important;
    max-width: none !important;
}

/* Navigation Full Width */
nav {
    width: 100% !important;
    max-width: none !important;
}

.nav-container {
    max-width: none !important;
    padding: 0 clamp(1rem, 5vw, 6rem) !important;
    width: 100% !important;
}

/* Footer Full Width */
footer {
    width: 100% !important;
    max-width: none !important;
}

.footer-content {
    max-width: none !important;
    padding: 3rem clamp(1rem, 5vw, 6rem) !important;
    width: 100% !important;
}

/* Map Container Full Width */
#map {
    width: 100% !important;
    height: 70vh !important;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr !important;
        padding: 0 2rem !important;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        padding: 1.5rem 2rem !important;
    }

    .container {
        padding: 0 2rem !important;
    }
}

/* Desktop (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .hero-container {
        grid-template-columns: 2fr 1fr !important;
        padding: 0 3rem !important;
    }

    .hero-dynamics {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        padding: 2rem 3rem !important;
    }
}

/* Large Desktop (1441px - 1920px) */
@media (min-width: 1441px) and (max-width: 1920px) {
    .hero-container {
        grid-template-columns: 2fr 1.5fr !important;
        padding: 0 4rem !important;
        gap: 3rem !important;
    }

    .hero-dynamics {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem !important;
        padding-top: 0 !important;
    }

    .hero-panel {
        min-height: 320px !important;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
        padding: 2rem 4rem !important;
        gap: 2rem !important;
    }
}

/* Ultra Wide (1921px+) */
@media (min-width: 1921px) {
    .hero-container {
        grid-template-columns: 3fr 2fr !important;
        padding: 0 6rem !important;
        gap: 4rem !important;
    }

    .hero-dynamics {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2.5rem !important;
    }

    .hero-panel {
        min-height: 350px !important;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
        padding: 3rem 6rem !important;
        gap: 2.5rem !important;
    }

    .stat-item {
        padding: 1rem 1.5rem !important;
    }

    .hero-stats-bar {
        gap: 2rem !important;
        margin-bottom: 3rem !important;
    }
}

/* 4K and Beyond (2560px+) */
@media (min-width: 2560px) {
    .hero-container {
        padding: 0 8rem !important;
        gap: 5rem !important;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
        padding: 3rem 8rem !important;
        gap: 3rem !important;
    }

    .hero-panel {
        min-height: 400px !important;
        padding: 2rem !important;
    }

    .panel-header h3 {
        font-size: 1.3rem !important;
    }

    .reward-amount {
        font-size: 1.8rem !important;
    }

    .item-type {
        font-size: 1.1rem !important;
    }
}

/* Mobile First Adjustments */
@media (max-width: 767px) {
    .hero {
        padding: 1rem 0 !important;
    }

    .hero-container {
        grid-template-columns: 1fr !important;
        padding: 0 1rem !important;
    }

    .hero-dynamics {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .hero-panel {
        min-height: auto !important;
    }

    .results-grid {
        grid-template-columns: 1fr !important;
        padding: 1rem !important;
    }

    .container {
        padding: 0 1rem !important;
    }

    .nav-container {
        padding: 0 1rem !important;
    }

    .footer-content {
        padding: 2rem 1rem !important;
    }
}

/* Ensure search box stays reasonable width on ultra-wide */
.search-box {
    max-width: none !important;
    width: 100% !important;
}

.search-controls {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

@media (min-width: 1921px) {
    .search-controls {
        grid-template-columns: 2fr 1fr !important;
    }
}

/* Force full width on section headers */
.section-header {
    width: 100% !important;
    max-width: none !important;
    padding: 2rem 0 !important;
}

/* Ensure modals stay centered */
.modal-content {
    max-width: 90vw !important;
    width: auto !important;
}

/* Remove any remaining width restrictions */
* {
    max-width: none;
}

/* Re-apply max-width only where needed for readability */
p,
.hero-subtitle,
.activity-text,
.item-description {
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1921px) {
    p,
    .hero-subtitle,
    .activity-text,
    .item-description {
        max-width: 85ch;
    }
}

/* ============================================================================
   END AGGRESSIVE FULL-WIDTH OVERRIDES
   ============================================================================ */
/* ============================================================================
   HERO DYNAMICS FULL WIDTH LAYOUT
   ============================================================================ */

/* Hero container - single column full width layout */
.hero-container {
    grid-template-columns: 1fr !important;
    width: 100% !important;
}

/* Hero main section - contains stats and trust indicators */
.hero-main {
    width: 100% !important;
    padding: 0 !important;
}

/* Hero dynamics - 3 column horizontal layout */
.hero-dynamics {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    padding: 0 !important;
    margin-top: 2rem !important;
}

/* Hero panels - equal width */
.hero-panel {
    width: 100% !important;
    min-height: 350px !important;
}

/* Stats bar - horizontal spread */
.hero-stats-bar {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    gap: 4rem !important;
    flex-wrap: wrap !important;
    margin-bottom: 2rem !important;
}

/* Trust indicators - centered below stats */
.trust-indicators-compact {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    gap: 3rem !important;
    margin-top: 2rem !important;
    flex-wrap: wrap !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-dynamics {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .hero-panel {
        min-height: auto !important;
        max-width: 600px !important;
        margin: 0 auto !important;
    }
}

@media (min-width: 1201px) and (max-width: 1600px) {
    .hero-dynamics {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .hero-panel {
        min-height: 320px !important;
    }
}

@media (min-width: 1601px) {
    .hero-dynamics {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2.5rem !important;
    }
    
    .hero-panel {
        min-height: 380px !important;
    }
    
    .hero-stats-bar {
        gap: 6rem !important;
    }
}

/* Mobile layout */
@media (max-width: 768px) {
    .hero-dynamics {
        display: block !important;
    }
    
    .hero-panel {
        margin-bottom: 1.5rem !important;
        min-height: auto !important;
    }
    
    .hero-stats-bar {
        gap: 1rem !important;
        justify-content: space-around !important;
    }
    
    .stat-item {
        flex: 1 !important;
        min-width: auto !important;
    }
    
    .trust-indicators-compact {
        gap: 1rem !important;
    }
}

/* Tablet layout */
@media (min-width: 769px) and (max-width: 1200px) {
    .hero-dynamics {
        grid-template-columns: 1fr !important;
    }
    
    .hero-panel {
        max-width: 700px !important;
        margin: 0 auto !important;
    }
    
    .hero-stats-bar {
        gap: 2rem !important;
    }
}

/* Remove any conflicting grid templates */
.hero-container > * {
    width: 100% !important;
}

/* ============================================================================
   END HERO DYNAMICS FULL WIDTH LAYOUT
   ============================================================================ */
