/* ============================================
   REVISION NOTES PAGE SPECIFIC STYLES
   ============================================ */

/* Filter Section */
.filter-section {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 0;
  position: sticky;
  top: 60px;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-group label {
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  white-space: nowrap;
}

.filter-btn {
  background: #f3f4f6;
  border: 2px solid transparent;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: var(--light-green);
  color: var(--primary-green);
}

.filter-btn.active {
  background: var(--primary-green);
  color: white;
  border-color: var(--dark-green);
}

.tier-toggle {
  display: flex;
  gap: 0.5rem;
  background: #f3f4f6;
  padding: 0.25rem;
  border-radius: 8px;
}

.tier-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tier-btn:hover {
  color: var(--primary-green);
}

.tier-btn.active {
  background: white;
  color: var(--primary-green);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Revision Note Card */
.revision-note-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.revision-note-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
}

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

.note-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.note-tier-badges {
  display: flex;
  gap: 0.5rem;
}

.tier-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  border: 2px solid;
}

.tier-badge.foundation {
  background: #dbeafe;
  color: #2563eb;
  border-color: #93c5fd;
}

.tier-badge.higher {
  background: #fce7f3;
  color: #db2777;
  border-color: #f9a8d4;
}

.revision-note-card h4 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
  line-height: 1.3;
}

.revision-note-card > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.note-contents {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.note-contents h6 {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.note-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.note-contents li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.note-contents li::before {
  content: "•";
  color: var(--primary-green);
  font-weight: 900;
  font-size: 1.2rem;
}

.note-meta {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.note-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.note-meta i {
  color: var(--primary-green);
}

.note-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.note-actions .btn {
  flex: 1;
  min-width: 120px;
}

/* Formula Sheet Banner */
.formula-sheet-banner {
  background: linear-gradient(135deg, #10b981, #065f46);
  color: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.formula-sheet-banner h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.formula-sheet-banner p {
  font-size: 1.05rem;
  margin: 0;
  opacity: 0.95;
}

.formula-sheet-banner .btn-primary {
  background: white;
  color: var(--primary-green);
  border: none;
  font-weight: 700;
  padding: 0.85rem 2rem;
}

.formula-sheet-banner .btn-primary:hover {
  background: #f3f4f6;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Hide/Show based on filters */
.note-item {
  transition: all 0.3s ease;
}

.note-item.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 991px) {
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .filter-group {
    width: 100%;
  }

  .tier-toggle {
    width: 100%;
    justify-content: center;
  }

  .formula-sheet-banner {
    padding: 2rem;
    text-align: center;
  }

  .formula-sheet-banner h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .filter-section {
    top: 56px;
  }

  .filter-group label {
    width: 100%;
  }

  .filter-btn {
    flex: 1 1 calc(50% - 0.375rem);
    text-align: center;
  }

  .revision-note-card {
    padding: 1.5rem;
  }

  .note-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .tier-badge {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .note-actions {
    flex-direction: column;
  }

  .note-actions .btn {
    width: 100%;
  }

  .formula-sheet-banner {
    padding: 1.5rem;
  }
}

@media (max-width: 575px) {
  .note-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}