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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header and Navigation */
.navbar {
    background-color: #8B0000; /* Dark red for mariachi theme */
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FFD700; /* Gold color for hover */
}

.musicians-link {
    background-color: #FFD700;
    color: #8B0000 !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
}

.musicians-link:hover {
    background-color: #FFA500;
    color: #8B0000 !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(139, 0, 0, 0.7), rgba(139, 0, 0, 0.7)), 
                url('../images/hero-bg.jpg') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 70px; /* Account for fixed navbar */
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-button {
    background-color: #FFD700;
    color: #8B0000;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #FFA500;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #8B0000;
}

/* About Section */
.about {
    background-color: #f8f8f8;
}

.about p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Calendar Section */
.calendar {
    background-color: #f8f8f8;
}

.calendar-container {
    text-align: center;
    margin-top: 2rem;
}

/* Contact Section */
.contact-info {
    text-align: center;
    margin-top: 2rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Score Management Styles */
.scores-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.search-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.filter-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #f0f0f0;
}

.filter-btn.active {
    background: #d4af37;
    color: white;
    border-color: #d4af37;
}

.admin-controls {
    display: flex;
    gap: 1rem;
}

.scores-count {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

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

.score-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.score-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    border-color: #007bff;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.score-title {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    flex: 1;
}

.difficulty-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.difficulty-badge.beginner {
    background: #28a745;
    color: white;
}

.difficulty-badge.intermediate {
    background: #ffc107;
    color: #212529;
}

.difficulty-badge.advanced {
    background: #dc3545;
    color: white;
}

.score-info {
    margin-bottom: 1rem;
}

.score-info p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.score-files {
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.file-name {
    font-size: 0.9rem;
    color: #333;
    flex: 1;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-size {
    font-size: 0.8rem;
    color: #666;
    min-width: 60px;
    text-align: right;
}

.download-btn {
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #e9ecef;
}

.more-files {
    text-align: center;
    font-style: italic;
    color: #666;
    padding: 0.5rem;
    background: #f1f3f4;
    border-radius: 4px;
    font-size: 0.9rem;
}

.score-features {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.feature-badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    background: #e9ecef;
    color: #495057;
}

.feature-badge.audio {
    background: #d1ecf1;
    color: #0c5460;
}

.feature-badge.score {
    background: #d4edda;
    color: #155724;
}

/* Score Details View */
.score-details-view {
    width: 100%;
}

.details-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.back-button {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateX(-2px);
}

.score-details-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.score-detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.score-detail-files {
    margin-top: 2rem;
}

.score-detail-files h3 {
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-list .file-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.file-list .file-item:hover {
    background: #e9ecef;
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.file-type {
    background: #e9ecef;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: bold;
}

.detail-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.detail-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.action-buttons .btn-primary,
.action-buttons .btn-secondary {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.action-buttons .btn-primary {
    background: #007bff;
    color: white;
}

.action-buttons .btn-primary:hover {
    background: #0056b3;
}

.action-buttons .btn-secondary {
    background: #6c757d;
    color: white;
}

.action-buttons .btn-secondary:hover {
    background: #545b62;
}

@media (max-width: 768px) {
    .score-detail-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.score-actions {
    display: flex;
    gap: 0.5rem;
}

.score-actions button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: #b8941f;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.no-scores {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-scores button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #d4af37;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Recent Scores Widget */
.recent-scores-list {
    margin-bottom: 1rem;
}

.recent-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.recent-score-item:last-child {
    border-bottom: none;
}

.score-name {
    font-weight: 500;
    color: #333;
}

.access-date {
    font-size: 0.8rem;
    color: #666;
}

.view-all-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}
