/* ============================================
   DESTINY MATRIX CHART - FIXED PLUGIN CSS
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --cream: #FAF7F2;
  --warm: #F0EAE0;
  --sand: #E8DDD0;
  --brown: #C4A882;
  --brown-d: #8B6F4E;
  --forest: #1C3A2E;
  --forest-l: #2D5A45;
  --sage: #4A7C62;
  --sage-l: #7AAF94;
  --mint: #B8D4C8;
  --gold: #C9A84C;
  --gold-l: #E2C97E;
  --gold-xl: #F0DFA0;
  --ink: #0F1A14;
  --ink2: #162218;
  --ink3: #1E3024;
  --g-gold: linear-gradient(135deg, #C9A84C, #E2C97E);
  --g-forest: linear-gradient(135deg, #1C3A2E, #2D5A45);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(12, 30, 20, 0.18);
}

input[type="date"] { -webkit-appearance: none; }

/* ============ FORM ============ */

.birthday-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Inter', 'DM Sans', sans-serif;
  margin-bottom: 3em;
  padding: 2.8em 2em 2.2em;
  background: linear-gradient(160deg, rgba(28,58,46,0.55) 0%, rgba(15,26,20,0.75) 100%);
  border: 1.5px solid rgba(201,168,76,0.4);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22), inset 0 1px 0 rgba(201,168,76,0.1);
}

.birthday-container p {
  margin: 0 0 0.5em 0;
  font-size: 1.1em;
  color: var(--gold-xl);
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.birthday-container__inputs-wrapper {
  margin-top: 1.5em;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  grid-template-areas: "input1 input2 button";
  gap: 1em;
  width: 100%;
  max-width: 700px;
}

.birthday-container__inputs-wrapper-comp {
  margin-top: 1.2em;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "label-partner1 label-partner2 0"
    "input1 input2 button";
  column-gap: 1em;
  row-gap: 0.4em;
  width: 100%;
  max-width: 700px;
}

label {
  padding-left: 0.5em;
  font-size: 0.85em;
  color: var(--gold-l);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.label-partner1 { grid-area: label-partner1; }
.label-partner2 { grid-area: label-partner2; }

.errorOutput,
.wrongDate {
  margin-top: 1em;
  font-size: 0.95em;
  color: #e07070;
  background: rgba(192,57,43,0.12);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: var(--radius-sm);
  padding: 0.6em 1em;
  text-align: center;
}

.errorOutput:empty,
.wrongDate:empty { display: none; }

.input1-wrap { grid-area: input1; }
.input2-wrap { grid-area: input2; }

#date, #name, #date_person1, #date_person2 {
  width: 100%;
  height: 3em;
}

/* Inputs — white background matching reference design */
input {
  width: 100%;
  padding: 0.75em 1.2em;
  font-family: 'Inter', sans-serif;
  font-size: 1em;
  background-color: #ffffff;
  color: #1a1a1a;
  border: 1.5px solid rgba(201,168,76,0.5);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder { color: rgba(60,60,60,0.5); }

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
}

::-webkit-calendar-picker-indicator {
  filter: none;
  cursor: pointer;
}

/* Button — gold matching reference */
button {
  padding: 0.75em 1.8em;
  background: var(--g-gold);
  font-family: 'Inter', sans-serif;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  color: var(--forest);
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

button:hover { opacity: 0.88; transform: translateY(-1px); }
button:active { transform: translateY(0); }
button.loading { opacity: 0.7; cursor: wait; pointer-events: none; }

#get_the_answer,
#createChart {
  grid-area: button;
  height: 3em;
}

.output-personal-date,
.output2 {
  margin-top: 1em;
  font-size: 1.05em;
  color: var(--gold-l);
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.02em;
  text-align: center;
}

.result-name {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--cream);
  margin-right: 0.4em;
}

.result-date { color: var(--gold); }

/* ============ MATRIX CONTAINER ============ */

