@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #0056b3;
    /* Scandinavian Blue */
    --primary-glow: rgba(0, 86, 179, 0.1);
    --bg-dark: #ffffff;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-dim: #666666;
    --accent: #0056b3;
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'consolas', sans-serif;
    font-size: 30px;
    background-color: #fafafa;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Background Animation */
.bg-blobs {
    display: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary-glow);
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.3;
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    background: rgba(255, 77, 77, 0.15);
    animation-delay: -5s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 100px) scale(1.1);
    }
}

header {
    margin-top: 1rem;
    text-align: center;
    padding: 0 1rem;
    width: 100%;
    max-width: 800px;
}

.logo {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    border: none;
    display: block;
    margin: 0 auto;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 1rem;
    z-index: 1;
}

.input-section {
    background: var(--card-bg);
    border: 1px solid #eeeeee;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    font-size: 1rem;
}

.input-group {
    position: relative;
}

label {
    display: block;
    font-size: 0.85rem;

    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

input {
    width: 100%;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1.1rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button.secondary {
    background: #f8f9fa;
    color: var(--text-main);
    border: 1px solid #dee2e6;
}

.action-buttons {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.visible .action-buttons {
    display: grid;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.2);
    filter: brightness(1.05);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Lyrics Section */
.lyrics-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.lyrics-container.visible {
    opacity: 1;
    transform: translateY(0);

}

.lyrics-card {
    background: var(--card-bg);
    border: 1px solid #eeeeee;
    padding: 3rem;
    border-radius: 16px;
    line-height: 1.8;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}


.section-label {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.8;
}

.lyric-line {
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
    color: var(--text-main);
}

.lyric-line:hover {
    color: var(--primary);
}

.chorus {
    padding: 1rem 0;
    margin: 1.5rem 0;
}

.loader {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading .loader {
    display: block;
}

.loading .button-text {
    display: none;
}

/* Footer & Info Link */
.footer-info {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;

}

.info-link {
    background: transparent;
    border: 1px solid #e0e0e0;
    color: var(--text-dim);
    font-size: 0.6rem;
    cursor: pointer;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-link:hover {
    border-color: var(--primary);
}

.music-toggle-btn {
    min-height: 2.35rem;
    padding: 0.55rem 1rem;
    white-space: nowrap;
}

.music-toggle-icon {
    font-size: 1rem;
    line-height: 1;
}

.music-toggle-btn.is-playing {
    color: var(--primary);
    border-color: rgba(0, 86, 179, 0.35);
    background: rgba(0, 86, 179, 0.06);
}

.joke-disclaimer {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--primary);
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    justify-content: center;
    align-items: center;
    padding: 20px;

}

.modal.show {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border: 3px solid #eeeeee;
    width: 100%;
    max-width: 900px;
    padding: 2.5rem;
    border-radius: 32px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);

}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--text-dim);
    cursor: pointer;
}

.close-btn:hover {
    color: var(--primary);
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.modal-body h3 {
    margin: 1.5rem 0 0.5rem 0;
    color: #000;
    font-size: 1.2rem;
}
.modal-body h4 {
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.4rem;
	color: var(--primary);
}


.modal-body p,
.modal-body ul {
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.modal-body ul {
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* Info Graphic */
.info-graphic-panel {
    margin: 0 0 2rem;
}

.info-graphic-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    border: 1px solid rgba(0, 86, 179, 0.12);
    box-shadow: 0 18px 40px rgba(0, 86, 179, 0.08);
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.info-graphic-caption {
    margin: 0.85rem 0 0;
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 1rem auto;
        padding: 10px;
    }

    .input-section {
        padding: 1.5rem;
    }

    .logo {
        max-width: 300px;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        margin-top: 0.5rem;
    }

    .logo {
        max-width: 220px;
    }

    .input-section {
        padding: 1.25rem;
        border-radius: 16px;
    }

    input {
        font-size: 1rem;
        padding: 1rem;
    }

    button {
        padding: 1rem;
        font-size: 1rem;
    }

    .lyrics-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .lyric-line {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h4 {
        font-size: 2rem !important;
        font-weight: 800;
        color: var(--primary);
    }
}

/* Lyrics List Styles */
.lyrics-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.lyrics-table th,
.lyrics-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.lyrics-table th {
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.lyrics-table tr:hover td {
    background-color: #fcfcfc;
}

.lyric-item-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.lyric-item-link:hover {
    color: var(--primary);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    background: white;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.page-num:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-num.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-num.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f5f5f5;
}

/* Lyric Viewer styling override */
#lyricViewerContent h1 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

#lyricViewerContent h2,
#lyricViewerContent h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 0.75rem;
    margin-bottom: 0.1rem;
}

#lyricViewerContent blockquote {
    border-left: 4px solid var(--primary-glow);
    padding-left: 1.25rem;
    margin: 0.5rem 0;
    font-style: italic;
    color: var(--text-main);
    font-size: 1.1rem;
}

#lyricViewerContent p {
    margin-bottom: 0.25rem;
}

#lyricViewerContent hr {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid #eee;
    opacity: 0.5;
}
