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

/* ===============================
              FOOTER 
   =============================== */

/* Link renkleri */
#site-footer a {
  color: #eaf6ff;
  text-decoration: none;
}
#site-footer a:hover {
  color: #1e90ff;
  text-decoration: underline;
}

/* Kapsayıcı */
#site-footer {
  margin-top: auto;
  background: #002237;
  color: var(--muted, #b7c9d6);
  padding: 50px 20px 20px;
  font-size: 14px;
}
#site-footer .ft-wrap {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 960px) {
  #site-footer .ft-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 601px) and (max-width: 960px) {
  /* Two columns with nice spacing */
  #site-footer .ft-wrap { gap: 28px; }

  /* Default left alignment for content on tablet */
  #site-footer .ft-col { text-align: left; }

  /* Brand (first column) spans full width and is centered */
  #site-footer .ft-wrap > .ft-col:first-child {
    grid-column: 1 / -1;
    text-align: center;
  }
  /* Center logo image within brand column on tablet */
  #site-footer .ft-wrap > .ft-col:first-child img {
    margin: 0 auto 12px;
  }
  /* Keep links and contact as two columns (no spanning) */
  #site-footer .ft-contact { max-width: 100%; margin: 0; }
  #site-footer .ft-contact li {
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center; /* override flex-start */
    gap: 12px;
  }
  #site-footer .ft-contact i { margin-top: 0; width: 24px; }
  #site-footer .ft-contact li.is-location .ft-address-wrapper { display: contents; }

  /* Quick links: left-aligned items */
  #site-footer .ft-links { align-items: flex-start; }
}
@media (max-width: 600px) {
  /* Overall stack and spacing */
  #site-footer { padding: 36px 16px 20px; }
  #site-footer .ft-wrap { grid-template-columns: 1fr; gap: 16px; }
  #site-footer .ft-col { 
    padding: 16px;
  }

  #site-footer .ft-col:first-child { text-align: center; }
  #site-footer .ft-col:not(:first-child) { text-align: left; }
}

/* Logo */
#site-footer .ft-col img {
  height: 70px;
  display: block;
  margin-bottom: 12px;
}
@media (max-width: 600px) {
  #site-footer .ft-col img { margin: 0 auto 12px; }
  .ft-about { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
}

/* Başlıklar & metin */
.ft-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #eaf6ff;
}
.ft-about {
  color: #b7c9d6;
  font-size: 13px;
  line-height: 1.5;
}

/* Listeler */
.ft-links,
.ft-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ft-links a {
  color: #b7c9d6;
  transition: 0.2s;
  text-decoration: none;

}
.ft-links a:hover {
  color: #1e90ff;
  text-decoration: none;
}

/* Hover effect improvements for footer links */
#site-footer .ft-links a,
#site-footer .ft-contact a {
  position: relative;
  text-decoration: none; /* override any defaults */
  background-image: linear-gradient(#1e90ff, #1e90ff);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: color 0.2s ease, background-size 0.25s ease;
}

#site-footer .ft-links a:hover,
#site-footer .ft-links a:focus-visible,
#site-footer .ft-contact a:hover,
#site-footer .ft-contact a:focus-visible {
  color: #1e90ff;
  text-decoration: none; /* explicitly remove the "ugly" underline */
  background-size: 100% 2px; /* animated underline */
}

/* İletişim satırları */
#site-footer .ft-contact li {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 12px;
  color: #b7c9d6;
  text-align: left;
  text-decoration: none;

}
#site-footer .ft-contact i {
  color: #1e90ff;
  width: 24px;
  line-height: 1;
  margin-top: 0;
}
#site-footer .ft-contact .ft-address {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
}
/* Ensure location row wrapper doesn't break alignment across all breakpoints */
#site-footer .ft-contact li.is-location .ft-address-wrapper { display: contents !important; }
/* Ensure the location row uses the same layout as other rows across all breakpoints */
#site-footer .ft-contact li.is-location .ft-address-wrapper {
  display: contents;
}

@media (max-width: 600px) {
  .ft-links { gap: 6px; }
  .ft-links li a {
    display: block;
    padding: 12px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  #site-footer .ft-links li a,
  #site-footer .ft-contact a {
    background-image: none;
    background-size: 0 0;
  }


  #site-footer .ft-contact { 
    display: block; 
  }
  #site-footer .ft-contact li {
    width: 100%;
    margin: 0 0 10px;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: center;
    text-align: left;
  }

  #site-footer .ft-contact li.is-location .ft-address-wrapper { display: contents; }
  #site-footer .ft-contact i {
    justify-self: center;
    margin: 0;
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #1e90ff;
    color: #001018;
  }
  #site-footer .ft-contact li a,
  #site-footer .ft-contact .ft-address {
    display: block;
    max-width: 100%;
    white-space: normal;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* Sosyal */
.ft-social {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}
@media (max-width: 600px) {
  .ft-social { justify-content: center; }
  .ft-social a { width: 40px; height: 40px; }
}
.ft-social a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1e90ff;
  color: #001018;
  transition: 0.25s;
}
.ft-social a:hover {
  background: #eaf6ff;
  color: #001018;
}

/* Alt satır */
.ft-bottom {
  margin-top: 30px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  font-size: 13px;
  color: #777;
}

/* KVKK linkleri */
.df-kvkk__cb {
  margin: 0;
  order: 0;
  flex: 0 0 auto;
}
.df-kvkk__text {
  color: #475569;
}
.df-kvkk__link {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}
.df-kvkk__link:hover {
  text-decoration: underline;
}
.df-kvkk__link:visited {
  color: #0d6efd;
}

@media (max-width: 600px) {
  .cm-open-prefs{
    display: none;
  }
}