/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 50%, #000000 100%);
  min-height: 100vh;
  font-size: 13px;
  /* Safari fix for viewport units */
  min-height: -webkit-fill-available;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  /* Safari backdrop-filter support */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: sticky;
  /* Safari sticky fix */
  position: -webkit-sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #000000;
}

.header-content {
  display: flex;
  /* Safari flexbox fixes */
  display: -webkit-flex;
  -webkit-align-items: center;
  -webkit-justify-content: space-between;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav-links {
  display: flex;
  /* Safari flexbox fixes */
  display: -webkit-flex;
  gap: 1rem;
}

.nav-link {
  text-decoration: none;
  color: #666666;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  /* Safari transition fixes */
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #000000;
  background: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
  color: #000000;
  background: rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #000000;
  text-decoration: none;
  background: linear-gradient(45deg, #000000, #333333);
  /* Safari text gradient fixes */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Fallback for Safari issues */
  color: #000000;
}

/* Main Content */
main {
  padding: 2rem 0;
}

.loading {
  text-align: center;
  color: white;
  font-size: 1rem;
  margin: 2rem 0;
}

/* Loading Animation */
.loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  /* Safari animation fixes */
  -webkit-animation: spin 1s ease-in-out infinite;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

/* Safari keyframes support */
@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  margin: 0 1rem;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #000000, #333333);
  border-radius: 8px;
  /* Safari transition fixes */
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  /* Safari button fixes */
  -webkit-appearance: none;
  appearance: none;
}

.btn:hover {
  /* Safari transform fixes */
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Messages */
.message {
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.message.success {
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  color: #1a1a1a;
  border: 2px solid #666666;
}

.message.error {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #ffffff;
  border: 2px solid #555555;
}

/* Form Styles */
.form-row {
  display: grid;
  /* Safari grid fixes */
  display: -ms-grid;
  grid-template-columns: 1fr 1fr;
  /* Safari grid template fixes */
  -ms-grid-columns: 1fr 1fr;
  gap: 1.2rem;
  /* Safari gap fallback */
  grid-gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
  /* Safari grid column fix */
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
}

label {
  display: block;
  margin-bottom: 0.6rem;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.85rem;
}

input {
  width: 100%;
  /* Safari width fix */
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0.7rem;
  border: 2px solid #d1d1d1;
  border-radius: 8px;
  font-size: 0.9rem;
  /* Safari transition fixes */
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  /* Safari input fixes */
  -webkit-appearance: none;
  appearance: none;
}

/* Checkbox: varsayılan görünümü geri yükle ve boyutu düzelt */
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  box-shadow: none;
  border: initial;
  border-radius: 3px;
  display: inline-block;
  vertical-align: top;
  cursor: pointer;
  -webkit-appearance: checkbox;
  appearance: checkbox;
  accent-color: #000000;
}

input[type="checkbox"]:focus {
  outline: 2px solid rgba(0,0,0,0.35);
  outline-offset: 2px;
  box-shadow: none;
}

input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
  /* Safari transform fix */
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

input:hover {
  border-color: #999999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(20,20,22,0.98);
  color: #f0f0f0;
  border-top: 1px solid #2a2a2f;
  box-shadow: 0 -10px 30px rgba(0,0,0,.35);
}

.cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__text {
  font-size: 0.95rem;
  line-height: 1.4;
}
.cookie-banner__text a { color: #9ecbff; text-decoration: underline; }

.cookie-banner__actions { display: flex; gap: .6rem; }

.cookie-btn {
  border: 1px solid #2a2a2f;
  background: #161618;
  color: #f0f0f0;
  padding: .55rem .9rem;
  border-radius: 10px;
  cursor: pointer;
}

.cookie-btn--primary {
  background: #0f0f10;
  border-color: #2a2a2f;
}
.cookie-btn--primary:hover { background: #1a1a1e; }

.cookie-btn--ghost {
  background: transparent;
}
.cookie-btn--ghost:hover { background: #1a1a1e; }

@media (max-width: 768px) {
  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
  }
}