@import url("/assets/css/base/tokens.css");

/* ===============================
      Vizyon / Misyon / Değerler
   =============================== */
#vizyon-misyon {
  background: var(--surface-dark);
  color: var(--text);
  padding: 90px 24px;
}
.vmd-wrap {
  max-width: 1240px;
  margin: 0 auto;
}
.vmd-head {
  text-align: center;
  margin-bottom: 40px;
}
.vmd-head .kicker {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.vmd-head .title {
  color: var(--accent);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
}

.vmd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vmd-card {
  position: relative;
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.35s ease, border-color 0.3s ease;
}
.vmd-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(
    120deg,
    rgba(200, 162, 77, 0.35),
    rgba(200, 162, 77, 0) 40%,
    rgba(200, 162, 77, 0.35)
  );
  filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#vizyon-misyon .vmd-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    90deg,
    rgba(200, 162, 77, 0) 0%,
    rgba(200, 162, 77, 1) 25%,
    rgba(200, 162, 77, 0) 50%,
    rgba(200, 162, 77, 1) 75%,
    rgba(200, 162, 77, 0) 100%
  );
  background-size: 200% 100%;
  animation: neonBorder 6s linear infinite;
  /* --- Mask (gradient border hollow effect) --- */
  /* Shorthand (unprefixed) */
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  /* WebKit (Chrome / Safari / iOS) */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  /* Composite modes (vendor + standard) */
  -webkit-mask-composite: xor; /* Safari/Chrome */
  mask-composite: exclude; /* Spec */
  /* Note: Firefox (as of 2025) does not yet fully support mask-composite: exclude.
     A graceful fallback is provided below with @supports. */
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(200, 162, 77, 0.35));
}

/* Fallback: If composite masking isn't supported, show a simple animated gradient border */
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  #vizyon-misyon .vmd-card::before {
    padding: 0; /* remove inner hollow padding */
    mask: none;
    -webkit-mask: none;
    /* Use background-clip trick to keep gradient only in border area */
    background: linear-gradient(
      90deg,
      rgba(200, 162, 77, 0) 0%,
      rgba(200, 162, 77, 1) 25%,
      rgba(200, 162, 77, 0) 50%,
      rgba(200, 162, 77, 1) 75%,
      rgba(200, 162, 77, 0) 100%
    );
    background-size: 200% 100%;
    background-origin: border-box;
    border: 2px solid rgba(200, 162, 77, 0.6);
    /* Keep animation for visual consistency */
    animation: neonBorder 6s linear infinite;
    filter: drop-shadow(0 0 6px rgba(200, 162, 77, 0.35));
  }
}
.vmd-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 162, 77, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08),
    0 18px 40px rgba(200, 162, 77, 0.18);
}
.vmd-card:hover::after {
  opacity: 1;
}

.vmd-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  background: linear-gradient(140deg, var(--accent), #a8832b);
  box-shadow: 0 10px 30px rgba(200, 162, 77, 0.25);
}
.vmd-title {
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 10px;
  color: #000;
}
.vmd-text {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.vmd-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  display: grid;
  gap: 10px;
}
.vmd-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  color: #333;
}
.vmd-list li i {
  color: #a8832b;
  margin-top: 2px;
}

/* Variations for subtle color cues if needed */
.vmd-vision .vmd-icon {
  background: linear-gradient(140deg, var(--accent), #a8832b);
  box-shadow: 0 10px 30px rgba(200, 162, 77, 0.25);
}
.vmd-mission .vmd-icon {
  background: linear-gradient(140deg, var(--accent), #a8832b);
  box-shadow: 0 10px 30px rgba(200, 162, 77, 0.25);
}
.vmd-values .vmd-icon {
  background: linear-gradient(140deg, var(--accent), #a8832b);
  box-shadow: 0 10px 30px rgba(200, 162, 77, 0.25);
}

/* Responsive */
@media (max-width: 1024px) {
  .vmd-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* Tablet: Değerlerimiz kartı tam satıra yayılsın */
  .vmd-grid .vmd-values {
    grid-column: 1 / -1;
  }
  /* Tablet genişliğinde değerler listesi iki sütun olsun */
  .vmd-grid .vmd-values .vmd-list {
    columns: 2;
    column-gap: 28px;
  }
}
@media (max-width: 640px) {
  #vizyon-misyon {
    padding: 70px 18px;
  }
  .vmd-grid {
    grid-template-columns: 1fr;
  }
  /* Küçük mobilde tekrar tek sütun liste */
  .vmd-grid .vmd-values .vmd-list {
    columns: 1;
  }
  .vmd-head .title {
    font-size: 24px;
  }
}
