/* styles.css */
:root {
    --dark-color: hsl(var(--hue-complimentary2), 50%, 10%);
    --light-color: hsl(var(--hue), 100%, 85%);
    --base: hsl(var(--hue), 100%, 50%);
    --complimentary1: hsl(var(--hue-complimentary1), 35%, 10%);
    --complimentary2: hsl(var(--hue-complimentary2), 80%, 60%);
  
    --bg-gradient: linear-gradient(
      to right,
      hsl(var(--hue), 0%, 0%),
      hsl(var(--hue), 80%, 5%)
    );
  }

body {
    background-color: #121212;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    margin: 0;
    padding: 20px;
    text-align: center;
    min-height: 100%;
}

h1 {
    color: var(--light-color);
    font-family: "Alfa Slab One", serif;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 1.5em;
    font-size: 4em;
    line-height: 0.4em;
}

.info a {
    color: var(--base);
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 0.2em;
    text-decoration: none;
    margin-left: 15em;
}

p {
    font-size: 1em;
    margin-bottom: 2em;
}

#greeting {
    color: var(--complimentary2);
    font-weight: 700;
}

.input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    margin-bottom: 1em;
}
textarea, button {
    background-color: var(--light-color);
    border: none;
    border-radius: 20px;
    font-weight: 600;
    color: #121212;
    font-size: 1em;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-family: "Montserrat", sans-serif;
}
textarea {
    width: calc(100% - 40px);
    max-width: 800px;
    height: 60px;
    resize: none;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
}
textarea:focus {
    outline: 2px solid var(--base);
}
button:hover {
    background-color: var(--dark-color);
    color: var(--light-color);
}
button:disabled {
    background-color: #555;
    color: #aaa;
    cursor: not-allowed;
}

#playlist {
    margin-top: 20px;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    background-color: #282828a0;
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 40px;
}
#playlist h2 {
    color: var(--base);
    font-size: 1.5em;
    margin-bottom: 1.5em;
}
.track-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
    padding: 5px;
    background-color: #2c2c2c;
    border-radius: 30px;
    transition: background-color 0.2s;
}

.track-item :hover {
    background-color: #1b1b1b;
    border-radius: 20px;
}

.track-item a {
    color: var(--complimentary2);
    text-decoration: none;
}

.regenerate-button {
    background-color: var(--dark-color);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.progress-container {
    width: 80%;
    background-color: #555;
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
}
.progress-bar {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--base), var(--complimentary2), var(--base));
    background-size: 200% 100%;
    animation: progress-animation 3s ease-in-out infinite;
    border-radius: 10px;
}
@keyframes progress-animation {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.regenerate-button:hover {
    background-color: var(--complimentary1);
}

.limited {
    color: var(--light-color);
    font-size: 0.8em;
    padding-top: 4em;
}

#requestAccessForm {
    padding-top: 2em;
}

input {
    color: var(--base);
    background-color: var(--dark-color);
    border: none;
    border-radius: 20px;
    height: 1.5em;
    width: 18em;
    padding: 0.75em;
    margin: 0.5em;
}

footer {
    margin-top: 8em;
    border-top: 1px solid #777;
    font-size: 0.8em;
    color: var(--light-color);
}

.links {
    margin-top: 2em;
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: var(--complimentary2);
    padding: 0.75em;
    font-weight: 600;
}

.copyright {
    color: var(--light-color);
    line-height: 2em;
}

.heart {
    background-image: linear-gradient(
      250deg,
      var(--base) 25%,
      var(--complimentary2)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
  }

.mail {
    font-style: italic;
    font-weight: 500;
}

img {
    width: 3em;
    margin-top: 1em;
}

.disclaim {

    font-style: italic;
    font-size: 0.8em;
    color: #777;
    line-height: 1.5em;
    margin-top: 2em;
    margin-bottom: 2em;
}

.version {
    font-style: italic;
    font-size: 0.8em;
    color: var(--base);
}

.playlist-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    margin-bottom: 1.5em;
}

#cover-art {
    width: 250px;
    height: 250px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.cover-art-loading {
    width: 250px;
    height: 250px;
    border-radius: 20px;
    background-color: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    background: linear-gradient(90deg, #2c2c2c 25%, #3c3c3c 50%, #2c2c2c 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 2s infinite linear;
}

@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.track-list {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}