/* ============================================================
   MN HEDGE FUND — Shared Page Styles
   ============================================================ */

/* --- About Page --- */
.about-content { max-width: 800px; margin: 0 auto; }
.about-content h2 { margin: var(--space-3xl) 0 var(--space-lg); font-size: 1.6rem; }
.about-content h3 { margin: var(--space-2xl) 0 var(--space-md); color: var(--accent-primary); }
.about-content p { margin-bottom: var(--space-lg); font-size: 1rem; line-height: 1.9; max-width: none; }

.about-features { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-xl); margin: var(--space-2xl) 0; }

.about-cta-block {
  text-align: center;
  margin-top: var(--space-3xl);
  padding: var(--space-3xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.about-cta-block h3 { color: var(--text-primary); margin-bottom: var(--space-md); }
.about-cta-block p { margin: 0 auto var(--space-xl); }

/* --- FAQ Accordion --- */
.faq-section {
  margin-top: var(--space-4xl);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--border-subtle);
}

.faq-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.active {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 20px rgba(var(--accent-primary-rgb), 0.1);
}

.faq-question {
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-number {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(240, 185, 11, 0.1);
  color: var(--accent-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.faq-question span:nth-child(2) {
  flex-grow: 1;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--accent-primary);
  transition: transform var(--transition-base);
}

/* --- Strategy Operating Mechanism --- */
.op-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
  position: relative;
}

.op-card {
  background: rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  display: flex;
  flex-direction: column;
}

.op-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.op-card:hover {
  background: rgba(30, 30, 35, 0.8);
  border-color: rgba(240, 185, 11, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(240, 185, 11, 0.1);
}

.op-card:hover::before {
  transform: translateX(100%);
}

.op-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  z-index: 2;
}

.op-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(240, 185, 11, 0.1);
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.op-card:hover .op-icon {
  background: var(--accent-primary);
  color: var(--bg-card);
  transform: scale(1.1) rotate(5deg);
}

.op-card h3 {
  font-size: 1.25rem;
  margin: 0;
  transition: color 0.3s ease;
}

.op-card:hover h3 {
  color: var(--accent-primary);
}

.op-card-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
  transition: opacity 0.3s ease;
}

.op-card:hover .op-card-intro {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.op-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-light);
  line-height: 1.6;
}

.op-details-inner {
  overflow: hidden;
  padding-top: 0;
  transition: padding-top 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.op-card:hover .op-details {
  grid-template-rows: 1fr;
  opacity: 1;
}

.op-card:hover .op-details-inner {
  padding-top: var(--space-md);
}

.op-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.op-details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.op-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .op-card .op-card-intro {
    opacity: 0;
    display: none;
  }
  .op-details {
    grid-template-rows: 1fr;
    opacity: 1;
  }
  .op-details-inner {
    padding-top: var(--space-md);
  }
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  padding: 0 var(--space-xl);
  overflow: hidden;
  color: var(--text-secondary);
  line-height: 1.8;
  transition: all 0.3s ease-in-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-lg);
}

/* --- Register Page --- */
.register-section { max-width: 640px; margin: 0 auto; padding-bottom: var(--space-4xl); }
.register-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}
.register-card h2 { font-size: 1.2rem; margin-bottom: var(--space-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: var(--space-lg); display: flex; align-items: flex-start; gap: var(--space-sm); }
.form-note svg { flex-shrink: 0; margin-top: 2px; }

/* --- Contact Page --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); max-width: 1000px; margin: 0 auto; }
.contact-cards { display: flex; flex-direction: column; gap: var(--space-lg); }
.contact-card {
  display: flex; align-items: center; gap: var(--space-lg);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: var(--space-xl);
  transition: all var(--transition-base);
}
.contact-card:hover { border-color: var(--border-color); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.contact-card-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: rgba(var(--accent-primary-rgb),0.1);
  border: 1px solid rgba(var(--accent-primary-rgb),0.2);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; color: var(--accent-primary);
}
.contact-card h4 { font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 4px; }
.contact-card p { font-size: 0.85rem; color: var(--text-secondary); }

.contact-form-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: var(--space-2xl);
}
.contact-form-card h3 { font-size: 1.1rem; margin-bottom: var(--space-xl); }

.contact-map {
  margin-top: var(--space-2xl); text-align: center;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: var(--space-3xl);
}
.contact-map h4 { font-family: var(--font-heading); margin-bottom: var(--space-sm); color: var(--accent-primary); }
.contact-map p { margin: 0 auto; }

/* --- Live Page --- */
.live-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-xl); }
.live-stream {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); overflow: hidden;
}
.live-stream-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}
.live-stream-header h3 { font-size: 1rem; }
.stream-placeholder {
  aspect-ratio: 16/9; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--space-md);
  background: var(--bg-secondary); color: var(--text-muted);
}
.stream-placeholder svg { opacity: 0.3; }
.stream-placeholder p { font-size: 0.9rem; }

.live-sidebar { display: flex; flex-direction: column; gap: var(--space-xl); }
.sidebar-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: var(--space-xl);
}
.sidebar-card h3 { font-size: 0.95rem; margin-bottom: var(--space-lg); }

