/* Reset basic styles for consistent embedding */
* {
    box-sizing: border-box;
    scrollbar-width: none;
    
}

html, body {
    margin: 0;
    padding: 0;
    overscroll-behavior-y: contain;
}
    
body::-webkit-scrollbar {
    width: 0; 
    height: 0;
  }

/* Description text styles */
.playlist-description {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #374151;
    line-height: 1.6;
    text-align: center;
}

@media only screen and (min-width: 900px) {
    .playlist-description {
        padding: 24px 32px;
    }
}

/* Example styles for the container */
#powerbeans-playlist {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    min-height: 400px;
    overflow: hidden;
    margin-top: 83px;
}

/* Navbar styles */
.navbar{
    display: flex;
    justify-content: center;
    background-color: black;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

.title-container {
    padding: 24px;
    width: 100%;
    max-width: 800px;
    display: flex
}

.title-container img {
    height: 28px;
}

@media only screen and (min-width: 900px) {
    .title-container {
        padding: 24px 32px ;
    } 
}



/* Help icon styles */

.help-icon:hover {
    opacity: 0.6;
}

.help-icon {
    position: absolute; /* inside navbar now */
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    background: black; /* blend with navbar background */
    color: #FFFFFF; /* white text for contrast */
    border: 1px solid #FFFFFF; /* white border */
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 1100;
    opacity: 1;
    transition: opacity 0.2s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 24px;
}

/* Overlay styles */
.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.help-overlay.active {
    opacity: 1;
    visibility: visible;
}

.help-content {
    max-width: 500px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.help-overlay.active .help-content {
    transform: translateY(0);
}

.help-content h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #111827;
    margin: 0 0 16px 0;
}

.help-content p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.help-content a {
    /* color: #15e852; */
    color: #0E560B;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.help-content a:hover {
    /* color: #15e852; */
    color: #0E560B;
    text-decoration: underline;
}

.help-content a::after {
    content: "\2197"; /* northeast arrow indicating external link */
    font-size: 0.75em;
    margin-left: 0.25em;
    vertical-align: text-top;
    display: inline-block;
    text-decoration: none;
    aria-hidden: true;
}

/* Close button styles */
.close-button {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 2100;
}

.close-button:hover {
    opacity: 1;
}

.close-button img {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(1) brightness(1.5);
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {

    #powerbeans-playlist {
        max-width: 100%;
        min-height: 350px;
    } 

    .help-content {
        margin: 20px;
        padding: 30px 20px;
    }

    .help-content h2 {
        font-size: 20px;
    }

    .help-content p {
        font-size: 14px;
    }
} 

/* Visually hidden (screen reader only) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
} 