/* home.css - Homepage Specific Styles */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0 4rem 0;
    text-align: center;
    margin-top: 0;
}

.hero .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero .btn {
    font-size: 1.125rem;
    padding: 0.75rem 2rem;
}

.songs-section {
    padding: 3rem 0;
    background: #f8f9fa;
    min-height: 400px;
}

.songs-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.songs-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #212529;
    text-align: center;
}

/* Search Box */
.home-search {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.home-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.home-search input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.song-item {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.song-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.song-link {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
}

.song-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.song-title {
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    margin: 0;
    transition: color 0.2s;
}

.song-item:hover .song-title {
    color: #5568d3;
    text-decoration: underline;
}

.song-preview {
    font-size: 0.8125rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
    max-height: none;
    overflow: visible;
}

.song-meta {
    color: #adb5bd;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Highlight search text */
.highlight {
    background-color: #ffeb3b;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 3px;
    color: #000;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    /* Add padding to body to account for fixed navigation */
    body {
        padding-top: 60px;
    }
    
    .hero {
        padding: 2rem 0;
        margin-top: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .songs-list {
        gap: 0.375rem;
    }
    
    .song-link {
        padding: 0.625rem 0.75rem;
    }
    
    .song-title {
        font-size: 0.9375rem;
    }
    
    .song-preview {
        font-size: 0.75rem;
        line-height: 1.5;
        overflow: visible;
        max-height: none;
    }
    
    .highlight {
        padding: 1px 3px;
        font-weight: 700;
    }
    
    .songs-section {
        padding: 2rem 0;
    }
}