/* Project Status Header - Collapsible Status Bar */

.project-status-bar {
  background:
    linear-gradient(180deg, rgba(212, 134, 58, 0.08) 0%, transparent 100%),
    var(--metal-texture),
    linear-gradient(135deg, var(--panel) 0%, rgba(26, 21, 16, 0.95) 100%);
  border-bottom: 3px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 99;
  overflow: hidden;
}

.project-status-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent), var(--accent-warm));
  opacity: 0.6;
}

.status-bar-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Collapsed Summary View */
.status-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 16px;
}

.status-summary:hover {
  background: rgba(212, 134, 58, 0.05);
}

.status-summary-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.status-project-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}

.status-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.status-badge.version {
  color: var(--accent-2);
  border-color: var(--accent-warm);
}

.status-badge.progress {
  color: var(--success);
  border-color: var(--success);
}

.status-badge.progress .progress-bar {
  width: 60px;
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  overflow: hidden;
}

.status-badge.progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), var(--accent-2));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.status-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background:
    linear-gradient(135deg, rgba(212, 134, 58, 0.12) 0%, rgba(212, 134, 58, 0.06) 100%),
    rgba(0, 0, 0, 0.2);
  border: 2px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.status-toggle-btn:hover {
  background:
    linear-gradient(135deg, rgba(212, 134, 58, 0.2) 0%, rgba(212, 134, 58, 0.1) 100%),
    rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}

.status-toggle-btn .toggle-arrow {
  font-size: 10px;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.status-toggle-btn.expanded .toggle-arrow {
  transform: rotate(180deg);
}

/* Expanded Details View */
.status-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.status-details.expanded {
  max-height: 800px;
  opacity: 1;
  padding-bottom: 20px;
}

.status-details-inner {
  padding-top: 16px;
  border-top: 2px solid var(--border);
}

/* Status Info Row */
.status-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.status-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-info-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Progress Dashboard Table */
.status-dashboard {
  margin-top: 16px;
}

.status-dashboard h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.status-table th,
.status-table td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--border);
}

.status-table th {
  background: rgba(212, 134, 58, 0.12);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-table td {
  color: var(--muted-text);
  background: rgba(0, 0, 0, 0.15);
}

.status-table tr:hover td {
  background: rgba(212, 134, 58, 0.08);
}

.status-table a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.status-table a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

/* Status Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.complete {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.status-dot.in-progress {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s infinite;
}

.status-dot.not-started {
  background: var(--error);
  box-shadow: 0 0 6px var(--error);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Priority Badges */
.priority-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.priority-badge.critical {
  background: rgba(166, 75, 42, 0.3);
  color: #e87c5c;
  border: 1px solid var(--error);
}

.priority-badge.high {
  background: rgba(212, 134, 58, 0.25);
  color: var(--accent);
  border: 1px solid var(--accent-warm);
}

.priority-badge.medium {
  background: rgba(201, 169, 97, 0.2);
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
}

.priority-badge.low {
  background: rgba(139, 148, 86, 0.2);
  color: var(--success);
  border: 1px solid var(--success);
}

/* Status Legend */
.status-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted-text);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Quick Links */
.status-quick-links {
  margin-top: 16px;
}

.status-quick-links h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-links-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-link:hover {
  background: rgba(212, 134, 58, 0.15);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.quick-link-icon {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .status-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .status-summary-left {
    width: 100%;
  }

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

  .status-info-row {
    flex-direction: column;
    gap: 12px;
  }

  .status-table {
    font-size: 12px;
  }

  .status-table th,
  .status-table td {
    padding: 8px 10px;
  }

  .status-legend {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .status-badges {
    width: 100%;
  }

  .status-badge {
    flex: 1;
    justify-content: center;
  }

  .quick-links-grid {
    flex-direction: column;
  }

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

/* Project Tabs */
.project-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.project-tab {
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted-text);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-tab:hover {
  background: rgba(212, 134, 58, 0.15);
  border-color: var(--accent-warm);
  color: var(--text);
}

.project-tab.active {
  background: linear-gradient(135deg, rgba(212, 134, 58, 0.25) 0%, rgba(212, 134, 58, 0.15) 100%);
  border-color: var(--accent);
  color: var(--accent);
}

/* Project Roadmap Views */
.project-roadmap {
  display: none;
}

.project-roadmap.active {
  display: block;
}

/* Responsive Project Tabs */
@media (max-width: 768px) {
  .project-tabs {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 4px;
  }

  .project-tab {
    flex-shrink: 0;
    padding: 5px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .project-tabs {
    justify-content: flex-start;
  }

  .project-tab {
    padding: 4px 8px;
    font-size: 10px;
  }
}
