/* ===========================================================
   THEME.CSS — Toolkit #4 (Final Build v4)
   ✅ Unified style for cockpit + modals + navigator
   ✅ Scrollable full modals + responsive grid
   ✅ Clean, minimal visual alignment with Relevance Toolkit
=========================================================== */

/* ----------------------------------------
   GLOBAL STYLES
---------------------------------------- */
:root {
  --bg-dark: #1e2429;
  --bg-light: #2a3138;
  --accent: #3da5a6;
  --accent-hover: #339092;
  --text-light: #f5f7fa;
  --text-muted: #a3a9b4;
  --border-light: #3c444c;
  --radius: 10px;
  --transition: 0.25s ease;
  --font-main: "Inter", sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.5;
}

/* ----------------------------------------
   HEADER
---------------------------------------- */
.cockpit-header {
  text-align: center;
  padding: 2rem 1rem 1.2rem;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}
.cockpit-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-light);
}
.subtitle {
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ----------------------------------------
   LAYOUT WRAPPER
---------------------------------------- */
#layout-wrapper {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  gap: 2rem;
}
#cockpit-main {
  flex: 1;
}
.layout-graphic {
  flex: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.layout-graphic img {
  width: 100%;
  height: auto;
  display: block;
}
.graphic-placeholder {
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ----------------------------------------
   REFLEX CARDS
---------------------------------------- */
.reflex-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
  transition: var(--transition);
}
.reflex-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}
.reflex-title {
  margin: 0 0 0.8rem;
  font-weight: 600;
}
.dual-btn-row {
  display: flex;
  gap: 0.6rem;
}

/* ----------------------------------------
   BUTTONS
---------------------------------------- */
.reflex-btn, .cta-primary, .cta-secondary, .btn {
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-weight: 600;
  transition: var(--transition);
}

.reflex-btn {
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.2rem;
}
.reflex-btn:hover {
  background: var(--accent-hover);
}

.secondary-btn, .cta-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.secondary-btn:hover, .cta-secondary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.cta-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
}
.cta-primary:hover {
  background: var(--accent-hover);
}

/* ----------------------------------------
   SECTOR SWITCHER
---------------------------------------- */
#sector-switcher {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.sector-tab {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.sector-tab:hover {
  color: #fff;
  border-color: var(--accent);
}
.sector-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ----------------------------------------
   NAVIGATOR
---------------------------------------- */
#navigator {
  background: var(--bg-light);
  padding: 1.2rem;
  border-radius: var(--radius);
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
}
.navigator-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}
.navigator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.months-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.months-grid textarea {
  width: 100%;
  min-height: 60px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: #22292e;
  color: var(--text-light);
  font-family: var(--font-main);
  padding: 0.6rem;
  resize: vertical;
}
.navigator-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ----------------------------------------
   MODALS (Quick + Full)
---------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-overlay.open {
  display: flex;
}
.modal-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  width: 95%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  padding: 1.2rem;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.6rem;
}
.modal-close {
  background: none;
  color: var(--text-light);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-close:hover {
  color: var(--accent);
}
.modal-body {
  margin-top: 1rem;
}
.modal-textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: #1f262b;
  color: var(--text-light);
  padding: 0.6rem;
  margin-top: 0.5rem;
}
.modal-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ----------------------------------------
   FULL MODAL (Scrollable)
---------------------------------------- */
.full-modal {
  width: 95%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-light);
}
.full-modal::-webkit-scrollbar {
  width: 10px;
}
.full-modal::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 6px;
}
.full-question-block {
  background: #252c32;
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.full-q-title {
  margin: 0;
  color: var(--accent);
}
.full-q-input {
  width: 100%;
  margin-top: 0.5rem;
  min-height: 60px;
  background: #1f262b;
  color: var(--text-light);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 0.6rem;
}

/* ----------------------------------------
   RESPONSIVE DESIGN
---------------------------------------- */
@media (max-width: 850px) {
  #layout-wrapper {
    flex-direction: column;
  }
  .layout-graphic {
    order: -1;
  }
  .navigator-grid, .months-grid {
    grid-template-columns: 1fr;
  }
}
/* ===========================================================
   NAVIGATOR EXTENSION — Add-on (v4.1)
   Aligns 6-Month Navigator horizontally under image
   Keeps proportional margins + responsive balance
=========================================================== */

.navigator-extended {
  max-width: 1200px;
  margin: 2rem auto 4rem;
  padding: 1.8rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: 0 0 8px rgba(0,0,0,0.35);
}

.navigator-extended .navigator-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.navigator-extended .months-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 1.4rem;
}

.navigator-extended .navigator-actions {
  justify-content: center;
  margin-top: 1.6rem;
}

/* Mobile optimization */
@media (max-width: 850px) {
  .navigator-extended {
    margin: 1rem;
    padding: 1.2rem;
  }
}
