/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */

@media (max-width: 1024px) and (hover: none) and (pointer: coarse) {
    :root {
        --mobile-content-max: 450px;
    }

    .section {
        padding-left: clamp(14px, 3.6vw, 24px);
        padding-right: clamp(14px, 3.6vw, 24px);
    }

    #quiz .quiz-wrapper,
    #biography .bio-content,
    #music .music-tracks-container,
    #gallery .gallery-grid,
    #contacts .contacts-content,
    #toggle-section .toggle-content,
    #media-hub .media-hub-shell {
        width: min(100%, var(--mobile-content-max));
        margin-left: auto;
        margin-right: auto;
    }

    #gallery .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #latest-release .releases-grid.two-columns,
    #latest-release .releases-grid.two-columns .release-card,
    #latest-release #recent-release-card,
    #latest-release #tiktok-side-widget {
        width: min(100%, var(--mobile-content-max));
        margin-left: auto;
        margin-right: auto;
    }

    #latest-release .releases-grid.two-columns {
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 901px) and (max-width: 1024px) and (hover: none) and (pointer: coarse) {
    :root {
        --mobile-content-max: 680px;
    }
}

@media (max-width: 1024px) and (hover: none) and (pointer: coarse) {
    /* Global Spacing */
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }

    .section {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .section-title {
        font-size: 2rem;
    }

    /* Release Section */
    .release-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    /* This applies to the main release section card, not hero cards */
    .release-section .release-artwork {
        margin-bottom: 0;
        width: 100% !important; /* Force full width of container */
        max-width: 280px !important; /* Limit max width */
        height: auto !important;
        aspect-ratio: 1;
    }


    .artwork-placeholder {
        width: 100%;
        height: 100%;
    }

    .release-info {
        width: 100%;
        align-items: center;
    }

    .release-track-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .release-date {
        text-align: center;
    }

    .release-actions {
        width: 100%;
    }

    .streaming-links {
        grid-template-columns: 1fr; /* Stack buttons */
        gap: 0.8rem;
    }

    .stream-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }

    /* Show Section */
    .show-card, .show-card.no-show {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Hero cards are styled only in static/styles/hero/hero-cards.css */

    
    .show-details h3 {
        text-align: left !important;
        font-size: 1.2rem;
        line-height: 1.2;
        margin-bottom: 0.2rem;
    }
    
    .venue-details {
        align-items: flex-start !important;
        text-align: left !important;
    }
    
    .venue-details span {
        text-align: left;
        font-size: 0.85rem;
    }
    
    #upcoming-show-ticket-btn {
        justify-content: center;
        width: 100%;
        display: flex;
        margin-top: 0;
        height: 36px;
        padding: 0.5rem 1rem;
    }
    

    .show-date {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
    }

    .show-details {
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 0 !important; /* Remove min-width constraint */
        text-align: center !important;
    }
    
    .show-details h3 {
        text-align: center !important;
        width: 100%;
        font-size: 1.5rem; /* Reduce font size for mobile */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .venue-details {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100%;
    }
    
    .venue-details span {
        margin-left: 0 !important; /* Override inline style */
        display: block;
        text-align: center;
    }

    #upcoming-show-ticket-btn {
        width: 100%;
        text-align: center;
        margin-top: var(--spacing-sm);
        display: flex;
        justify-content: center;
    }

    /* Bio Section */
    .bio-content {
        padding: var(--spacing-md);
    }

    /* Gallery Section */
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--spacing-md);
    }

    /* Disable hover effects on mobile to prevent accidental triggering during scroll */
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .gallery-item:hover .gallery-item-overlay {
        opacity: 0;
    }
    
    .gallery-item:hover .view-btn {
        opacity: 0;
        transform: translateY(10px);
    }
    
    /* Optional: Show overlay on active state (press) if desired, 
       but kept minimal to avoid scroll interference */
    .gallery-item:active .gallery-item-overlay {
        opacity: 1;
        transition: opacity 0.1s;
    }
    
    /* Modal */
    .modal-close {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .loader-numbers {
        font-size: 3rem;
    }
}
