/* =========================================================
   Past Performance Page Styles
   ========================================================= */

/* Category Card Styles - Bootstrap Accordion Integration */
.accordion-item.category-card {
  border-radius: var(--radius);
  border: 1px solid var(--card-line);
  background: var(--card-bg);
  color: var(--card-ink);
  box-shadow: var(--shadow-lg);
  margin-bottom: 1rem;
}

.accordion-button {
  display: flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: none;
  color: var(--card-ink);
}

.accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--card-ink);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  border-color: transparent;
}

.accordion-button::after {
  display: none; /* Hide default Bootstrap chevron */
}

.category-image {
  flex: 0 0 200px;
  height: 140px;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: var(--radius) 0 0 0;
}

.accordion-button:not(.collapsed) .category-image {
  flex: 0 0 120px;
  height: 120px;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-info {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.category-info::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--brand);
  transition: transform 0.3s ease;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.accordion-button:not(.collapsed) .category-info::after {
  transform: translateY(-50%) rotate(45deg);
}

.category-details h3 {
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  font-size: 1.25rem;
}

.category-meta {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

.accordion-collapse {
  border-top: 1px solid var(--card-line);
}

.accordion-body.projects-list {
  padding: 0;
  background: rgba(15, 23, 42, 0.02);
}

.project-item {
  border-top: 1px solid var(--card-line);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.project-item:first-child {
  border-top: none;
}

.project-image {
  flex: 0 0 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  flex: 1;
}

.project-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  color: var(--card-ink);
}

.project-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

.project-specs li {
  margin-bottom: 0.25rem;
  position: relative;
  padding-left: 1rem;
}

.project-specs li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: bold;
}

.project-result {
  background: linear-gradient(135deg, var(--brand), #5bd3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0;
}

.stats-bar {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  margin: 0;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0.25rem 0 0 0;
}

/* Project date/subtitle styling */
.project-subtitle {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand);
  margin: 0.25rem 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(13, 110, 253, 0.2);
  position: relative;
}

.project-subtitle::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--brand);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .category-image {
    flex: 0 0 100px;
    height: 80px;
  }

  .accordion-button:not(.collapsed) .category-image {
    flex: 0 0 80px;
    height: 80px;
  }

  .category-info {
    padding: 1rem;
  }

  .project-item {
    flex-direction: column;
    gap: 1rem;
  }

  .project-image {
    flex: none;
    width: 100%;
    height: 120px;
  }
}