/* PAGE STYLES (code-of-conduct.css) */

/* --- Hero Section (mirrors .membership-hero) --- */
.conduct-hero {
  margin-top: 80px;
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.conduct-hero h1 {
  font-size: 3rem;
  color: var(--color-primary);
  text-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
  margin-bottom: var(--spacing-sm);
}

.conduct-hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

/* --- Main Content Container --- */
.conduct-container {
  padding: var(--spacing-xl) 10%;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* --- Subtle side glow patches for visual depth --- */
.glow-patch {
  position: absolute;
  top: 20%;
  width: 32vw;
  height: 32vw;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}

.glow-patch.left {
  left: -10vw;
  background: var(--glow-primary);
}

.glow-patch.right {
  right: -10vw;
  background: var(--glow-secondary);
}

/* --- Intro Paragraph --- */
.conduct-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-main);
  text-align: center;
  max-width: 880px;
  margin: 0 auto var(--spacing-xl);
}

/* --- Callout banner that points to the Terms dropdown on members.html --- */
.conduct-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto var(--spacing-xl);
  padding: 14px 18px;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-main);
}

.conduct-callout i {
  color: var(--color-accent);
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.conduct-callout p {
  margin: 0;
}

.conduct-callout strong {
  color: var(--color-accent);
}

.conduct-callout a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.conduct-callout a:hover {
  color: var(--color-accent);
}

/* --- Section Title (matches global pattern, secondary accent) --- */
.conduct-container .section-title {
  text-align: center;
  color: var(--color-secondary);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.conduct-container .section-title:first-of-type {
  margin-top: 0;
}

/* --- Content Sections --- */
.conduct-section {
  margin-bottom: var(--spacing-xl);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.conduct-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.conduct-section ul li {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  line-height: 1.75;
  font-size: 1.05rem;
  color: var(--text-main);
}

.conduct-section ul li:last-child {
  margin-bottom: 0;
}

/* Custom clean marker */
.conduct-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.45);
}

/* Bold lead phrase highlighted in the gold accent */
.conduct-section ul li strong {
  color: var(--color-accent);
  font-weight: 600;
  margin-right: 0.25rem;
}

/* --- Closing affirmation line --- */
.conduct-closing {
  margin-top: var(--spacing-xl);
  text-align: center;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .conduct-hero {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .conduct-hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .conduct-hero p {
    font-size: clamp(0.95rem, 3vw, 1.05rem);
  }

  .conduct-container {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .conduct-section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .conduct-section .section-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: var(--spacing-md);
  }

  .conduct-section ul li {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
  }

  .conduct-callout {
    font-size: 0.9rem;
    padding: 12px 14px;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top.show {
  display: flex;
}

/* =========================================
   LIGHT THEME OVERRIDES
   ========================================= */

[data-theme="light"] .conduct-section {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .conduct-callout {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  border-left: 4px solid var(--color-accent) !important;
  color: var(--text-main) !important;
}
