@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&family=Roboto+Mono:wght@700&display=swap');

body {
    margin: 0; padding: 20px;
    font-family: 'Nunito', sans-serif; color: #374151;
    background-color: #fcfaf8;
    min-height: 100vh; overflow-x: hidden;
}

/* --- The Aurora Background --- */
.aurora-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; pointer-events: none; }
.orb {
    position: absolute; filter: blur(60px); opacity: 0.5; will-change: transform;
    animation: morph-light 16s infinite linear;
}
.orb-1 { top: -10%; left: -10%; width: 50vw; height: 50vh; background: #fbbf24; border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
.orb-2 { bottom: -10%; right: -10%; width: 60vw; height: 60vh; background: #f472b6; border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; animation-direction: reverse; }

@keyframes morph-light {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* --- Typography & Globals --- */
h1 { text-align: center; font-weight: 900; font-size: 2.5rem; color: #111827; margin-top: 20px; margin-bottom: 15px; }
a { color: #3b82f6; text-decoration: none; font-weight: bold; transition: 0.2s; }
a:hover { color: #2563eb; }

/* --- Sticky Search Bar --- */
.search-container { position: fixed; top: 20px; right: 20px; display: flex; align-items: center; z-index: 100; }
#searchInput {
    width: 0; opacity: 0; padding: 0; border: none; outline: none;
    background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 25px; font-family: 'Nunito', sans-serif; font-size: 16px; color: #111827;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#searchInput.active {
    width: 200px; opacity: 1; padding: 10px 15px; margin-right: 10px;
    border: 1px solid rgba(255, 255, 255, 1); box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.search-btn {
    background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 1); box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 18px; cursor: pointer; transition: 0.2s;
}
.search-btn:hover { transform: scale(1.05); background: rgba(255, 255, 255, 0.9); }

/* --- The Legend --- */
.legend-box {
    background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 30px;
    padding: 8px 20px; display: flex; justify-content: center; align-items: center; gap: 15px;
    margin: 0 auto 30px auto; max-width: fit-content; font-size: 13px; color: #4b5563;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.legend-item { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.legend-circle { width: 12px; height: 12px; border-radius: 50%; }
.legend-valcek { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.legend-polka { background: linear-gradient(135deg, #fb7185, #f43f5e); }

/* --- The Song List & Cards --- */
.list-container { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 40px; }
.song-box {
    background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 1); border-radius: 12px; padding: 10px 15px;
    display: flex; align-items: center; text-decoration: none; color: inherit;
    opacity: 0; transform: translateY(40px) scale(0.95);
    transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s, box-shadow 0.2s;
    will-change: opacity, transform; cursor: pointer;
}
.song-box.show { opacity: 1; transform: translateY(0) scale(1); }
.song-box.show:hover { transform: translateY(-3px) scale(1); box-shadow: 0 8px 20px rgba(0,0,0,0.08); background: rgba(255, 255, 255, 0.9); }

.id-circle {
    width: 38px; height: 38px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-family: 'Roboto Mono', monospace; font-size: 14px; font-weight: 700; color: #fff; margin-right: 12px; flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.valcek .id-circle { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.polka .id-circle { background: linear-gradient(135deg, #fb7185, #f43f5e); }

.song-details { flex-grow: 1; min-width: 0; }
.title { font-size: 16px; font-weight: 800; color: #111827; display: flex; align-items: center; gap: 5px; }
.title-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star { flex-shrink: 0; }
.artist { font-size: 13px; color: #6b7280; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Lyrics Page (song.php) Styles --- */
.top-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px;
    background: rgba(252, 250, 248, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); display: flex; align-items: center; padding: 0 20px;
    z-index: 1000; box-sizing: border-box;
}
.back-button {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: rgba(0,0,0,0.05); border-radius: 50%; 
    color: #374151; font-size: 20px; font-weight: bold; text-decoration: none; transition: 0.2s;
}
.back-button:active { background: rgba(0,0,0,0.1); transform: scale(0.95); }
.nav-title {
    flex-grow: 1; text-align: center; font-weight: 800; font-size: 18px; color: #111827;
    margin-right: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lyrics-wrapper { max-width: 650px; margin: 80px auto 40px auto; padding: 0 15px; }
.lyrics-card {
    background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 1); box-shadow: 0 8px 32px rgba(0,0,0,0.05);
    border-radius: 24px; padding: 50px 40px; text-align: center;
}
.song-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.song-title { font-size: 28px; font-weight: 900; color: #111827; margin: 0 0 5px 0; line-height: 1.2; }
.song-artist { font-size: 16px; color: #6b7280; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.lyrics-text { font-size: 20px; line-height: 1.9; color: #1f2937; font-weight: 700; }

/* --- Admin Panel Styles --- */
.admin-container { max-width: 600px; margin: 0 auto; margin-top: 20px; }
.obrazec {
    background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 1); border-radius: 16px; padding: 30px; margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}
.obrazec h3 { margin-top: 0; color: #111827; }
.obrazec label { display: block; margin-top: 15px; font-weight: bold; font-size: 14px; }
.obrazec input, .obrazec select, .obrazec textarea {
    width: 100%; padding: 12px; margin-top: 8px; box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8); border: 1px solid #d1d5db; border-radius: 8px;
    font-family: 'Nunito', sans-serif; font-size: 15px; outline: none; transition: 0.2s;
}
.obrazec input:focus, .obrazec textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
.obrazec button {
    margin-top: 20px; padding: 12px 20px; width: 100%;
    background: linear-gradient(135deg, #3b82f6, #2563eb); color: white;
    border: none; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.2s;
}
.obrazec button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.checkbox-row input[type="checkbox"] { width: 20px; height: 20px; margin: 0; cursor: pointer; }
.checkbox-row label { margin-top: 0; cursor: pointer; }

/* =======================================================
   ?? MOBILE RESPONSIVENESS (The Magic for Phones)
   ======================================================= */
@media (max-width: 768px) {
    /* Main body padding reduced to save screen space */
    body { padding: 15px 10px; }
    
    /* Push Nejc header down so the search bar doesn't overlap it */
    h1 { font-size: 2rem; margin-top: 60px; }

    /* Make search bar smart! It won't stretch off the screen anymore */
    .search-container { top: 15px; right: 15px; }
    #searchInput.active { width: calc(100vw - 90px); max-width: 300px; }

    /* Allow the legend items to wrap neatly onto two lines if needed */
    .legend-box { flex-wrap: wrap; padding: 10px 15px; gap: 10px; font-size: 12px; }

    /* Song list cards: slightly smaller padding and circles */
    .song-box { padding: 10px; }
    .id-circle { width: 32px; height: 32px; font-size: 13px; margin-right: 10px; }
    .title { font-size: 15px; }
    .artist { font-size: 12px; }

    /* Lyrics Page Mobile Overrides */
    .lyrics-card { padding: 30px 15px; border-radius: 16px; }
    .song-title { font-size: 24px; }
    .lyrics-text { font-size: 18px; line-height: 1.8; } /* Perfect reading size on phone */
    .nav-title { font-size: 16px; }

    /* Admin Panel Mobile Overrides */
    .obrazec { padding: 20px 15px; }
}