
/* ====================================
   ENHANCED MOBILE IMPROVEMENTS
   ==================================== */

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .movie-card:hover,
    .tech-card:hover,
    .cinema-profile:hover,
    .manager-profile:hover,
    .story-card:hover,
    .passion-item:hover,
    .btn:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Keep original styles for touch devices */
    .movie-card,
    .tech-card,
    .cinema-profile,
    .manager-profile {
        transform: none;
    }
}

/* ====================================
   ISSUE 1: FIX HERO STATS - HIDE ON MOBILE
   ==================================== */
@media (max-width: 768px) {
    /* Hide stats bar entirely on mobile */
    .netflix-stats-overlay {
        display: none !important;
    }
    
    /* Remove extra padding since no stats */
    .simple-hero {
        padding-bottom: 60px !important;
        min-height: auto !important;
    }
}

/* Better mobile typography */
@media (max-width: 768px) {
    /* Global font size adjustments */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* ====================================
       ISSUE 3: HERO TEXT WIDTH
       ==================================== */
    .simple-hero-content {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .simple-title,
    .simple-subtitle {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Section spacing */
    .section {
        padding: 50px 0;
    }
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Headings */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    h3 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    h4 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.75rem !important;
        line-height: 1.25;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
        line-height: 1.5;
        margin-bottom: 30px;
    }
    
    /* Paragraphs */
    p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    /* Cards and content blocks */
    .tech-card,
    .cinema-profile,
    .story-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    /* Better button spacing */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Grid improvements */
    .tech-grid,
    .profile-grid,
    .cinema-profiles .profile-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* Stats and metrics */
    .stat-number,
    .metric-big {
        font-size: 2rem !important;
    }
    
    .stat-label {
        font-size: 0.8rem !important;
    }
    
    /* Brand managers section */
    .brand-managers-showcase {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .manager-profile {
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Data section charts */
    .data-grid {
        grid-template-columns: 1fr !important;
    }
    
    .chart-container {
        height: 300px !important;
    }
    
    /* Reports section */
    .reports-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .report-card {
        padding: 20px;
    }
    
    /* Case studies */
    .story-cards {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* ====================================
       ISSUE 1: FIX SOLUTION CARD TEXT OVERFLOW
       STRONGEST fix for long titles like OSHC
       ==================================== */
    .solution-card {
        padding: 25px 20px !important;
        min-height: auto !important;
        position: relative !important;
    }
    
    .solution-card h3 {
        font-size: 1.05rem !important;
        margin-bottom: 35px !important;
        line-height: 1.7 !important;
        padding-bottom: 25px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        display: block !important;
        position: relative !important;
        min-height: 95px !important;
        /* Force multi-line titles to take full space */
        padding-top: 5px !important;
    }
    
    .solution-card h3::before {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 3px !important;
        background: linear-gradient(90deg, var(--brand-orange) 0%, transparent 100%) !important;
        display: block !important;
    }
    
    .solution-card p,
    .solution-card ul {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-top: 20px !important;
        clear: both !important;
        display: block !important;
        position: relative !important;
        z-index: 2 !important;
    }
    
    .solution-card li {
        margin-bottom: 8px !important;
        line-height: 1.5 !important;
    }
    
    /* ====================================
       ISSUE 2: FIX MAP STATS LAYOUT - CLEAN 2x2 GRID
       ==================================== */
    .map-stats-overlay {
        position: static !important;
        top: auto !important;
        right: auto !important;
        margin: 20px auto !important;
        width: 100% !important;
        max-width: 500px !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: 1fr 1fr !important;
        gap: 10px !important;
        padding: 15px !important;
    }
    
    .map-stats-overlay .stat-item {
        margin-bottom: 0 !important;
        padding: 15px 12px !important;
        text-align: center !important;
        background: rgba(37, 34, 51, 0.8) !important;
        border-radius: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* All 4 stats equal size in 2x2 grid */
    .map-stats-overlay .stat-item.population-coverage {
        grid-column: auto !important;
    }
    
    .map-stats-overlay .stat-number,
    .map-stats-overlay .population-percent {
        font-size: 1.6rem !important;
        display: block !important;
        margin-bottom: 4px !important;
        font-weight: 700 !important;
    }
    
    .map-stats-overlay .stat-label {
        font-size: 0.75rem !important;
        display: block !important;
        line-height: 1.2 !important;
    }
    
    /* ====================================
       ISSUE 4: FIX TECH CARD WASTED SPACE
       ==================================== */
    .tech-card {
        padding: 20px 18px !important;
        min-height: auto !important;
    }
    
    .tech-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
    }
    
    .tech-card p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
    }
    
    .tech-stat {
        margin-top: 12px !important;
        padding-top: 12px !important;
    }
    
    .stat-value {
        font-size: 1.4rem !important;
        margin-bottom: 4px !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
    }
    
    .tech-icon {
        font-size: 2rem !important;
        margin-bottom: 12px !important;
    }
    
    /* ====================================
       ISSUE 5: FIX CASE STUDY BUTTON SIZE
       ==================================== */
    .story-card {
        padding: 20px !important;
    }
    
    .story-card h4,
    .story-card .result-number {
        font-size: 1.3rem !important;
    }
    
    .story-card .result-text {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    .story-card button,
    .story-card .btn {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
        margin-top: 12px !important;
        width: 100% !important;
        max-width: 200px !important;
    }
    
    /* ====================================
       ISSUE 3: FIX EVENT CINEMAS LOGO BACKGROUND
       ==================================== */
    .cinema-logo img[alt*="Event"],
    .cinema-logo-img[alt*="Event"],
    img[alt*="Event Cinemas"],
    img[src*="event-logo"] {
        mix-blend-mode: normal !important;
        background: white !important;
        background-color: #ffffff !important;
        padding: 10px !important;
        border-radius: 6px !important;
        filter: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    /* Force white background on parent container too */
    .cinema-profile .cinema-logo {
        background: white !important;
        padding: 10px !important;
        border-radius: 8px !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2,
    .section-title {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem !important;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    .tech-card h3 {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.75rem !important;
    }
}