.status-indicator {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: 0.85rem; font-weight: 600;
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
.status-dot.online { background: var(--accent-secondary); }
.status-dot.standby { background: var(--accent-primary); }

.live-cta {
  text-align: center; padding: var(--space-3xl);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); margin-top: var(--space-2xl);
}
.live-cta h3 { margin-bottom: var(--space-md); }
.live-cta p { margin: 0 auto var(--space-xl); }
.live-cta .cta-buttons { display: flex; justify-content: center; gap: var(--space-md); flex-wrap: wrap; }

/* --- Articles Page --- */
.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-xl); }
.article-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition-base); cursor: pointer;
}
.article-card:hover { border-color: var(--border-color); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-thumb {
  height: 200px; background: var(--bg-tertiary);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-thumb svg { opacity: 0.2; }
.article-body { padding: var(--space-xl); }
.article-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-md); }
.article-body h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: var(--space-md); line-height: 1.4; }
.article-body p { font-size: 0.85rem; line-height: 1.6; }
.article-link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-md); font-size: 0.85rem; font-weight: 600; color: var(--accent-primary); }
.article-link:hover { gap: 10px; }

@media (max-width: 1024px) {
  .live-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* System Architecture Layers */
.arch-stack {
  margin: var(--space-2xl) 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.arch-layer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl) var(--space-2xl);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg) !important;
  background-color: var(--bg-card); /* Base solid color to block layers underneath */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-label {
  flex: 0 0 200px;
}

.arch-tags {
  flex: 1 1 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arch-nested {
  width: 100%;
  margin-top: var(--space-lg);
}

/* Layer color themes */
.arch-layer--human {
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.12) 0%, rgba(240, 185, 11, 0.02) 100%), var(--bg-card);
  border-color: rgba(240, 185, 11, 0.3);
}
.arch-layer--algo {
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.12) 0%, rgba(0, 184, 148, 0.02) 100%), var(--bg-card);
  border-color: rgba(0, 184, 148, 0.3);
}
.arch-layer--filter {
  background: linear-gradient(135deg, rgba(99, 110, 250, 0.12) 0%, rgba(99, 110, 250, 0.02) 100%), var(--bg-card);
  border-color: rgba(99, 110, 250, 0.3);
}
.arch-layer--risk {
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.12) 0%, rgba(255, 71, 87, 0.02) 100%), var(--bg-card);
  border-color: rgba(255, 71, 87, 0.3);
}

/* Hover effects */
.arch-layer:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.arch-layer--human:hover { box-shadow: 0 15px 40px rgba(240, 185, 11, 0.15); border-color: rgba(240, 185, 11, 0.6); }
.arch-layer--algo:hover { box-shadow: 0 15px 40px rgba(0, 184, 148, 0.15); border-color: rgba(0, 184, 148, 0.6); }
.arch-layer--filter:hover { box-shadow: 0 15px 40px rgba(99, 110, 250, 0.15); border-color: rgba(99, 110, 250, 0.6); }
.arch-layer--risk:hover { box-shadow: 0 15px 40px rgba(255, 71, 87, 0.15); border-color: rgba(255, 71, 87, 0.6); }

/* Left section: label */
.arch-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.arch-label-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 20px;
}
.arch-layer--human .arch-label-badge {
  color: #F0B90B;
  background: rgba(240, 185, 11, 0.12);
}
.arch-layer--algo .arch-label-badge {
  color: #00b894;
  background: rgba(0, 184, 148, 0.12);
}
.arch-layer--filter .arch-label-badge {
  color: #636efa;
  background: rgba(99, 110, 250, 0.12);
}
.arch-layer--risk .arch-label-badge {
  color: #ff4757;
  background: rgba(255, 71, 87, 0.12);
}

.arch-label h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--text-primary);
  font-weight: 700;
}

.arch-label p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Right section: tags */
.arch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arch-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.arch-tag svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.arch-layer--human .arch-tag:hover {
  border-color: rgba(240, 185, 11, 0.3);
  background: rgba(240, 185, 11, 0.06);
  color: #F0B90B;
}
.arch-layer--algo .arch-tag:hover {
  border-color: rgba(0, 184, 148, 0.3);
  background: rgba(0, 184, 148, 0.06);
  color: #00b894;
}
.arch-layer--filter .arch-tag:hover {
  border-color: rgba(99, 110, 250, 0.3);
  background: rgba(99, 110, 250, 0.06);
  color: #636efa;
}
.arch-layer--risk .arch-tag:hover {
  border-color: rgba(255, 71, 87, 0.3);
  background: rgba(255, 71, 87, 0.06);
  color: #ff4757;
}

/* Connectors between layers */
.arch-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
  position: relative;
  z-index: 2;
}

.arch-connector svg {
  position: absolute;
  top: -10px;
}

/* Data flow arrow removed as requested */

/* Responsive */
@media (max-width: 768px) {
  .arch-layer {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-lg);
  }
  .arch-stack::before,
  .arch-stack::after {
    display: none;
  }
  .arch-label h3 {
    font-size: 1rem;
  }
  .arch-tag {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}
