/* /public/css/binaural-frequencies.css */

body,
html {
    background: linear-gradient(105deg, #191c22 0%, #282a34 38%, #393b47 100%);
    background-attachment: fixed !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden; /* Safety */
}

.container,
.container *:not(.nav-info-desc) {
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif !important;
}
.container {
    margin: 50px auto 0 auto;
    width: 800px;
    padding-top: 24px;
    padding-bottom: 24px;
    background: rgba(40, 44, 52, 0.3);
    border-radius: 1.2rem;
    box-shadow: 0 6px 32px 0 rgba(80, 100, 180, 0.2);
    backdrop-filter: blur(4px);
    margin-bottom: 50px !important;
}
.container h1 {
    text-align: center;
    width: 100%;
    margin: 0 auto 2.5rem auto; /* move it away from top and bottom */
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: 1.3px;
    color: #dde7ff;
    text-shadow: 0 2px 12px #1b2135aa;
}

.audio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.audio-card {
    background: rgba(60, 65, 75, 0.92);
    border-radius: 1.1rem;
    box-shadow: 0 8px 24px rgba(90, 100, 130, 0.14);
    width: 200px;
    padding: 28px 18px 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition:
        transform 0.18s,
        box-shadow 0.18s,
        background 0.5s;
    position: relative;
}
.audio-card:hover {
    transform: translateY(-8px) scale(1.035);
    background: rgba(110, 115, 130, 0.93);
    box-shadow: 0 20px 36px rgba(110, 120, 160, 0.18);
}
.audio-title {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.8px;
    text-align: center;
    color: #e6ecf8;
    text-shadow: 0 1px 6px #2a303880;
    min-height: 3.2em; /* ADD THIS LINE */
}
.audio-player {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7em;
}
.audio-btn {
    background: linear-gradient(135deg, #5a6371 40%, #6e7581 95%);
    border: 1px solid #adb5c8;
    outline: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.6em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(60, 60, 110, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.18s,
        border 0.18s,
        color 0.18s;
    padding: 0;
    line-height: 1;
    padding-top: 1px;
}
.audio-btn:hover {
    box-shadow:
        0 0 0 3px #98b3ff40,
        /* very soft outer layer */ 0 0 8px 4px #bbcaff80,
        /* main blue glow */ 0 0 20px 8px #90e0ff40; /* expanded blue, subtle */
    border-color: #c2e4fa;
    color: #fff;
    background: linear-gradient(135deg, #708fe7 20%, #94e3ff 100%);
    transition:
        box-shadow 0.18s,
        border 0.18s,
        background 0.18s;
    /* If you want to also slightly scale for a "pop" effect: */
    transform: scale(1.08);
}
.audio-btn:active {
    background: linear-gradient(135deg, #708fe7 20%, #94e3ff 100%);
    border-color: #c2e4fa;
    color: #fff;
    box-shadow: 0 0 16px 6px rgba(120, 170, 255, 0.35);
    transform: scale(0.96);
    transition: all 0.15s ease;
}
.audio-btn:focus-visible {
    outline: 3px solid #98b3ff;
    outline-offset: 2px;
}

.audio-file {
    width: 118px;
}
::-webkit-scrollbar {
    width: 10px;
    background: #414859;
}
::-webkit-scrollbar-thumb {
    background: #5a6371;
    border-radius: 6px;
}

@media (max-width: 850px) {
    .container {
        padding: 7vw 2.5vw;
        width: 98vw;
        max-width: 98vw;
        box-sizing: border-box;
    }
    .audio-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.1rem;
        justify-items: center;
        width: 100%;
    }
    .audio-card {
        width: 98%;
        max-width: 330px;
        min-width: 0;
        font-size: 0.85em;
        margin: 0;
        box-sizing: border-box;
    }
    .audio-title {
        font-size: 1em;
    }
}
@media (max-width: 650px) {
    .container {
        padding: 7vw 2.5vw;
        width: 98vw;
        max-width: 98vw;
        box-sizing: border-box;
    }
    .audio-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.1rem;
        width: 100%;
    }
    .audio-card {
        width: 94vw;
        max-width: 98vw;
        min-width: 120px;
        font-size: 0.85em;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .audio-title {
        font-size: 1em;
    }
}

@media (max-width: 600px) {
    #toggle-binaural-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 25px !important;
    }
    #toggle-info-btn {
        width: 40px !important;
        height: 40px !important;
    }

    #info-icon {
        font-size: 25px !important;
        margin-right: 1px !important;
    }
    h1 {
        padding-top: 25px !important;
    }
    #info-dropdown {
        left: 5px !important;
    }
}

/*Headphone btn hover*/
.tooltip-container {
    position: fixed;
    top: 18px;
    right: 26px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tooltip-container .tooltip-text {
    position: absolute;
    top: -42px;
    right: 0;
    left: auto;
    background: rgba(34, 38, 60, 0.97);
    color: #ffd85f;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 1em;
    max-width: 340px;
    min-width: 180px;
    white-space: nowrap;
    overflow-wrap: break-word;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    box-shadow: 0 2px 14px #00152533;
    pointer-events: none;
    transition:
        opacity 0.14s,
        visibility 0s linear 0.16s;
    z-index: 10001;
}
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}
@media (max-width: 500px) {
    .tooltip-container .tooltip-text {
        max-width: 92vw;
        min-width: unset;
        white-space: normal;
        right: 0;
        top: 48px;
        font-size: 0.93em;
        padding: 7px 6vw;
        box-sizing: border-box;
    }
}

.audio-btn.playing {
    box-shadow:
        0 0 8px 2px #ffe68077,
        0 0 16px 6px #fffbe87a,
        0 0 38px 8px #fff9d844;
    border-color: #ffeaa688;
    color: #ffffff99;
    background: radial-gradient(
        circle at 60% 45%,
        #fffbe6bb 0%,
        #ffe16d66 65%,
        #fada1a55 100%
    );
    transition:
        box-shadow 0.22s,
        border 0.18s,
        background 0.23s;
}

.info-tooltip-container button {
    background: linear-gradient(135deg, #576397 40%, #82a7eb 110%);
    color: #fff;
    border: none;
    border-radius: 1.25rem;
    width: 46px;
    height: 46px;
    font-size: 1.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        0 0 20px #232a3d22,
        0 1.5px 8px rgba(90, 110, 210, 0.13);
    transition:
        background 0.17s,
        color 0.11s,
        top 0.14s;
}
#info-dropdown {
    transition: opacity 0.13s;
}

#toggle-info-btn,
#toggle-binaural-btn {
    position: relative;
    z-index: 1;
    transition:
        background 0.17s,
        color 0.11s,
        top 0.14s,
        box-shadow 0.17s,
        transform 0.14s;
}

#toggle-info-btn::after,
#toggle-binaural-btn::after {
    content: "";
    position: absolute;
    left: -10px;
    top: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    z-index: -1;
    background: radial-gradient(
        circle,
        #67aaff5c 0%,
        #2a7fff33 80%,
        transparent 100%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

#toggle-info-btn:hover::after,
#toggle-binaural-btn:hover::after {
    opacity: 1;
}

#toggle-info-btn:hover,
#toggle-binaural-btn:hover {
    box-shadow:
        0 0 0 7px #8cb1ff80,
        0 1.5px 14px #a6c8ff68;
    background: linear-gradient(135deg, #92bfff 40%, #dfedff 110%);
    color: #233c7a;
    transform: scale(1.13);
}
