/* ============================================================
   CONSTRUCTION OPS PAGE STYLES
   ============================================================ */

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, rgba(0, 163, 255, 0.1) 0%, rgba(224, 169, 59, 0.05) 100%);
  border-bottom: 1px solid rgba(224, 169, 59, 0.2);
  padding: var(--spacing-4xl) var(--spacing-xl);
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-steel-gold);
}

.page-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

/* MONITORING SECTION */
.monitoring-section {
  background: var(--color-obsidian-deep);
  padding: var(--spacing-5xl) var(--spacing-xl);
}

.monitoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-3xl);
}

.monitor-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(224, 169, 59, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.monitor-card:nth-child(1) { animation-delay: 0.1s; }
.monitor-card:nth-child(2) { animation-delay: 0.2s; }
.monitor-card:nth-child(3) { animation-delay: 0.3s; }
.monitor-card:nth-child(4) { animation-delay: 0.4s; }

.monitor-card:hover {
  border-color: var(--color-steel-gold);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(224, 169, 59, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.monitor-header {
  background: linear-gradient(135deg, rgba(0, 163, 255, 0.15) 0%, rgba(224, 169, 59, 0.08) 100%);
  padding: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(224, 169, 59, 0.15);
}

.monitor-header i {
  font-size: 1.5rem;
  color: var(--color-steel-gold);
}

.status-badge {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.status-badge.online {
  background: rgba(0, 163, 255, 0.2);
  color: var(--color-credit-blue);
}

.status-badge.warning {
  background: rgba(255, 59, 48, 0.2);
  color: var(--color-risk-red);
}

.monitor-body {
  padding: var(--spacing-lg);
}

.monitor-body h3 {
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-white);
}

.metric-display {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-steel-gold);
  font-family: var(--font-mono);
}

.metric-unit {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.metric-status {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.status-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.status-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-credit-blue), var(--color-steel-gold));
  transition: width 0.5s ease-out;
}

.status-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* PROGRESS SECTION */
.progress-section {
  background: linear-gradient(180deg, #0F1B2E 0%, var(--color-obsidian-deep) 100%);
  padding: var(--spacing-5xl) var(--spacing-xl);
}

.progress-panel {
  display: grid;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-3xl);
}

.progress-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(224, 169, 59, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  transition: all var(--transition-normal);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.progress-item:nth-child(1) { animation-delay: 0.1s; }
.progress-item:nth-child(2) { animation-delay: 0.2s; }
.progress-item:nth-child(3) { animation-delay: 0.3s; }
.progress-item:nth-child(4) { animation-delay: 0.4s; }

.progress-item:hover {
  border-color: var(--color-steel-gold);
  background: rgba(255, 255, 255, 0.08);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.progress-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-white);
}

.progress-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
}

.progress-fill {
  height: 100%;
  transition: width 0.5s ease-out;
}

.progress-meta {
  display: flex;
  gap: var(--spacing-lg);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.progress-meta span {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.progress-meta i {
  color: var(--color-credit-blue);
}

/* TRUST SECTION */
.trust-section {
  background: var(--color-obsidian-deep);
  padding: var(--spacing-5xl) var(--spacing-xl);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-3xl);
}

.trust-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(224, 169, 59, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  transition: all var(--transition-normal);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.trust-card:nth-child(1) { animation-delay: 0.1s; }
.trust-card:nth-child(2) { animation-delay: 0.2s; }
.trust-card:nth-child(3) { animation-delay: 0.3s; }

.trust-card:hover {
  border-color: var(--color-steel-gold);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(224, 169, 59, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.trust-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  color: var(--color-steel-gold);
}

.trust-breakdown {
  display: grid;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.trust-item {
  background: rgba(255, 255, 255, 0.02);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
}

.trust-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--spacing-sm);
}

.trust-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-credit-blue);
  font-family: var(--font-mono);
  margin-bottom: var(--spacing-md);
}

.trust-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.trust-fill {
  height: 100%;
  transition: width 0.5s ease-out;
}

.trust-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(224, 169, 59, 0.15);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* FADE IN ANIMATION */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-visible {
  opacity: 1 !important;
  animation: fadeInUp 0.8s ease-out forwards !important;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.875rem;
  }

  .monitoring-grid {
    grid-template-columns: 1fr;
  }

  .progress-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .metric-display {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}
