* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; margin: 0; color: #222; background: #fafafa; }
.container { max-width: 960px; margin: 0 auto; padding: 1rem; }
.site-header { 
  background: #111; 
  color: white; 
  padding: 1rem 0;
}
.site-header a { color: inherit; text-decoration: none; }

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-section {
  flex: 1;
  min-width: 200px;
}

.logo-link {
  display: inline-block;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.site-logo {
  height: 50px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
}

.site-title { 
  margin: 0; 
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
  text-transform: lowercase;
  letter-spacing: -0.5px;
}

.main-nav { 
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.main-nav a { 
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { background: rgba(255,255,255,0.15); }

.auth-link {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
}

.register-link {
  background: #007acc;
  border-color: #007acc;
}

.register-link:hover {
  background: #005a99;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .logo-container {
    gap: 0.75rem;
  }
  
  .site-logo {
    height: 40px;
    max-width: 50px;
  }
  
  .site-title {
    font-size: 1.5rem;
  }
  
  .main-nav {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
}
.muted { color: #666; }
.band-list, .album-list, .links-list { list-style: none; padding: 0; }
.band-list li, .album-list li { padding: 0.5rem 0; border-bottom: 1px solid #eee; }
.album-detail .cover { max-width: 320px; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.stars { color: #f5a623; font-size: 1.1rem; letter-spacing: 1px; }
.site-footer { font-size: 0.9rem; color: #666; }

/* Album Grid Layout */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.album-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.album-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.album-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.album-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.album-cover-placeholder {
  width: 100%;
  height: 200px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.placeholder-text {
  font-size: 0.9rem;
}

.album-info {
  padding: 1rem;
}

.album-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.album-artist {
  margin: 0 0 0.25rem 0;
  color: #666;
  font-size: 0.9rem;
}

.album-year {
  margin: 0;
  color: #888;
  font-size: 0.8rem;
}

.no-albums {
  text-align: center;
  color: #666;
  font-style: italic;
  margin: 2rem 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.pagination-link {
  padding: 0.5rem 1rem;
  background: #111;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.pagination-link:hover {
  background: #333;
}

.pagination-info {
  color: #666;
  font-size: 0.9rem;
}

/* Homepage Featured Content */
.home-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .home-featured {
    grid-template-columns: 1fr 1fr;
  }
}

.featured-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.featured-cell {
    width: 50%;
    vertical-align: top;
    padding: 0 1rem;
}

.featured-cell:first-child {
    padding-left: 0;
}

.featured-cell:last-child {
    padding-right: 0;
}

/* Make responsive for mobile */
@media (max-width: 768px) {
    .featured-table, .featured-cell {
        display: block;
        width: 100%;
    }
    
    .featured-cell {
        padding: 0;
        margin-bottom: 1rem;
    }
}

.featured-columns {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.featured-column {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}


/* Optional: Add some styling to balance the columns */
.featured-section {
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
}


.featured-section h3 {
  margin: 0;
  padding: 1rem 1rem 0.5rem 1rem;
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
  font-size: 1.2rem;
  color: #333;
}

.featured-content {
  display: flex;
  flex-direction: column;
}

@media (min-width: 480px) {
  .featured-content {
    flex-direction: row;
  }
}

.featured-image {
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 480px) {
  .featured-image {
    width: 200px;
  }
}

.featured-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.featured-cover-placeholder {
  width: 100%;
  height: 200px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.featured-details {
  padding: 1rem;
  flex: 1;
}

.featured-details h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.featured-details h4 a {
  color: inherit;
  text-decoration: none;
}

.featured-details h4 a:hover {
  color: #007acc;
}

.featured-artist {
  margin: 0 0 0.5rem 0;
  color: #666;
  font-size: 1rem;
}

.featured-artist a {
  color: #007acc;
  text-decoration: none;
}

.featured-artist a:hover {
  text-decoration: underline;
}

.featured-year {
  margin: 0 0 1rem 0;
  color: #888;
  font-size: 0.9rem;
}

.featured-text {
  margin-bottom: 1rem;
}

.featured-text p {
  margin: 0 0 0.5rem 0;
  line-height: 1.6;
  color: #444;
}

.read-more {
  color: #007acc;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.read-more:hover {
  text-decoration: underline;
}

.featured-ratings {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.featured-albums {
  margin-top: 1rem;
}

.album-count {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

.no-content {
  text-align: center;
  color: #666;
  margin: 2rem 0;
}

.no-content a {
  color: #007acc;
  text-decoration: none;
}

.no-content a:hover {
  text-decoration: underline;
}

/* Search Overlay */
.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.search-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: #007acc;
}

.search-submit {
  padding: 0.75rem 1.5rem;
  background: #007acc;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-submit:hover {
  background: #005a99;
}

.search-close {
  padding: 0.75rem;
  background: #666;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
  line-height: 1;
}

.search-close:hover {
  background: #444;
}

/* Search Results */
.search-query {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.no-query {
  color: #666;
  font-style: italic;
  text-align: center;
  margin: 2rem 0;
}

.search-section {
  margin-bottom: 2rem;
}

.search-section h3 {
  color: #333;
  border-bottom: 2px solid #007acc;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-result-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  transition: box-shadow 0.2s ease;
}

.search-result-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.result-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.result-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.result-image-placeholder {
  width: 80px;
  height: 80px;
  background: #f0f0f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.8rem;
  text-align: center;
  flex-shrink: 0;
}

.result-details {
  flex: 1;
}

.result-details h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.2rem;
}

.result-details h4 a {
  color: inherit;
  text-decoration: none;
}

.result-details h4 a:hover {
  color: #007acc;
}

.result-artist {
  margin: 0 0 0.25rem 0;
  color: #666;
  font-size: 0.9rem;
}

.result-artist a {
  color: #007acc;
  text-decoration: none;
}

.result-artist a:hover {
  text-decoration: underline;
}

.result-year {
  margin: 0 0 0.5rem 0;
  color: #888;
  font-size: 0.8rem;
}

.result-description {
  margin: 0 0 0.5rem 0;
  color: #444;
  line-height: 1.5;
}

.result-meta {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

.result-ratings {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.result-ratings .rating {
  font-size: 0.9rem;
  color: #666;
}

.result-ratings .stars {
  color: #f5a623;
}

.no-results {
  text-align: center;
  color: #666;
  margin: 2rem 0;
  font-style: italic;
}

@media (max-width: 480px) {
  .result-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .result-image,
  .result-image-placeholder {
    width: 120px;
    height: 120px;
  }
}

/* Authentication Forms */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem 0;
}

.auth-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

.auth-form h2 {
  margin: 0 0 1.5rem 0;
  text-align: center;
  color: #333;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #007acc;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
  flex: 1;
}

.btn-primary {
  background: #007acc;
  color: white;
}

.btn-primary:hover {
  background: #005a99;
}

.btn-secondary {
  background: #666;
  color: white;
}

.btn-secondary:hover {
  background: #444;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  border: 1px solid #f5c6cb;
}

.error-message ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1.5rem;
}

.error-message li {
  margin-bottom: 0.25rem;
}

.auth-link {
  text-align: center;
  margin-top: 1rem;
  color: #666;
}

.auth-link a {
  color: #007acc;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}
