/* 
 * Classical Performances - Clean Black & White Theme
 * Modern, minimal design with excellent readability
 */

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

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: #444444;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #000000;
  text-decoration: underline;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.w-full {
  width: 100%;
}

.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.py-2 { padding: 0.5rem 0; }
.py-4 { padding: 1rem 0; }
.py-6 { padding: 1.5rem 0; }
.py-8 { padding: 2rem 0; }

.px-4 { padding: 0 1rem; }
.px-6 { padding: 0 1.5rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

/* Navigation */
nav {
  background-color: #000000;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.site-title:hover {
  color: #cccccc;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: #cccccc;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
  background-color: #333333;
  text-decoration: none;
}

.mobile-menu-button {
  background: none;
  border: none;
  color: #cccccc;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: none;
}

.mobile-menu-button:hover {
  color: #ffffff;
  background-color: #333333;
}

.mobile-menu {
  background-color: #000000;
  border-top: 1px solid #333333;
  padding: 1rem 0;
  display: none;
}

.mobile-menu .nav-link {
  display: block;
  padding: 0.75rem 1rem;
  margin: 0.25rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-primary {
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #000000;
}

.btn-primary:hover {
  background-color: #333333;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}

.btn-secondary:hover {
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Cards and Containers */
.card {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

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

.card-header {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Hero Section */
.hero {
  background-color: #000000;
  color: #ffffff;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #cccccc;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Forms and Search */
.search-container {
  background-color: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid-4 { grid-template-columns: repeat(4, 1fr); }

.form-input, .search-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
}

.form-input:focus, .search-input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

select.form-input, select.search-input {
  cursor: pointer;
}

/* Lists */
.list-container {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.list-item {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
  transition: all 0.2s ease;
}

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

.list-item:hover {
  background-color: #f8f9fa;
  border-left: 4px solid #0066cc;
  padding-left: calc(1.5rem - 4px);
}

.list-item-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.list-item-meta {
  color: #666666;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Status Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 12px;
}

.badge-success {
  background-color: #22c55e;
  color: #ffffff;
}

.badge-info {
  background-color: #6b7280;
  color: #ffffff;
}

.badge-warning {
  background-color: #f59e0b;
  color: #ffffff;
}

.badge-danger {
  background-color: #ef4444;
  color: #ffffff;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-link {
  padding: 0.5rem 0.75rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  color: #333333;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-link:hover {
  background-color: #f8f9fa;
  border-color: #000000;
  color: #000000;
  text-decoration: none;
}

.page-link.active {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* Footer */
footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e5e5e5;
  margin-top: auto;
  color: #666666;
}

/* Performance-specific styles */
.performance-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #666666;
}

.meta-label {
  font-weight: 600;
  color: #333333;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
}

.table th {
  font-weight: 600;
  background-color: #f8f9fa;
  color: #333333;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  
  .nav-links {
    display: none !important;
  }
  
  .mobile-menu-button {
    display: block !important;
  }
  
  .card {
    padding: 1rem;
  }
  
  .list-item {
    padding: 1rem;
  }
  
  .list-item:hover {
    border-left: none;
    padding-left: 1rem;
  }
  
  .search-container {
    padding: 1.5rem;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .form-grid-2,
  .form-grid-3,
  .form-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .grid {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  h1 { font-size: 1.5rem; }
  
  .card {
    padding: 0.75rem;
  }
  
  .list-item {
    padding: 0.75rem;
  }
  
  .search-container {
    padding: 1rem;
  }
  
  .hero {
    padding: 1.5rem 0;
  }
}

/* Show mobile menu on larger screens in hidden state */
@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
  }
  
  .mobile-menu-button {
    display: none !important;
  }
  
  .mobile-menu {
    display: none !important;
  }
}

/* Mobile menu toggle states */
.mobile-menu.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-menu:not(.hidden) {
    display: block !important;
  }
}