/* assets/css/style-search.css */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.search-hero {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.search-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.search-input {
    border: none;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-btn {
    border: none;
    border-radius: 16px;
    padding: 1rem 2rem;
    font-weight: 600;
    background: var(--primary-gradient);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    color: white;
}

.results-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.song-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.song-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.song-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.song-artist {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.song-album {
    font-size: 0.9rem;
    color: #a0aec0;
}

.badge-success {
    background: var(--success-gradient);
    border: none;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.badge-web {
    background: var(--secondary-gradient);
    border: none;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.album-artwork {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-action {
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-preview {
    background: var(--secondary-gradient);
    color: white;
}

.btn-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-lyrics {
    background: var(--primary-gradient);
    color: white;
}

.btn-lyrics:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.alert-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: white;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: white;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.search-suggestions {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 2rem;
    color: white;
}

.loading-spinner i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@media (max-width: 768px) {
    .search-hero h1 {
	font-size: 2rem;
    }

    .song-card {
	padding: 1rem;
    }

    .album-artwork {
	width: 60px;
	height: 60px;
    }

    .btn-action {
	padding: 0.4rem 0.8rem;
	font-size: 0.9rem;
    }
}

/* Header styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Search box styles */
.search-box {
    background-color: white;
    border: 1px solid #eee;
}

/* Lyrics display */
.lyrics-content {
    max-height: 70vh;
    overflow-y: auto;
}

.lyrics-text {
    white-space: pre-wrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    background: none;
    border: none;
    color: #333;
}

.lyrics-sync-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
}

.lyrics-line {
    margin-bottom: 8px;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lyrics-line:hover {
    background-color: #f8f9fa;
}

.lyrics-line.active {
    background-color: #e9ecef;
    font-weight: bold;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}
       
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Interpretation section */
.interpretation-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.interpretation-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.interpretation-header {
    margin-bottom: 0.5rem;
}

.interpretation-body {
    line-height: 1.6;
}

/* Card styles */
.card {
    border-radius: 0.5rem;
    overflow: hidden;
    border: none;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
}

/* Button styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #4a49b0;
    border-color: #4a49b0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .lyrics-content {
        max-height: 40vh;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }

    .card {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }

    .lyrics-text {
        color: #e0e0e0;
    }

    .search-box {
        background-color: #1e1e1e;
        border-color: #333;
    }

    .form-control {
        background-color: #2d2d2d;
        border-color: #444;
        color: #e0e0e0;
    }

    .form-control:focus {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }

    .interpretation-item {
        border-color: #333;
    }
}


