/* Knowledge Detail Pages - Redesigned */





/* --- Section Styling --- */
.knowledge-section {
  padding-bottom: 1rem;
}

.section-header-modern {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title {
  font-weight: 800;
  margin-bottom: 0;
  color: var(--header-color);
  font-size: 1.75rem;
}

.section-divider {
  flex-grow: 1;
  height: 1px;
  background-color: var(--nav-border-color);
  margin-left: 1rem;
}

/* --- Redesigned Content Cards --- */
.modern-card {
  border: 1px solid var(--nav-border-color);
  border-radius: var(--border-radius-lg);
  background: var(--card-color);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  overflow: hidden;
  position: relative;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(var(--accent-color-rgb), 0.4);
}

.card-header-flex {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.card-icon-wrapper {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  padding: 10px;
  border-radius: 12px;
  background-color: rgba(var(--accent-color-rgb), 0.08);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-svg {
  width: 100%;
  height: 100%;
}

.card-title-group {
  flex: 1;
}

.modern-card-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--header-color);
}

.modern-card-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted-color);
  font-weight: 600;
}

.modern-card-body {
  flex: 1;
  margin-bottom: 1.5rem;
}

.comment-text {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 1rem; /* Standard readable size */
}

/* --- Trait Boxes (Positive/Negative) --- */
.trait-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.trait-box {
  background-color: var(--background-color);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--nav-border-color);
}

.trait-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}

.trait-box.positive {
  background-color: rgba(39, 174, 96, 0.05); /* Green tint */
  border-color: rgba(39, 174, 96, 0.1);
}

.trait-box.positive .trait-icon {
  background-color: rgba(39, 174, 96, 0.15);
  color: #27ae60;
}

.trait-box.negative {
  background-color: rgba(231, 76, 60, 0.05); /* Red tint */
  border-color: rgba(231, 76, 60, 0.1);
}

.trait-box.negative .trait-icon {
  background-color: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.trait-content {
  flex: 1;
  min-width: 0;
}

.trait-title {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted-color);
  margin-bottom: 2px;
  font-weight: 700;
  opacity: 0.8;
}

.trait-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-color);
  font-weight: 500;
}

/* Theme Accents - optional overrides if specific colors needed */
/* We can keep these but map them to new variables if possible, or leave as direct colors */
.theme-red .card-icon-wrapper {
  background-color: rgba(231, 76, 60, 0.1);
  color: #c0392b;
}
.theme-green .card-icon-wrapper {
  background-color: rgba(39, 174, 96, 0.1);
  color: #27ae60;
}
.theme-blue .card-icon-wrapper {
  background-color: rgba(52, 152, 219, 0.1);
  color: #2980b9;
}
.theme-indigo .card-icon-wrapper {
  background-color: rgba(155, 89, 182, 0.1);
  color: #8e44ad;
}

/* Zodiac Icon Styling */
.zodiac-icon {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  transition: all 0.3s ease;
}

/* Hover effects */
.modern-card:hover .zodiac-icon {
  stroke-width: 7;
}

/* --- Category Header Styles (from planets.html) --- */
.category-header {
  background: linear-gradient(
    135deg,
    rgba(var(--accent-color-rgb), 0.1) 0%,
    rgba(var(--accent-color-rgb), 0.02) 100%
  );
  border: 1px solid rgba(var(--accent-color-rgb), 0.1);
}

.category-icon {
  color: var(--accent-color);
  font-size: 6rem;
  right: -1rem;
  bottom: -1.5rem;
  transform: rotate(-15deg);
  opacity: 0.15;
}

.category-badge {
  background-color: var(--accent-color);
  color: #fff; /* Always white for contrast on accent bg */
}

.category-title {
  color: var(--accent-color);
}

/* --- Badge Utilities --- */
.badge-accent-subtle {
  background-color: rgba(var(--accent-color-rgb), 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(var(--accent-color-rgb), 0.2);
}

.badge-secondary-custom {
  background-color: var(--background-color);
  color: var(--text-muted-color);
  border: 1px solid var(--nav-border-color);
}

/* --- Link Accent --- */
.link-accent {
  color: var(--accent-color);
}
.link-accent:hover {
  color: var(--accent-hover-color);
}

/* --- Aspect Listing Cards (from aspects/index.html) --- */
.hover-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--card-color);
  position: relative;
  overflow: hidden;
}
.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(var(--accent-color-rgb), 0.4);
}

.aspect-icon-box {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(var(--accent-color-rgb), 0.12) 0%,
    rgba(var(--accent-color-rgb), 0.06) 100%
  );
  color: var(--accent-color);
  margin: 0 auto 1.25rem auto;
  transition: transform 0.3s ease;
}
.hover-card:hover .aspect-icon-box {
  transform: scale(1.1);
  background: linear-gradient(
    135deg,
    rgba(var(--accent-color-rgb), 0.2) 0%,
    rgba(var(--accent-color-rgb), 0.1) 100%
  );
}

.aspect-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--header-color);
}

.aspect-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted-color);
  font-weight: 500;
}

/* --- Dynamics Page Styles (Flow Timeline & Polarity) --- */

/* Flow Timeline - Modernized */
.flow-container {
  position: relative;
  padding: 1rem 0;
}
.flow-item-wrapper {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 2.5rem;
}
.flow-item-wrapper:last-child {
  padding-bottom: 0;
}
/* Timeline Line */
.flow-item-wrapper::before {
  content: "";
  position: absolute;
  left: 14px; /* Center with marker */
  top: 30px;
  bottom: 0;
  width: 2px;
  background: var(--nav-border-color);
  opacity: 0.5;
}
.flow-item-wrapper:last-child::before {
  display: none;
}
/* Marker */
.flow-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background: var(--accent-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(var(--accent-color-rgb), 0.3);
  z-index: 2;
}

/* Polarity Connector */
.polarity-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--nav-border-color);
}
.polarity-connector {
  font-size: 1.2rem;
  color: var(--accent-color);
  opacity: 0.7;
}

/* Custom Accent Helpers */
.text-accent {
  color: var(--accent-color) !important;
}



/* --- Planetary Rulerships Styles --- */
.dignity-card {
  transition: transform 0.2s;
}
.dignity-card:hover {
  transform: translateY(-5px);
}

/* --- House Card Specifics --- */
.house-number-icon {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(var(--accent-color-rgb), 0.2);
  font-weight: 800;
  font-size: 1.8rem;
  /* Ensure it overrides any default square shape if rounded-circle is used */
}

.highlight-box {
  background-color: rgba(var(--accent-color-rgb), 0.03);
  border-left: 4px solid var(--accent-color);
  padding: 1rem;
}

.highlight-title {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.section-description {
  color: var(--text-muted-color);
  font-size: 0.95rem;
  line-height: 1.6;
}
