@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;700&family=Unna:ital,wght@0,400;0,700;1,400&display=swap');

/* === GLOBAL KORUMA === */
input,
select,
textarea {
  max-width: 100%;
  box-sizing: border-box;
}

/* === GENEL === */
body {
  font-family: 'Unna', serif;
  background-color: #191f1f;
  color: #e8e8dc;
  margin: 0;
  /* padding: 20px; */
  box-sizing: border-box;
  border: 4px solid #3a4d4d;
  border-radius: 12px;
  box-shadow: 0 0 0 8px #3a4d4d;
  background-image: url('img/celtic-frame.png');
  background-repeat: repeat;
  background-position: center;
  background-size: 120px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(to bottom, #253c3c, #1d4949);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 
    0 6px 30px rgba(0, 0, 0, 0.3),
    0 0 0 4px rgba(0, 0, 0, 0.4);
}

/* === NAVBAR === */
.navbar {
  background-color: #1f2e2e;
  border-bottom: 1px solid #3d5050;
  padding: 10px 0;
  text-align: center;
  margin-bottom: 10px;
}

.nav-logo-wrapper {
  display: inline-block;
  border-radius: 50%;
  position: relative;
  overflow: visible;
  animation: glow-border 1.2s ease-out forwards;
  animation-delay: 0.3s;
  animation-fill-mode: forwards;
  opacity: 0;
  background-color: rgb(5, 18, 16)
}

.nav-logo {
  width: 80px;
  height: auto;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  animation: logoFadeZoom 0.8s ease-out forwards;
  animation-delay: 0.3s;

}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #e0e0e0;
  font-family: 'Unna', serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
  transform: scale(1.1);
  color: #dabf75;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #dabf75;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}
/* === BAŞLIKLAR === */
h1,
legend {
  font-family: 'Cormorant Garamond', serif;
  color: #dabf75;
  text-align: center;
  padding: 0 8px;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

legend {
  font-size: 1rem;
  font-weight: 600;
  display: block;
}

/* === FIELDSET === */
fieldset {
  border: 1px solid #526a6a;
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
  margin-bottom: 16px;
  background-color: #1f2e2e;
}

/* === LABEL === */
label {
  font-family: 'Unna', serif;
  font-size: 0.75rem;
  color: #c9c9b2;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 6px;
  display: block;
}

/* === INPUT, SELECT, TEXTAREA === */
input,
select,
textarea {
  font-family: 'Unna', serif;
  font-weight: bold;
  font-size: 1rem;
  color: #e8e8dc;
  background-color: #2f3e3e;
  border: 1px solid #526a6a;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  width: 100%;
}

input {
  padding: 1px 1px; /* üst-alt: 1px, sağ-sol: 10px */
}

/* === KİLO & BOY === */

.kilo-boy-grup {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  margin-bottom: 20px; /* alt boşluk eklendi */
  flex-wrap: nowrap;
}

.kilo-boy-grup > div {
  flex: 1 1 50%;
  min-width: 0;
}

/* === BUTONLAR === */
button {
  font-family: 'Unna', serif;
  margin-top: 20px;
  padding: 12px;
  width: 100%;
  background-color: #8c4a2f;
  color: #f5f0e6;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

button:hover {
  background-color: #a85d3a;
  transform: scale(1.02);
}

button.icki-sil {
  margin: 0;
  padding: 0;
  width: 36px;
  height: 36px;
  font-size: 16px;
  background: #8c4a2f;
  display: flex;
  align-items: center;
  justify-content: center;
}

button.icki-sil:hover {
  background: #a85d3a;
}

/* === + / − BUTONLARI === */
.input-step {
  display: flex;
  align-items: stretch;
  border: 1px solid #526a6a;
  border-radius: 6px;
  overflow: hidden;
  height: 30px;
}

.input-step input {
  border: none;
  flex: 1;
  font-size: 1rem;
  text-align: center;
  font-weight: bold;
  background-color: #2f3e3e;
  color: #e8e8dc;
  height: 100%;
  border-radius: 0px;
}

.input-step button {
  background: #4a5f5f; /* kontrastı artırılmış */
  border: none;
  width: 26px; /* genişlik azaldı */
  font-size: 18px; /* kalınlaştı */
  font-weight: bold;
  color: #ffeaa7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
  margin: 0;
  border-radius: 0px;
  transition: background 0.2s ease;
}

.input-step button:hover {
  background: #6b8888;
}

/* === İÇKİ BLOĞU === */
.icki-grubu {
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeSlideIn 0.4s ease forwards;
}

.icki-ust {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === İÇKİ SELECT STİLİ === */
.icki-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.icki-select-wrapper label {
  font-size: 0.75rem;
  font-weight: bold;
  color: #c9c9b2;
  display: block;
  margin-bottom: 4px;
  font-family: 'Unna', serif;
}

.icki-select-wrapper select.icki-turu {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #2f3e3e;
  color: #e8e8dc;
  font-weight: bold;
  font-family: 'Unna', serif;
  padding: 10px;
  padding-right: 32px; /* sağdaki ok için boşluk */
  border: 1px solid #526a6a;
  border-radius: 6px;
  text-align: left;
}

.custom-arrow {
  position: absolute;
  top: 50%;
  right: 24px;
  pointer-events: none;
  transform: translateY(-50%);
  color: #dabf75;
  width: 16px;
  height: 16px;
}


.icki-alt {
  display: flex;
  gap: 12px;
  align-items: center;
  overflow: hidden;
}

.icki-icon {
  flex: 1 1 auto;
  max-height: 160px;
  max-width: calc(100% - 112px);
  width: 100%;
  object-fit: contain;
  align-self: center;
  transition: opacity 0.3s ease;
}

.icki-input-kolon {
  width: 112px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
}
.icki-input-kolon label {
  margin-top: 4px;
  margin-bottom: 0;
}

/* === CİNSİYET === */
.gender-buttons {
  display: flex;
  gap: 10px;
  margin-top: 0; /* üst boşluk sıfırlandı */
}
.gender-button {
  flex: 1;
  padding: 8px;
  font-size: 16px;
  border: 2px solid #3a4d4d;
  border-radius: 6px;
  background: #2f3e3e;
  color: #e8e8dc;
  cursor: pointer;
  margin: 0 !important; /* Kenar boşluklarını tamamen kaldırır */
  font-weight: bold;
  font-family: 'Unna', serif;
}

.gender-button.selected {
  background-color: #8c4a2f;
  border-color: #8c4a2f;
  color: #fff;
}

/* === SONUÇ KUTUSU TEMEL === */
.result-box {
  padding: 16px;
  border-radius: 10px;
  margin-top: 20px;
  font-family: 'Unna', serif;
  font-weight: bold;
  text-align: center;
  background: #2f3e3e;
  color: #dabf75;
  border: 1px solid #526a6a;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s ease-out;
}

.result-box.show {
  transform: scale(1);
  opacity: 1;
}

/* === PROMİL DURUMA GÖRE TEMALAR === */
.result-safe {
  background-color: #2e4633;
  border-color: #4c7152;
  color: #cfe7c5;
}

.result-warning {
  background-color: #4f4421;
  border-color: #9e8a3c;
  color: #fff2c2;
}

.result-danger {
  background-color: #4b2c2c;
  border-color: #a14545;
  color: #f8cccc;
}

/* === PROMİL INFO BAR === */
.promil-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 4px solid #4caf50;
}

.promil-info-bar.safe {
  border-color: #4caf50;
  color: #cfe7c5;
}

.promil-info-bar.warning {
  border-color: #ff9800;
  color: #fff2c2;
}

.promil-info-bar.danger {
  border-color: #f44336;
  color: #f8cccc;
}

.info-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-right: 10px;
  filter: brightness(1.2);
}

.info-icon.safe { stroke: #4caf50; }
.info-icon.warning { stroke: #ff9800; }
.info-icon.danger { stroke: #f44336; }

.promil-baslik {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  font-family: 'Unna', serif;
}

.promil-status-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-left: 10px;
}

/* === PROMİL SAYISAL GÖSTERİM === */
.result-box .promil-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.2rem;
}

.result-box .promil-label {
  font-size: 1.3rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 0.4rem;
  color: #ffd700;
}

.result-box .promil-deger {
  font-family: 'Lato', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: #ffd700;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

/* 0.50 ve altı için özel renk */
.promil-beyaz {
  color: #ffffff !important;
}

/* === EK VERİLER === */
.ek-veriler-satir {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  margin-top: 8px;
  margin-bottom: 8px;
  color: #e8e8dc;
  flex-wrap: wrap;
}

.ek-veriler-satir span {
  
  background-color: #2f3e3e;
  border-radius: 6px;
  border: 1px solid #4b5c5c;
}


 .yasal-mesaj {
  margin-top: 10px;
  color: #e0ddc6;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
} 
.minik-yasal{
  margin-top: 10px;
  margin-bottom: 0px;
  color: #e0ddc6;
  font-size: 0.4rem;
  font-weight: 500;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

.ek-ceza-bilgi {
  /* margin-top: 10px; */
  background-color: rgba(218, 191, 117, 0.1);
  border-left: 4px solid #dabf75;
  /* padding: 10px; */
  font-size: 0.85rem;
  color: #f1eacc;
  font-style: italic;
  text-align: center;
  border-radius: 6px;
}


/* === ALT BİLGİ NOTU === */

/* === saat === */

.saat-step {
  max-width: 160px;
  margin: 0 auto;
}
label[for="saat"] {
  display: block;
  text-align: center;
  margin-bottom: 4px;
  font-weight: bold;
}
.legend-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  filter: brightness(1.1) contrast(1.2);
}

/* === Promil Hesapla BUTONU === */
button[type="submit"] {
  font-family: 'Unna', serif;
  font-size: 1.05rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #1a1a1a;
  background: linear-gradient(
    135deg,
    #e4cc8d 0%,
    #dabf75 40%,
    #fff4c2 50%,
    #dabf75 60%,
    #e4cc8d 100%
  );
  background-size: 400% 400%;
  animation: shimmer-diagonal 4s infinite linear;

  padding: 12px 24px;
  border: 2px solid #a88b3d;
  border-radius: 8px;
  cursor: pointer;
  max-width: 220px;
  margin: 20px auto 0;
  display: block;
  transition: all 0.2s ease;
  position: relative;

  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes shimmer-diagonal {
  0% {
    background-position: -200% -200%;
  }
  100% {
    background-position: 200% 200%;
  }
}

/* === PAYLAŞ BUTONU === */
#paylasBtn {
  margin-top: 15px;
  padding: 10px 16px;
  background-color: #dabf75;
  color: #1c1c1c;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Unna', serif;
}

#paylasBtn:hover {
  background-color: #e4cc8d;
}
/* === MOBİL === */
@media (max-width: 600px) {
  .container {
    padding: 16px;
    margin: 0;
  }

  h1 {
    font-size: 20px;
  }

  button {
    font-size: 15px;
    padding: 10px;
  }

  .icki-icon {
    max-height: 160px;
  }

  .icki-input-kolon {
    width: 100px;
  }

  .icki-input-kolon input {
    font-size: 1.1rem;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* === TABLO TEMASI === */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: 'Unna', serif;
  background-color: #1f2e2e;
  color: #f0f0d0;
  border: 1px solid #3c4f4f;
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 12px 16px;
  border-bottom: 1px solid #3c4f4f;
  text-align: left;
}

th {
  background-color: #2f3e3e;
  color: #dabf75;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
}

td {
  font-size: 0.95rem;
}

tr:nth-child(even) {
  background-color: #263636;
}

tr:hover {
  background-color: #344b4b;
}

/* === LİNK TASARIMI === */
a {
  color: #dabf75;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  color: #fff0c2;
  text-shadow: 0 0 6px rgba(218, 191, 117, 0.6);
}

/* === FOOTER === */
.site-footer {
  background-color: #1a2a2a;
  border-top: 1px solid #3d5050;
  padding: 20px 0;
  margin-top: 40px;
  color: #a8a88a;
  font-family: 'Unna', serif;
  font-size: 0.9rem;
  text-align: center;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 12px 0 0;
}

.footer-links a {
  color: #dabf75;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff0c2;
}

/* === TEXTAREA === */
textarea {
  font-family: 'Unna', serif;
  font-size: 1rem;
  padding: 10px;
  background-color: #2f3e3e;
  color: #e8e8dc;
  border: 1px solid #526a6a;
  border-radius: 6px;
  resize: vertical;
}
details{
  margin-bottom: 4px;
}


/* === ANİMASYONLAR === */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.result-box.show {
  animation: fadeSlideIn 0.5s ease forwards;
}



@keyframes logoFadeZoom {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes glow-border {
  0% {
    box-shadow: 0 0 0px rgba(218, 191, 117, 0);
    opacity: 0;
  }
  100% {
    box-shadow: 0 0 12px rgba(218, 191, 117, 0.7);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

.pop-out {
  transform: translateY(-15%) scale(1.1);
  z-index: 2;
  position: relative;
  transition: transform 0.4s ease;
}

/* === YÜKLEME OVERLAY === */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 18, 18, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

#loadingOverlay.show {
  opacity: 1;
  visibility: visible;
}

#loadingLogo {
  width: 100px;
  height: auto;
  animation: pulse 1.2s ease-in-out infinite;
}