.matrix-container {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.matrix-container.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeSlideIn 0.5s ease forwards;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.matrix-container.display-none { display: none !important; }

/* ============ PERSONAL CALCULATOR HEADER ============ */

.personal-calculator {
  text-align: center;
  padding: 1.5em 0 0.5em;
}

.personal-calculator p,
.smoky-white {
  color: var(--gold-xl);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5em;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
}

/* ============ SVG CHART ============ */

.pento {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em 0;
  background: var(--forest);
  border-radius: 16px;
  margin: 1.5em 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pento svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.cls-44 { font-size: 9px; fill: rgba(240,223,160,0.5); font-family: 'Inter', sans-serif; text-anchor: middle; }
.cls-53 { fill: var(--gold); }
.cls-54 { font-size: 22px; fill: var(--cream); font-family: 'Inter', sans-serif; text-anchor: middle; dominant-baseline: central; font-weight: 700; }
.cls-55 { font-size: 18px; fill: var(--cream); font-family: 'Inter', sans-serif; text-anchor: middle; dominant-baseline: central; font-weight: 600; }
.cls-56 { font-size: 18px; fill: var(--gold); font-family: 'Inter', sans-serif; text-anchor: middle; dominant-baseline: central; }
.cls-57 { font-size: 14px; fill: var(--gold-xl); font-family: 'Inter', sans-serif; text-anchor: middle; dominant-baseline: central; font-weight: 600; }
.cls-58 { font-size: 13px; fill: var(--cream); font-family: 'Inter', sans-serif; text-anchor: middle; dominant-baseline: central; font-weight: 500; }
.cls-59 { font-size: 14px; fill: var(--gold-xl); font-family: 'Inter', sans-serif; text-anchor: middle; dominant-baseline: central; }
.cls-60 { font-size: 13px; fill: var(--mint); font-family: 'Inter', sans-serif; text-anchor: middle; dominant-baseline: central; }
.cls-61 { font-size: 7.5px; fill: rgba(184,212,200,0.65); font-family: 'Inter', sans-serif; }
.cls-28 { font-size: 10px; fill: rgba(240,223,160,0.6); font-family: 'Inter', sans-serif; }
.cls-29 { font-size: 10px; fill: rgba(240,223,160,0.5); font-family: 'Inter', sans-serif; }
.cls-33 { font-size: 8px; fill: rgba(184,212,200,0.7); font-family: 'Inter', sans-serif; text-anchor: middle; }
.cls-43 { font-size: 7px; fill: rgba(240,223,160,0.45); }

.cls-3  { fill: none; stroke: rgba(201,168,76,0.35); stroke-width: 1px; }
.cls-4  { fill: none; stroke: rgba(201,168,76,0.25); stroke-width: 1px; }
.cls-5  { fill: none; stroke: rgba(201,168,76,0.5);  stroke-width: 0.8px; }
.cls-6  { fill: rgba(201,168,76,0.5); stroke: none; }
.cls-7  { fill: none; stroke: var(--sage-l); stroke-width: 0.8px; opacity: 0.6; }
.cls-8  { fill: var(--sage-l); stroke: none; opacity: 0.6; }
.cls-18 { fill: none; stroke: rgba(201,168,76,0.4); stroke-width: 0.8px; }

/* Circle styles — original plugin colors */
.cls-10 { fill: var(--forest-l); stroke: var(--gold);   stroke-width: 1.5px; }
.cls-13 { fill: var(--forest-l); stroke: var(--sage);   stroke-width: 1px; }
.cls-15 { fill: rgba(28,58,46,0.8); stroke: var(--gold-l); stroke-width: 1px; }
.cls-19 { fill: var(--forest-l); stroke: var(--sage-l); stroke-width: 1.5px; }
.cls-21 { fill: var(--ink2);     stroke: var(--sage);   stroke-width: 0.8px; }
.cls-22 { fill: var(--ink2);     stroke: var(--gold);   stroke-width: 1px; }
.cls-23 { fill: var(--forest-l); stroke: var(--mint);   stroke-width: 0.8px; }
.cls-24 { fill: var(--forest);   stroke: var(--gold-l); stroke-width: 1.5px; }
.cls-25 { fill: var(--gold);     stroke: var(--gold-l); stroke-width: 2px; }
.cls-26 { fill: var(--ink);      stroke: var(--sage-l); stroke-width: 0.8px; }

/* ============ CHAKRA TABLE — gold border matching site ============ */

#chakra_table {
  position: relative;
  margin: 1.5em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1.5px solid rgba(201,168,76,0.45);
  box-shadow: 0 4px 24px rgba(12,30,20,0.2);
}

/* GLOW HIDDEN — no more bleeding glow behind table */
.glow__wrap {
  display: none;
}
.glow2 {
  display: none;
}

.chakra-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95em;
  background: var(--forest);
  border-radius: var(--radius);
  overflow: hidden;
}

.chakra-tr { transition: background 0.15s; }

.chakra-tr:hover td,
.chakra-tr:hover th { background: rgba(201,168,76,0.08); }

.chakra-table-header th {
  background: var(--ink);
  color: var(--gold-xl);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8em;
  padding: 0.85em 1em;
  border-bottom: 1.5px solid rgba(201,168,76,0.45);
}

.chakra-name {
  color: var(--cream);
  font-weight: 600;
  padding: 0.75em 1em;
  background: rgba(28,58,46,0.6);
  border-right: 1px solid rgba(201,168,76,0.2);
  min-width: 120px;
}

