/* GENEL STİLLER */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #0d0d0d;
  color: #e0e0e0;
  margin: 0;
}

/* NAVBAR */
nav {
  background: #1a1a1a;
  padding: 15px 30px;
}

/* NAVBAR İÇİN FLEX KONTEYNER */
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.logo {
  font-weight: bold;
  font-size: 1.4em;
  color: #e63946;
}

/* MENÜ LİNKLERİ */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e63946;
  border-bottom: 2px solid #e63946;
}

/* HERO / HEADER */
header {
  background-color: #131313;
  color: #e0e0e0;
  text-align: center;
  padding: 50px 20px;
}

/* BÖLÜMLER */
.section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

/* BAŞLIKLAR */
h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 1px;
}

/* PARAGRAFLAR */
p {
  line-height: 1.6;
  color: #e0e0e0;
}

/* Loading durumu için Primary buton */
.btn-primary.loading {
  cursor: wait;
  opacity: 0.8;
  position: relative;
}
.btn-primary.loading::after {
  content: " Analiz yapılıyor…";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9em;
}

/* Bölümlerin giriş animasyonu */
.section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Göründüğünde animasyonu tetikleyin */
.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FORM KART */
.form-card {
  background: #1b1b1b;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 30px;
}

.form-card input[type="file"] {
  margin-bottom: 10px;
}

.form-card button {
  background-color: #e63946;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
}

.form-card button:hover {
  opacity: 0.9;
}

/* HATA MESAJI */
.error-message {
  color: #e63946;
  margin-top: 10px;
}

/* KARTLAR */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: #1b1b1b;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Accent bar */
.card::before,
.result-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #e63946, #d62839);
}

.card:hover,
.result-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* SONUÇ KARTLARI */
.result-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-card {
  background: #1b1b1b;
  border-left: 4px solid #e63946;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.result-card h3 {
  margin-bottom: 10px;
  color: #ffffff;
}

.result-card ul {
  padding-left: 20px;
  list-style-type: disc;
  color: #e0e0e0;
}

/* BUTTON STYLES */
.btn-primary,
.btn-secondary {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-secondary {
  background-color: #0e3a59;
  color: #ffcc00;
}

.btn-secondary:hover {
  background-color: #ffcc00;
  color: #0e3a59;
}

/* Footer */
footer {
  background: #0d0d0d;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* SMOOTH SCROLL */
html {
  scroll-behavior: smooth;
}

/* Hamburger & Mobile Nav */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5em;
  background: none;
  border: none;
  color: #e0e0e0;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #1a1a1a;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 10px;
    border-radius: 6px;
  }
  .hamburger {
    display: block;
  }
  .nav-links.open {
    display: flex;
  }
}

/* Modal genel görünümü */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Modal içeriği kutusu */
.modal-content {
  background-color: #1b1b1b;
  padding: 30px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

/* Başlık */
.modal-title {
  margin-bottom: 15px;
  color: #e0e0e0;
}

/* Açıklama metni */
.modal-text {
  margin-bottom: 20px;
  color: #aaa;
}

/* E-posta input */
.modal-email-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: #fff;
}

/* Gönder butonu */
.modal-submit-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  background-color: #e63946;
  color: #fff;
  transition: background-color 0.3s ease;
}

.modal-submit-btn:hover {
  background-color: #d62839;
}

/* Yeni eklenen stiller */
.modal-header h5 {
  font-size: 1.25rem;
}

.modal-footer .btn-primary {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
}

#status-message {
  margin-top: 1rem;
  font-weight: 500;
}
/* Modal içindeki e‑posta ve butonu yatay/dikey ortala */
.modal-body {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.modal-body input,
.modal-body button {
  flex: none;
}
.modal-body input {
  width: 70%;
}

/* Modal içi spinner */
.spinner-modal {
  display: none;
  margin-top: 1rem;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid #e63946;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  align-self: center;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none;
}

/* overlay tüm ekranı kaplayıp ortada dönen spinner’ı gösterir */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* spinner çemberi */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top-color: #e63946;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* görünmez yapmak için hidden sınıfı */
.hidden {
  display: none !important;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* KVKK bağlantı + onay kutusu */
.kvkk-container {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9em;
  color: #e0e0e0;
}

.kvkk-container a {
  color: #e63946;
  text-decoration: none;
  margin: 0 0.25em;
}

.kvkk-container a:hover {
  text-decoration: underline;
}

.kvkk-container label {
  cursor: pointer;
  user-select: none;
}

.kvkk-container input[type="checkbox"] {
  vertical-align: middle;
  margin-right: 0.3em;
}
