/* mobile.css - Optimized mobile styles for Lichttropfen Records
   To be included after the main stylesheet for all pages */

@media screen and (max-width: 768px) {

    /* Initially visible */
    #mainNav {
        display: block;
        transition: all 0.3s ease;
    }

    /* Hidden when scrolled */
    #mainNav.hidden {
        display: none;
    }


    /* ---------- GLOBAL RESETS ---------- */

    /* Base spacing adjustments */
    body {
        overflow-x: hidden;
        font-size: 16px;
        line-height: 1.5;
    }

    /* Reset default spacing */
    * {
        margin-top: 0;
        margin-bottom: 0;
    }

    /* All sections */
    .section {
        padding: 2rem 0.25rem;
        margin: 0;
    }
    /* All section content */
    .section-content {
        padding: 0;
    }

    /* All cards, boxes and containers */
    .about-section,
    .book-section,
    .therapy-section,
    .music-card,
    .founder,
    .project-description,
    .etymology-card,
    .track-card,
    .contact-info {
        padding: 1.25rem;
        margin: 1rem 0;
        border-radius: 12px;
    }

    /* Fix all typography spacing */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        margin-bottom: 0.75rem;
    }

    p:last-child {
        margin-bottom: 0;
    }

    /* ---------- NAVIGATION ---------- */

    /* Show mobile navigation */
    nav {
        display: block;
        padding: 0.75rem 0;
    }

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

    .logo {
        font-size: 1.25rem;
    }

    /* Create mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 1rem;
        z-index: 1001;
        background: none;
        border: none;
        color: #e2e8f0;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 20, 25, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        z-index: 1000;
        padding: 2rem;
    }

    .nav-links.mobile-active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* ---------- HERO SECTION ---------- */

    .hero {
        height: 90vh;
        padding: 1rem;
    }

    .droplet-container {
        width: 100px;
        height: 130px;
        margin-bottom: 1.5rem;
    }

    .main-title {
        font-size: 2.5rem;
        letter-spacing: 0.2em;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 0.5em;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* ---------- ABOUT SECTION ---------- */

    .founders {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .founder-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* ---------- MUSIC SECTION ---------- */

    .music-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .music-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .othenia-button {
        margin-top: 0.75rem;
    }

    /* ---------- BOOK SECTION ---------- */

    .book-cover {
        width: 150px;
        height: 210px;
        margin: 0 auto 1.5rem;
    }

    .book-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .book-button {
        width: 80%;
        text-align: center;
    }

    /* ---------- THERAPY SECTION ---------- */

    .ai-partners {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* ---------- CONTACT SECTION ---------- */

    .social-links {
        gap: 1rem;
        margin: 1rem 0;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    /* ---------- FOOTER ---------- */

    footer {
        padding: 2rem 0;
        margin-top: 3rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1.5rem;
        justify-content: flex-start;
    }

    .footer-links a {
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }

    /* ---------- OTHENIA ANAMOS PAGE ---------- */

    .main-content {
        padding: 80px 0.25rem 2rem;
    }

    .project-header {
        margin-bottom: 2rem;
    }

    .project-title {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }

    .project-subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.2em;
    }

    .etymology-section {
        flex-direction: column;
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .etymology-card {
        min-width: initial;
    }

    .etymology-title {
        font-size: 1.5rem;
    }

    .section-divider {
        margin: 2rem auto;
    }

    .tracks-section {
        margin-top: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .track-list {
        gap: 1rem;
    }

    .track-header {
        padding: 1rem;
    }

    .track-title {
        font-size: 1.2rem;
    }

    .track-content.active {
        padding: 0 1rem 1rem;
    }

    .track-quote {
        margin: 1rem 0;
        padding-left: 0.75rem;
    }

    .video-container {
        margin: 1rem 0;
    }

    .infinity-symbol {
        font-size: 2rem;
    }

    /* ---------- UTILITIES ---------- */

    /* Improve spacing for stacked elements */
    .stack-compact>*+* {
        margin-top: 0.75rem;
    }

    /* Fix responsiveness of embedded content */
    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }

    /* Back to top button */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {

    /* Further reduce spacing */
    .section {
        padding: 1.5rem 0.25rem;
    }

    .about-section,
    .book-section,
    .therapy-section,
    .music-card,
    .founder,
    .project-description,
    .etymology-card,
    .track-card,
    .contact-info {
        padding: 1rem;
    }

    /* Smaller typography */
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Even smaller hero elements */
    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.3em;
    }

    .droplet-container {
        width: 80px;
        height: 110px;
    }

    /* Adjusted buttons */
    .cta-button,
    .book-button,
    .othenia-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Fix for older iOS devices */
@supports (-webkit-overflow-scrolling: touch) {

    /* Fix for iOS 100vh issue */
    .hero {
        height: 85vh;
        /* Slightly shorter to account for iOS UI */
    }

    /* Fix sticky hover effects on touch devices */
    .music-card:hover,
    .founder:hover,
    .track-card:hover,
    .cta-button:hover,
    .book-button:hover,
    .othenia-button:hover,
    .social-link:hover,
    .nav-links a:hover {
        transform: none;
    }

    /* Fix for smooth scrolling issues */
    html,
    body {
        -webkit-overflow-scrolling: touch;
    }
}