.chakra-name-flex {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.chakra-td {
  color: var(--gold-xl);
  padding: 0.75em 1em;
  text-align: center;
  border-right: 1px solid rgba(201,168,76,0.12);
  font-size: 0.95em;
}

.chakra-td:last-child { border-right: none; }

.chakra-name__radius-left         { border-top-left-radius: var(--radius); }
.chakra-name__radius-right        { border-top-right-radius: var(--radius); }
.chakra-name__radius-left-bottom  { border-bottom-left-radius: var(--radius); }
.chakra-name__radius-right-bottom { border-bottom-right-radius: var(--radius); }
.chakra-name__radius-right-bottom2{ border-bottom-right-radius: var(--radius); }

/* ============ INFO / PURPOSES TABLE ============ */

.info-txt {
  margin: 2em 0;
  padding: 2em;
  background: linear-gradient(135deg, rgba(28,58,46,0.5), rgba(15,26,20,0.6));
  border: 1.5px solid rgba(201,168,76,0.35);
  border-radius: var(--radius);
}

/* ============ PURPOSES — responsive flex ============ */

.purposes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
}

.purpose-block {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.purpose-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.85em;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.purpose-desc {
  font-size: 0.85em;
  color: var(--sage-l);
  font-style: italic;
  margin: 0 0 0.4em 0;
  line-height: 1.4;
}

.purpose-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: nowrap;
}

.purpose-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.purpose-label-val {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.purpose-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 0.9em;
  color: var(--gold-xl);
  min-width: 2em;
}

.purpose-bracket {
  flex-shrink: 0;
}

.purpose-result {
  flex-shrink: 0;
}

.purpose-single {
  display: flex;
  align-items: center;
  padding-top: 0.3em;
}

.base-circle {
  border: 2px solid var(--gold);
  border-radius: 50%;
  width: 2.4em;
  height: 2.4em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--gold-xl);
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.22));
  flex-shrink: 0;
}

h3 { text-transform: uppercase; }

/* ============ UTILITY ============ */

.display-none { display: none !important; }
.compatibility-table__adaptiv { display: none; }

/* ============ MOBILE RESPONSIVE ============ */

@media screen and (max-width: 700px) {
  /* === FORM === */
  .birthday-container {
    padding: 1.8em 1em 1.5em;
    border-radius: 14px;
  }

  .birthday-container__inputs-wrapper,
  .birthday-container__inputs-wrapper-comp {
    grid-template-columns: 1fr;
    grid-template-areas:
      "input1"
      "input2"
      "button";
    gap: 0.75em;
    margin-top: 1em;
  }

  .birthday-container__inputs-wrapper-comp {
    grid-template-areas:
      "label-partner1"
      "input1"
      "label-partner2"
      "input2"
      "button";
    grid-template-rows: auto auto auto auto auto;
  }

  #get_the_answer, #createChart {
    width: 100%;
    height: 3.2em;
    font-size: 1em;
  }

  input { width: 100%; height: 3em; font-size: 1em; }
  #date, #name, #date_person1, #date_person2 { width: 100%; height: 3em; }

  /* === CHART === */
  .pento { padding: 0.5em; border-radius: 12px; margin: 1em 0; }
  .cls-54 { font-size: 26px; }
  .cls-55 { font-size: 20px; }
  .cls-57, .cls-58 { font-size: 14px; }
  .cls-59, .cls-60 { font-size: 14px; }

  /* === CHAKRA TABLE === */
  #chakra_table { border-radius: 10px; }
  .chakra-table { font-size: 0.82em; }
  .chakra-name  { min-width: 90px; }
  .chakra-td    { padding: 0.6em 0.6em; }

  /* === PURPOSES SECTION — stack to single column on small mobile === */
  .info-txt { padding: 1em; margin: 1.2em 0; }

  .purposes-grid {
    grid-template-columns: 1fr;
    gap: 1.2em;
  }

  .purpose-heading { font-size: 0.78em; }
  .purpose-desc    { font-size: 0.8em; }
  .purpose-lbl     { font-size: 0.82em; }

  .purpose-bracket { width: 30px; height: 44px; }

  .base-circle {
    width: 2em;
    height: 2em;
    font-size: 0.95em;
  }

  .compatibility-table { display: none; }
  .compatibility-table__adaptiv { display: block; }
}

@media screen and (max-width: 400px) {
  .cls-54 { font-size: 22px; }
  .cls-55, .cls-56 { font-size: 16px; }
  .cls-57, .cls-58, .cls-59, .cls-60 { font-size: 12px; }
  .cls-61, .cls-28, .cls-29, .cls-33 { display: none; }
}

@media screen and (min-width: 1920px) {
  .birthday-container__inputs-wrapper { max-width: 800px; }
}
