* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; line-height: 1.6; color: #333; background: #f5f5f5; }
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

header { background: #fff; border-bottom: 1px solid #e0e0e0; padding: 1rem 0; position: relative; }
header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { font-size: 1.5rem; font-weight: bold; color: #333; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #333; margin: 5px 0; transition: 0.3s; }

nav { display: flex; gap: 1.5rem; }
nav a { color: #666; }
nav a:hover, nav a.active { color: #333; text-decoration: none; }

main { padding: 2rem 0; min-height: 60vh; }

.hero { text-align: center; padding: 2rem 0; }
.hero h1 { font-size: 2rem; margin-bottom: 1rem; }
.hero p { color: #666; font-size: 1rem; margin-bottom: 1.5rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 6px; font-weight: 500; cursor: pointer; border: none; transition: all 0.2s; text-align: center; }
.btn-primary { background: #0066cc; color: #fff; }
.btn-primary:hover { background: #0052a3; }
.btn-secondary { background: #e0e0e0; color: #333; }
.btn-secondary:hover { background: #d0d0d0; }

.latest-album, .cta { text-align: center; padding: 2rem 0; border-top: 1px solid #e0e0e0; margin-top: 2rem; }
.latest-album h2, .cta h2 { margin-bottom: 1rem; }
.album-card { display: flex; gap: 1.5rem; max-width: 500px; margin: 0 auto; background: #fff; padding: 1.5rem; border-radius: 8px; border: 1px solid #e0e0e0; flex-wrap: wrap; justify-content: center; }
.album-cover { width: 120px; height: 120px; background: #e0e0e0; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 2.5rem; flex-shrink: 0; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-info { text-align: left; min-width: 200px; }
.album-info h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.album-info .meta { color: #999; margin-bottom: 1rem; }

.album { display: flex; gap: 1.5rem; background: #fff; padding: 1.5rem; margin-bottom: 1.5rem; border-radius: 8px; border: 1px solid #e0e0e0; flex-wrap: wrap; justify-content: center; }
.album .album-cover { width: 150px; height: 150px; }
.track-table { width: 100%; margin: 1rem 0; border-collapse: collapse; }
.track-table tr { border-bottom: 1px solid #f0f0f0; }
.track-table td { padding: 0.5rem 0.25rem; }
.track-table .num { color: #999; width: 1.5rem; }
.track-table .dur { color: #999; text-align: right; width: 3rem; }

.intro { color: #666; margin-bottom: 1.5rem; }
.card { background: #fff; padding: 1.5rem; border-radius: 8px; border: 1px solid #e0e0e0; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.25rem; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #0066cc; }

.alert { padding: 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

footer { background: #fff; border-top: 1px solid #e0e0e0; padding: 1.5rem 0; text-align: center; color: #666; }

/* Admin */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 200px; background: #1a1a1a; color: #fff; padding: 1.5rem 0; flex-shrink: 0; }
.admin-sidebar h2 { padding: 0 1rem 1.5rem; font-size: 1.25rem; }
.admin-sidebar nav { display: flex; flex-direction: column; }
.admin-sidebar a { padding: 0.75rem 1rem; color: #a0a0a0; display: block; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: #333; color: #fff; text-decoration: none; }
.admin-main { flex: 1; padding: 1.5rem; background: #f5f5f5; overflow-x: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.admin-header h1 { font-size: 1.5rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: #fff; padding: 1.5rem; border-radius: 8px; border: 1px solid #e0e0e0; text-align: center; }
.stat-value { font-size: 2rem; font-weight: bold; }
.stat-label { color: #666; font-size: 0.875rem; }

table { width: 100%; background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #e0e0e0; border-collapse: collapse; }
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #e0e0e0; }
th { background: #f8f8f8; font-weight: 600; }
tr:last-child td { border-bottom: none; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 100; padding: 1rem; }
.modal.active { display: flex; align-items: center; justify-content: center; }
.modal-content { background: #fff; padding: 1.5rem; border-radius: 8px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 0; }

.badge { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 500; }
.badge-completed { background: #d4edda; color: #155724; }
.badge-in_progress { background: #cce5ff; color: #004085; }
.badge-planned { background: #e2e3e5; color: #383d41; }
.badge-on_hold { background: #fff3cd; color: #856404; }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.login-form { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); width: 100%; max-width: 400px; }
.login-form h1 { text-align: center; margin-bottom: 1.5rem; }

.honeypot { position: absolute; left: -9999px; }

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    nav { 
        display: none; 
        width: 100%; 
        flex-direction: column; 
        gap: 0; 
        padding-top: 1rem;
        border-top: 1px solid #e0e0e0;
        margin-top: 1rem;
    }
    nav.active { display: flex; }
    nav a { padding: 0.75rem 0; border-bottom: 1px solid #f0f0f0; }
    
    .hero h1 { font-size: 1.75rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    
    .album-card { flex-direction: column; align-items: center; text-align: center; }
    .album-info { text-align: center; }
    .album .album-cover { width: 150px; height: 150px; }
    
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; padding: 1rem 0; }
    .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; padding: 0 0.5rem; }
    .admin-sidebar a { padding: 0.5rem 0.75rem; font-size: 0.875rem; border-bottom: none; }
    .admin-sidebar div { padding: 0.5rem; }
    
    .stats { grid-template-columns: repeat(2, 1fr); }
    
    table { font-size: 0.875rem; }
    th, td { padding: 0.5rem; }
    
    .admin-header { flex-direction: column; align-items: flex-start; }
    .admin-header .btn { width: 100%; }
    
    .modal-content { padding: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.9rem; }
    
    .album, .card { padding: 1rem; }
    .album-cover { width: 100px; height: 100px; }
    
    .stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat-card { padding: 1rem; }
    .stat-value { font-size: 1.5rem; }
    
    .login-form { padding: 1.5rem; }
    
    .btn { padding: 0.6rem 1rem; font-size: 0.9rem; }
}

/* Print styles */
@media print {
    header, footer, .btn, .modal { display: none; }
    .admin-layout { display: block; }
    .admin-sidebar { display: none; }
}
