/* === Global === */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

/* === Login-Container === */
#login-container {
    width: 90vw;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

/* === Wrapper (Titel + Box gemeinsam zentriert) === */
.login-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* === Titel === */
.app-title {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: #fff;
    text-align: center;
    transition: all 0.3s ease;
}

/* === Login-Box === */
.login-box {
    background: rgba(40, 40, 40, 0.85);
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* === Passwortfeld === */
.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

#pw {
    width: 100%;
    padding: 0.9rem 3rem 0.9rem 1rem;
    border: none;
    border-radius: 50px;
    background: #121212;
    color: #fff;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    text-align: center;
    z-index: 1;
}

/* === Passwort-Auge === */
#togglePw {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #b3b3b3;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

#togglePw:hover {
    color: #fff;
}


.eye {
    width: 1.4rem;
    height: 1.4rem;
    fill: currentColor;
    pointer-events: none;
}

/* === Login-Button === */
.btn-login {
    width: 100%;
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 50px;
    background-color: #1DB954;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-login:hover {
    background-color: #1ed760;
}

/* === Fehlermeldung === */
#loginError {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 0.8rem;
}

/* === Playlist und Suche === */
/* === Playlist === */
#main-content {
    width: 90vw;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    /* Abstand zwischen den Kacheln */
    margin: 0 auto;
    padding: 1rem;
}

/* Einheitlicher Kachel-Look */
.card {
    background: #242424;
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #222;
}

/* === Playlist-Container === */
#playlist-container {
    text-align: center;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2.4rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    color: #fff;
    text-align: center;
    margin-top: 0rem;
}

.spotify-link {
    display: flex;
    width: 80%;
    max-width: 300px;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 0.7rem;
    text-decoration: none;
    background: #1DB954;
    color: black;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: background 0.2s ease, transform 0.2s ease;
    margin: 0.4rem auto;
}

.spotify-link:hover {
    background: #1ed760;
    transform: scale(1.05);
}

.spotify-icon {
    width: 28px;
    height: 28px;
}

/* Suchfeld bleibt wie Login Input */
.search-wrapper {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}


/* === Such Input (gleicher Look wie #pw) === */
#searchInput {
    max-width: 80%;
    width: 2000px;
    padding: 0.9rem 3rem 0.9rem 1rem;
    border: none;
    border-radius: 50px;
    background: #121212;
    color: #fff;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    text-align: center;
}

#searchInput:focus {
    background: #333;
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.4);
}

/* === Ergebnis-Dropdown (für später) === */
#results {
    min-height: 50px;
    margin-top: 1rem;
    width: 100%;
    max-width: 500px;
    margin: 1rem auto 0 auto;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #222;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #2a2a2a;
    transition: 0.2s;
}

.result-item:hover {
    background: #2a2a2a;
    transform: scale(1.01);
}

.result-item .cover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 12px;
}

.result-item .info {
    flex: 1;
}

.result-item .title {
    font-weight: 600;
    color: #fff;
}

.result-item .artist {
    font-size: 0.9rem;
    color: #b3b3b3;
}

.add-btn {
    width: 36px;
    height: 36px;
    background: #1DB954;
    border: none;
    color: white;
    font-size: 22px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
    margin-left: 10px;
}

.add-btn:hover {
    transform: scale(1.15);
    background: #1ed760;
}

.puffer {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid grey;
}

p {
    text-align: center;
}




/* === Mobile Optimierung === */
@media (max-height: 700px) {

    /* Animation bei Tastatur */
    body.keyboard-up {
        justify-content: flex-start;
    }

    body.keyboard-up .title {
        transform: translateY(-15vh) scale(0.95);
        opacity: 0.9;
    }

    body.keyboard-up #login-container {
        transform: translateY(-12vh);
        opacity: 0.95;
    }
}

.hidden {
    display: none !important;
}
