/* Main Styles for Music Lyrics Website */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.site-header nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.site-header nav a:hover {
    opacity: 0.8;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Genre/Mood Page */
.genre-page, .mood-page, .activity-page {
    background-color: white;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.genre-header, .mood-header, .activity-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.genre-header h1, .mood-header h1, .activity-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.genre-description, .mood-description, .activity-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.song-count {
    font-size: 1rem;
    opacity: 0.8;
}

/* Filters */
.filters {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-group label {
    font-weight: 500;
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

.btn-filter {
    padding: 0.5rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-filter:hover {
    background-color: #2980b9;
}

/* Songs Section */
.songs-section {
    margin-bottom: 3rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Song Grid */
.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.song-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.song-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.song-card a {
    text-decoration: none;
    color: inherit;
}

.song-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.song-card .artist {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.song-card .artist a {
    color: #3498db;
    text-decoration: none;
}

.song-card .artist a:hover {
    text-decoration: underline;
}

.song-card .views {
    color: #95a5a6;
    font-size: 0.85rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.pagination ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination a, .pagination .current-page {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background-color: white;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination .current-page {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    font-weight: bold;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.site-footer nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.site-footer a {
    color: white;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer p {
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .genre-header h1, .mood-header h1, .activity-header h1 {
        font-size: 2rem;
    }

    .song-grid {
        grid-template-columns: 1fr;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Song Detail Page */
.song-detail, .artist-detail {
    background-color: white;
    padding: 2rem 0;
}

.song-header, .artist-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.song-header h1, .artist-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.artist-info, .album-info {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.artist-info a, .album-info a {
    color: #3498db;
    text-decoration: none;
}

.song-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    background-color: #ecf0f1;
}

.genre-badge a {
    color: #2c3e50;
    text-decoration: none;
}

/* Legal Content */
.legal-content, .content-article {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    line-height: 1.8;
}

.legal-content h1, .content-article h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.legal-content h2, .content-article h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #34495e;
}

.legal-content h3, .content-article h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #34495e;
}

.legal-content ul, .content-article ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li, .content-article li {
    margin-bottom: 0.5rem;
}

.legal-content a, .content-article a {
    color: #3498db;
    text-decoration: none;
}

.legal-content a:hover, .content-article a:hover {
    text-decoration: underline;
}

.last-updated {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Category Cards (Genres/Moods List) */
.category-list {
    background-color: white;
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.category-list h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-card {
    display: block;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.category-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.category-card p {
    color: #7f8c8d;
    margin: 0;
}

/* Utility Classes - Tailwind-like */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.text-gray-600 {
    color: #7f8c8d;
}

.text-4xl {
    font-size: 2.25rem;
}

.font-bold {
    font-weight: 700;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Homepage Specific Styles */
.homepage-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 10px;
}

.homepage-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.homepage-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

/* Responsive Grid Enhancements */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .homepage-hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
