/* ==================================
   APEX SIGNAL - Intelligence Layer
   Premium analysis & action styling
   ================================== */

/* Signal Hero */
.signal-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid #ff6b35;
  border-radius: 20px;
  color: #ff6b35;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  color: #b8b8b8;
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 0 2rem;
}

/* Signal Filters */
.signal-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.625rem 1.25rem;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: #1a1a1a;
  border-color: #ff6b35;
}

.filter-btn.active {
  background: #ff6b35;
  border-color: #ff6b35;
  color: #ffffff;
}

.filter-btn.movements-btn {
  background: linear-gradient(135deg, #b537ff 0%, #ff6b35 100%);
  border-color: transparent;
}

/* Urgent Banner */
.urgent-banner {
  background: linear-gradient(90deg, rgba(255, 0, 0, 0.2) 0%, rgba(255, 107, 53, 0.2) 100%);
  border-bottom: 2px solid #ff0000;
  padding: 1rem 0;
  animation: pulse 2s infinite;
}

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

.urgent-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.urgent-badge {
  padding: 0.375rem 0.875rem;
  background: #ff0000;
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.7; }
}

/* Signal Layout */
.signal-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  margin-top: 3rem;
}

/* Signal Cards */
.signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.signal-card {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.signal-card:hover {
  transform: translateY(-4px);
  border-color: #ff6b35;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
}

.signal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.signal-status {
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signal-status.urgent {
  background: rgba(255, 0, 0, 0.2);
  color: #ff0000;
  border: 1px solid #ff0000;
}

.signal-status.important {
  background: rgba(255, 107, 53, 0.2);
  color: #ff6b35;
  border: 1px solid #ff6b35;
}

.signal-status.watch {
  background: rgba(0, 212, 255, 0.2);
  color: #00d4ff;
  border: 1px solid #00d4ff;
}

.signal-status.opportunity {
  background: rgba(0, 255, 159, 0.2);
  color: #00ff9f;
  border: 1px solid #00ff9f;
}

.signal-type {
  font-size: 0.75rem;
  color: #8a8a8a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signal-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.signal-summary {
  color: #b8b8b8;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.signal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #8a8a8a;
}

.affected-tag {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 12px;
  color: #ff6b35;
  font-size: 0.75rem;
}

/* Signal Detail Page */
.signal-detail-main {
  padding: 2rem 0;
}

.signal-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  margin-top: 2rem;
}

.signal-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.status-left, .status-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-badge {
  padding: 0.375rem 0.875rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.signal-type-badge {
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  font-size: 0.75rem;
  color: #ffffff;
}

.scope-badge {
  padding: 0.375rem 0.875rem;
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  border-radius: 16px;
  font-size: 0.75rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #1a1a1a;
  border-color: #ff6b35;
}

/* Intelligence Brief Sections */
.brief-section {
  margin: 3rem 0;
  padding: 2rem;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.brief-section.why-matters {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(181, 55, 255, 0.05) 100%);
  border-color: rgba(255, 107, 53, 0.3);
}

.brief-section.impact-section {
  background: linear-gradient(135deg, rgba(0, 255, 159, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
  border-color: rgba(0, 255, 159, 0.3);
}

.brief-section.action-section {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 0, 0, 0.1) 100%);
  border: 2px solid #ff6b35;
}

.brief-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem;
}

.brief-content {
  color: #e0e0e0;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.brief-content p {
  margin-bottom: 1rem;
}

.brief-content strong {
  color: #ffffff;
  font-weight: 600;
}

/* Affected Groups */
.affected-groups {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.groups-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.group-tag {
  padding: 0.375rem 0.875rem;
  background: rgba(0, 255, 159, 0.1);
  border: 1px solid rgba(0, 255, 159, 0.3);
  border-radius: 16px;
  color: #00ff9f;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Action Checklist */
.action-checklist {
  margin-top: 1.5rem;
}

.action-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.action-item:hover {
  background: rgba(255, 107, 53, 0.05);
  border-color: #ff6b35;
}

.action-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #ff6b35;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-checkbox.checked {
  background: #ff6b35;
}

.action-text {
  flex: 1;
  color: #e0e0e0;
  font-size: 1rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #ff6b35 0%, #b537ff 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.375rem;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff6b35;
  border: 2px solid #0a0a0a;
}

.timeline-date {
  font-size: 0.875rem;
  color: #8a8a8a;
  margin-bottom: 0.5rem;
}

.timeline-content {
  color: #e0e0e0;
  font-size: 0.9375rem;
}

/* Sidebar */
.signal-sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.sidebar-module {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.sidebar-module h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem;
}

.module-link {
  color: #ff6b35;
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 600;
}

.module-link:hover {
  text-decoration: underline;
}

/* Movement Callout */
.movement-callout {
  background: linear-gradient(135deg, rgba(181, 55, 255, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
  border: 2px solid #b537ff;
  text-align: center;
}

.movement-icon {
  margin-bottom: 1rem;
  color: #b537ff;
}

/* Movements Hero */
.movement-hero {
  position: relative;
  padding: 4rem 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.movement-header {
  position: relative;
  z-index: 1;
}

.movement-badges {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.movement-type-badge {
  padding: 0.375rem 0.875rem;
  background: rgba(181, 55, 255, 0.2);
  border: 1px solid #b537ff;
  border-radius: 16px;
  color: #b537ff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.movement-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.movement-tagline {
  font-size: 1.5rem;
  color: #b8b8b8;
  margin: 0 0 2rem;
}

.movement-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #b8b8b8;
  font-size: 1rem;
}

.movement-actions {
  display: flex;
  gap: 1rem;
}

/* Movement Navigation */
.movement-nav {
  background: #141414;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.movement-nav .container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
}

.nav-tab {
  padding: 1rem 0;
  color: #8a8a8a;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-tab:hover {
  color: #ffffff;
}

.nav-tab.active {
  color: #ff6b35;
  border-bottom-color: #ff6b35;
}

/* Movement Sections */
.movement-section {
  margin: 3rem 0;
}

.movement-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.5rem;
}

.highlight-section {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(181, 55, 255, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);
  border: 1px solid rgba(181, 55, 255, 0.3);
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .signal-layout,
  .signal-detail-layout {
    grid-template-columns: 1fr;
  }
  
  .signal-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .movement-title {
    font-size: 2.5rem;
  }
  
  .signals-grid {
    grid-template-columns: 1fr;
  }
  
  .signal-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}
