/* public/assets/css/style.css */

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

.site-header {
    background: #111827;
    border-bottom: 1px solid #1f2937;
    padding: 1rem;
}

.site-header__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.site-header h1 {
    margin: 0;
    font-size: 1.4rem;
}

.site-nav a {
    color: #9ca3af;
    margin-right: 1rem;
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: #facc15;
}

.site-main {
    max-width: 960px;
    margin: 1.5rem auto 2rem;
    padding: 0 1rem;
}

.section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #111827;
    border-radius: 8px;
    border: 1px solid #1f2937;
}

.section h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.search-bar {
    display: flex;
    gap: .5rem;
    margin-bottom: 0.5rem;
}

.search-bar input[type="text"] {
    flex: 1;
    padding: .5rem .75rem;
    border-radius: 6px;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
}

.search-bar button {
    padding: .5rem .75rem;
    border-radius: 6px;
    border: none;
    background: #f97316;
    color: #020617;
    font-weight: 600;
    cursor: pointer;
}

.search-bar button:hover {
    background: #fb923c;
}

.fun-text {
    font-style: italic;
    color: #9ca3af;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #1f2937;
}

.card-list li:last-child {
    border-bottom: none;
}

.site-footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #1f2937;
    color: #9ca3af;
    font-size: 0.85rem;
}

.wish-form .form-row {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin-bottom: 0.9rem;
}

.wish-form label {
    font-size: 0.9rem;
    color: #d1d5db;
}

.wish-form input[type="text"],
.wish-form textarea,
.wish-form select {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.wish-form textarea {
    resize: vertical;
}

.wish-form button[type="submit"] {
    align-self: flex-start;
    padding: 0.6rem 1.1rem;
    border-radius: 6px;
    border: none;
    background: #22c55e;
    color: #022c22;
    font-weight: 600;
    cursor: pointer;
}

.wish-form button[type="submit"]:hover {
    background: #4ade80;
}

.wish-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-end;
}

.filter-row {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.filter-row label {
    font-size: 0.85rem;
    color: #9ca3af;
}

.filter-row select {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.filter-row button {
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    border: none;
    background: #3b82f6;
    color: #e5e7eb;
    cursor: pointer;
    font-weight: 600;
}
.filter-row button:hover {
    background: #60a5fa;
}

.wish-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wish-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #1f2937;
}

.wish-main {
    flex: 1;
}

.wish-title {
    font-size: 1rem;
    margin-bottom: .25rem;
}

.wish-artist {
    display: inline-block;
    margin-left: .4rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.wish-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.wish-requester {
    opacity: 0.9;
}

.wish-comment {
    font-size: 0.9rem;
    color: #e5e7eb;
    font-style: italic;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #111827;
    border: 1px solid #1f2937;
}

.badge-status-open {
    border-color: #22c55e;
    color: #bbf7d0;
}
.badge-status-in_playlist {
    border-color: #eab308;
    color: #fef3c7;
}
.badge-status-played {
    border-color: #3b82f6;
    color: #bfdbfe;
}
.badge-status-rejected {
    border-color: #f97316;
    color: #fed7aa;
}

.wish-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    min-width: 190px;
}

.like-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.btn-like {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: none;
    background: #f97316;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-like:hover {
    background: #fb923c;
}

.like-count {
    font-size: 0.8rem;
    color: #9ca3af;
}

#search-results {
    margin-top: 0.5rem;
    display: none;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    background: #020617;
    border: 1px solid #1f2937;
    max-height: 320px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #111827;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #0b1220;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.search-result-artist {
    font-size: 0.85rem;
    color: #9ca3af;
}

.search-result-album {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Glow-Effekte für beliebte Songs */
.glow-hot {
    border-radius: 8px;
    border: 1px solid #f97316;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
    background-image: radial-gradient(circle at top left, rgba(249, 115, 22, 0.15), transparent);
}

.glow-superhot {
    border-radius: 8px;
    border: 1px solid #ef4444;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.6);
    background-image: radial-gradient(circle at top left, rgba(239, 68, 68, 0.2), transparent);
}

/* Schneeflocken & Spielkarten Overlay */
.falling-element {
    position: fixed;
    top: -5vh;
    font-size: 1.4rem;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.9;
    animation-name: fall-down;
    animation-timing-function: linear;
    animation-iteration-count: 1;
}

.falling-element.card {
    font-size: 1.8rem;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
}

/* leichte Variation für rote Karten */
.falling-element.card.red {
    color: #ef4444;
}

/* Fall-Animation */
@keyframes fall-down {
    0% {
        transform: translate3d(0, -10vh, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    100% {
        transform: translate3d(0, 110vh, 0) rotate(360deg);
        opacity: 0;
    }
}

body {
    background: radial-gradient(circle at top, #1a1f2b, #0a0f1a 60%);
    color: #e5e7eb;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Glitzer-Effekt (sehr dezent) */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    background-image: url('https://www.transparenttextures.com/patterns/dark-mosaic.png');
    opacity: 0.15;
    z-index: 0;
}

header {
    background: linear-gradient(90deg, #0f172a, #1e1b4b, #0f172a);
    padding: 1.4rem;
    text-align: center;
    border-bottom: 2px solid #facc15;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

header h1 {
    font-size: 2.2rem;
    color: #facc15;
    text-shadow: 0 0 10px #facc15;
}

button,
.btn {
    background: linear-gradient(90deg, #facc15, #f59e0b);
    color: #111;
    font-weight: 700;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

button:hover {
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.8);
    transform: scale(1.05);
}

.btn-like {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}
.btn-like:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.8);
}

.card-list li,
.wish-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
    transition: 0.2s;
}

.card-list li:hover,
.wish-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.3);
}

.glow-hot {
    border-color: #facc15 !important;
    box-shadow: 0 0 14px #facc15;
}

.glow-superhot {
    border-color: #f43f5e !important;
    box-shadow: 0 0 18px #f43f5e;
}

/* ===== HEADER-BANNER (512x512 angepasst) ===== */

.site-header {
    width: 100%;
    text-align: center;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.banner-img {
    display: block;
    margin: 0 auto;

    /* Hier wird das quadratische Bild zum Banner */

    height: auto;

    /* Bild optisch verkleinern */
    transform: scale(1);
    max-height: 200px;      /* so wird's zum Banner! */
    object-fit: contain;

    /* Casino-Glow */
    border-radius: 10px;
    box-shadow:
            0 0 10px rgba(250, 204, 21, 0.35),
            0 0 25px rgba(250, 204, 21, 0.15);
}

/* ===== Sticky Spotify Player ===== */

#sticky-player {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 900px;
    padding: 0.5rem;

    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.55);
    border-top: 2px solid rgba(250, 204, 21, 0.4);

    box-shadow:
            0 -2px 12px rgba(250, 204, 21, 0.25),
            0 -2px 20px rgba(244, 63, 94, 0.15);

    border-radius: 12px 12px 0 0;

    z-index: 999999;
}

#sticky-player iframe {
    border-radius: 8px;
    width: 100%;
}

/* Close-X Button */
#player-close {
    position: absolute;
    top: -10px;
    right: 10px;

    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(250, 204, 21, 0.6);
    color: #facc15;

    border-radius: 999px;
    width: 24px;
    height: 24px;

    font-size: 16px;
    line-height: 20px;
    cursor: pointer;

    box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

#player-close:hover {
    background: rgba(250, 204, 21, 0.8);
    color: #111;
}
