/* Atmosphere Page Mobile Improvements - Section 1: Summary */

/* Improve atmosphere summary mobile responsiveness */
@media (max-width: 768px) {
    /* Better heading typography scaling */
    .atmosphere-summary .heading > div {
        font-size: 5.5vw !important;
        line-height: 1.2;
    }
    
    /* Optimize logo sizing for mobile - Target the main Atmosphere Logo */
    .atmosphere-summary .heading img[alt="Atmosphere Logo"] {
        max-height: 67px !important;
        margin-top: 20px;
        padding-left: 5px !important;
    }
    
    /* Improve video container spacing */
    .atmosphere-summary .multividWrap {
        margin: 20px 10px;
    }
    
    .atmosphere-summary .vimeoVideo {
        margin: 20px 5px !important;
    }
    
    /* Better video description text */
    .atmosphere-summary .vimeoVideo p {
        font-size: 14px;
        font-weight: 500;
    }
    
    /* Improve subheader readability */
    .atmosphere-page .subheader {
        font-size: 6vw !important;
        padding: 0 15px;
        line-height: 1.3;
    }
    
    /* Add margin to h2 on mobile */
    .atmosphere-page h2 {
        margin-top: 50px !important;
    }
}

/* Additional refinements for very small screens */
@media (max-width: 480px) {
    /* Further optimize heading for small screens */
    .atmosphere-summary .heading > div {
        font-size: 6vw !important;
    }
    
    /* Smaller logo for very small screens - Target the main Atmosphere Logo */
    .atmosphere-summary .heading img[alt="Atmosphere Logo"] {
        max-height: 67px !important;
        margin-top: 20px;
        padding-left: 5px !important;
    }
    
    /* Tighter video spacing */
    .atmosphere-summary .vimeoVideo {
        margin: 15px 0 !important;
    }
    
    /* Better subheader sizing */
    .atmosphere-page .subheader {
        font-size: 7vw !important;
        padding: 0 10px;
    }
}

/* Section 2: Atmosphere Categories Mobile Improvements */
@media (max-width: 768px) {
    /* Move category text below images on mobile */
    .atmosphere-categories > div {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        background: #ffffff !important;
        margin: 10px 5px !important;
        padding: 15px 10px !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    /* Ensure images are properly sized to fill screen width */
    .atmosphere-categories > div > img {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        border-radius: 5px !important;
        margin-bottom: 10px !important;
    }
    
    /* Position text below images instead of overlay */
    .atmosphere-categories > div > div {
        position: static !important;
        background: none !important;
        color: #333 !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        text-align: center !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        width: 100% !important;
        text-shadow: none !important;
    }
    
    /* Enhanced touch targets for mobile */
    .atmosphere-categories > div {
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .atmosphere-categories > div:hover,
    .atmosphere-categories > div:active {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
}

@media (max-width: 480px) {
    /* Tighter spacing for small screens */
    .atmosphere-categories > div {
        margin: 8px 2px !important;
        padding: 12px 8px !important;
    }
    
    .atmosphere-categories > div > img {
        max-width: none !important;
    }
    
    .atmosphere-categories > div > div {
        font-size: 16px !important;
    }
}

/* Section 3: Atmosphere Groups Mobile Improvements */
@media (max-width: 768px) {
    /* Restructure atmosphere groups for mobile */
    .atmosphere-group {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 20px 0 !important;
        background: #ffffff !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        overflow: hidden !important;
    }
    
    /* Make background images full width and responsive */
    .atmosphere-group > img {
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        position: relative !important;
        display: block !important;
    }
    
    /* Move section wrapper below image instead of overlay */
    .atmosphere-group .section-wrapper {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px 15px !important;
        background: #ffffff !important;
        visibility: visible !important;
    }
    
    /* Style section titles for mobile */
    .atmosphere-group .section-title {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
        color: #333 !important;
        text-align: center !important;
    }
    
    /* Style section body text for mobile */
    .atmosphere-group .section-body {
        font-size: 16px !important;
        line-height: 1.5 !important;
        color: #666 !important;
        text-align: center !important;
        margin-bottom: 15px !important;
    }
    
    /* Style section images within content */
    .atmosphere-group .section-image {
        max-width: 80px !important;
        height: auto !important;
        margin-bottom: 10px !important;
    }
    
    /* Change Dante logo to black version on mobile */
    .atmosphere-group .section-title img[alt="Dante Enabled Options"] {
        content: url('https://i.atlasied.com/atlasied/Atmosphere/Dante-Enabled-Options-Logo-blk.png') !important;
    }
    
    /* Style buttons in sections */
    .atmosphere-group .bluebutton {
        display: inline-block !important;
        width: auto !important;
        max-width: 200px !important;
        text-align: center !important;
        font-size: 14px !important;
        padding: 12px 20px !important;
    }
}

@media (max-width: 480px) {
    /* Adjust spacing for small screens */
    .atmosphere-group {
        margin: 15px 0 !important;
    }
    
    .atmosphere-group .section-wrapper {
        padding: 15px 12px !important;
    }
    
    .atmosphere-group .section-title {
        font-size: 18px !important;
    }
    
    .atmosphere-group .section-body {
        font-size: 14px !important;
    }
    
    .atmosphere-group .section-image {
        max-width: 60px !important;
    }
}
