/* ===== PARTITIONS SECTION ===== */

/* Hero section */
.partitions-hero {
  text-align: center;
  padding: 48px 0 32px;
}
.partitions-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: #1a1a2e;
  margin-bottom: 12px;
}
.partitions-hero h1 .accent { color: #7c6ff7; }
.partitions-hero p {
  color: #5a5a72;
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Search bar */
.partitions-search {
  max-width: 560px;
  margin: 24px auto 40px;
  position: relative;
}
.partitions-search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid rgba(124, 111, 247, 0.2);
  border-radius: 14px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: #1a1a2e;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.partitions-search input:focus {
  border-color: #7c6ff7;
  box-shadow: 0 0 0 4px rgba(124, 111, 247, 0.1);
}
.partitions-search input::placeholder { color: #9a9ab0; }
.partitions-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #9a9ab0;
  pointer-events: none;
}
.partitions-count {
  text-align: center;
  color: #7c6ff7;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* Filters */
.partitions-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 18px;
  border: 1px solid rgba(124, 111, 247, 0.2);
  border-radius: 24px;
  background: #fff;
  color: #5a5a72;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: #7c6ff7;
  color: #7c6ff7;
  background: rgba(124, 111, 247, 0.04);
}
.filter-btn.active {
  background: #7c6ff7;
  color: #fff;
  border-color: #7c6ff7;
}

/* Grid of partition cards */
.partitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.partition-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.partition-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124, 111, 247, 0.12);
  border-color: rgba(124, 111, 247, 0.3);
}
.partition-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.partition-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(124, 111, 247, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}
.partition-card-title {
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a2e;
  line-height: 1.3;
}
.partition-card-opus {
  font-size: 0.82rem;
  color: #7c6ff7;
  font-weight: 500;
  margin-top: 2px;
}
.partition-card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.partition-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
}
.badge-key { background: rgba(124, 111, 247, 0.08); color: #7c6ff7; }
.badge-genre { background: rgba(46, 204, 113, 0.08); color: #27ae60; }
.badge-difficulty { background: rgba(241, 196, 15, 0.1); color: #d4a017; }
.badge-pdf { background: rgba(231, 76, 60, 0.08); color: #e74c3c; }
.partition-card-desc {
  color: #5a5a72;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 10px;
}

/* ===== LANDING PAGE (individual partition) ===== */
.partition-landing { padding-bottom: 48px; }
.partition-landing h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.partition-landing h1 .accent { color: #7c6ff7; }
.partition-subtitle {
  color: #7c6ff7;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.partition-landing h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #1a1a2e;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(124, 111, 247, 0.12);
}

/* Download CTA */
.download-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(124, 111, 247, 0.06), rgba(124, 111, 247, 0.12));
  border: 1px solid rgba(124, 111, 247, 0.2);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 24px 0;
}
.download-cta-info { flex: 1; }
.download-cta-info h3 {
  font-size: 1.1rem;
  color: #1a1a2e;
  margin-bottom: 4px;
}
.download-cta-info p {
  color: #5a5a72;
  font-size: 0.88rem;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #7c6ff7;
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.download-btn:hover {
  background: #6459d4;
  transform: translateY(-1px);
}
.download-btn svg { width: 18px; height: 18px; }

/* Info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.info-card {
  background: #f8f8fc;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}
.info-card-label {
  font-size: 0.78rem;
  color: #9a9ab0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.info-card-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
}

/* Artist bio */
.artist-bio {
  display: flex;
  gap: 24px;
  background: #f8f8fc;
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
}
.artist-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(124, 111, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.artist-bio-text { flex: 1; }
.artist-bio-text h3 {
  font-size: 1.1rem;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.artist-bio-text p {
  color: #5a5a72;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* FAQ accordion */
.faq-list { margin: 16px 0; }
.faq-item {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(124, 111, 247, 0.03); }
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: #7c6ff7;
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  color: #5a5a72;
  font-size: 0.9rem;
  line-height: 1.6;
}
.faq-item.open .faq-answer { display: block; }

/* Tips section */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.tip-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 20px;
}
.tip-card-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.tip-card h4 {
  font-size: 0.95rem;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.tip-card p {
  color: #5a5a72;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Related partitions */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

/* SEO text */
.seo-text {
  color: #5a5a72;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 12px 0;
}
.seo-text strong { color: #1a1a2e; }

/* Responsive */
@media (max-width: 768px) {
  .partitions-hero h1 { font-size: 1.6rem; }
  .partitions-grid { grid-template-columns: 1fr; }
  .download-cta { flex-direction: column; text-align: center; }
  .artist-bio { flex-direction: column; text-align: center; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .partition-landing h1 { font-size: 1.5rem; }
}
