﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #F5F3F4;
  color: #161A1D;
}

.navbar {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.language-switch {
  position: relative;
  display: flex;
  align-items: center;
}

.language-toggle {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #E5383B 0%, #BA181B 48%, #A4161A 100%);
  box-shadow: 0 10px 24px rgba(186,24,27, 0.34);
}

.language-toggle::before {
  content: "";
  position: absolute;
  inset: -120% -35%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%);
  transform: rotate(12deg);
  animation: glitterSweep 3.6s linear infinite;
  pointer-events: none;
}

.language-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(186,24,27, 0.4);
}

.language-toggle:focus-visible {
  outline: 3px solid #f2abad;
  outline-offset: 2px;
}

.language-globe {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}

.language-current {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.language-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  display: none;
  flex-direction: column;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid #D3D3D3;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
  padding: 8px;
  z-index: 40;
}

.language-dropdown.open {
  display: flex;
}

.language-option {
  border: none;
  width: 100%;
  text-align: left;
  border-radius: 9px;
  padding: 9px 10px;
  cursor: pointer;
  background: #F5F3F4;
  color: #161A1D;
  font-weight: 600;
}

.language-option:hover {
  background: #f6dede;
}

.language-option.active {
  background: linear-gradient(135deg, #fce4e4, #ecdcdc);
  color: #A4161A;
}

.menu a {
  text-decoration: none;
  color: #4a4344;
  font-weight: 500;
}

.login-btn,
.hero-btn,
.cta-btn {
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 12px 22px;
  font-weight: 600;
}

.login-btn {
  background: #E5383B;
  color: #ffffff;
}

.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, #E5383B, #BA181B);
  color: #ffffff;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 26px;
}

.hero-btn {
  background: #ffffff;
  color: #E5383B;
}

.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 80px 20px;
}

.feature-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  width: 260px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
}

.how {
  background: #F5F3F4;
  text-align: center;
  padding: 90px 20px;
}

.how h2,
.club-section h2 {
  font-size: 34px;
  margin-bottom: 42px;
}

.steps,
.club-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 56px;
}

.step,
.club-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.4s;
  cursor: pointer;
}

.circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E5383B, #BA181B);
  color: #ffffff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
  animation: float 3s ease-in-out infinite;
}

.step p,
.club-card p {
  margin-top: 14px;
  color: #4a4344;
}

.step:hover .circle {
  transform: translateY(-10px) scale(1.1);
  background: linear-gradient(135deg, #BA181B, #A4161A);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.step:hover p {
  color: #E5383B;
}

.club-section {
  padding: 90px 20px;
  text-align: center;
  background: #F5F3F4;
}

.crystal {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #A4161A, #BA181B);
  clip-path: polygon(50% 0%, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%, 0% 50%, 15% 15%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: 0.6s;
}

.club-card:hover .crystal {
  transform: rotateY(180deg) scale(1.2);
  background: linear-gradient(135deg, #A4161A, #BA181B);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.club-card:hover {
  transform: translateY(-10px);
}

.crystal::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%, 0% 50%, 15% 15%);
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  opacity: 0;
  transition: 0.5s;
}

.club-card:hover .crystal::after {
  opacity: 1;
}

.cta {
  text-align: center;
  padding: 80px 20px;
  background: #E5383B;
  color: #ffffff;
}

.cta p {
  margin: 16px 0 24px;
}

.cta-btn {
  background: #ffffff;
  color: #E5383B;
}

.footer {
  text-align: center;
  padding: 28px;
  background: #161A1D;
  color: #ffffff;
}

.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.login-box {
  position: relative;
  width: min(92vw, 440px);
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #fce4e4;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-box h2 {
  font-size: 30px;
  color: #161A1D;
  text-align: center;
  margin-bottom: 16px;
}

/* ── Hesap seçim adımı ── */
.role-step-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 18px;
}

.role-step-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fce4e4, #f2abad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  box-shadow: 0 4px 16px rgba(229,56,59, 0.14);
}

.role-step-badge svg {
  width: 28px;
  height: 28px;
  stroke: #E5383B;
}

.role-step-title {
  font-size: 20px;
  font-weight: 800;
  color: #161A1D;
  letter-spacing: -0.3px;
}

.role-step-desc {
  font-size: 13px;
  color: #7a7374;
  line-height: 1.55;
  max-width: 300px;
}

.login-role-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-role-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 2px solid #e4e1e1;
  border-radius: 16px;
  background: #F5F3F4;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.login-role-card:hover {
  border-color: #f2abad;
  background: #fdf1f1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229,56,59, 0.13);
}

.login-role-card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-role-icon {
  font-size: 26px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.09);
  flex-shrink: 0;
}

.login-role-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.login-role-name {
  font-size: 15px;
  font-weight: 700;
  color: #161A1D;
}

.login-role-subdesc {
  font-size: 12px;
  color: #7a7374;
}

.login-role-arrow {
  width: 18px;
  height: 18px;
  stroke: #D3D3D3;
  flex-shrink: 0;
  transition: stroke 0.18s, transform 0.18s;
}

.login-role-card:hover .login-role-arrow {
  stroke: #E5383B;
  transform: translateX(3px);
}

/* .role-option is a JS hook — no visual styles here */
.role-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@property --glogin-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid transparent;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    conic-gradient(
      from var(--glogin-angle),
      transparent 55%,
      #f2abad 72%,
      #E5383B 82%,
      #E5383B 88%,
      #E5383B 94%,
      transparent
    );
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #161A1D;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  animation: glogin-spin 2.5s linear infinite;
  transition: transform 0.25s, box-shadow 0.25s;
}

.google-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229,56,59, 0.22);
}

.google-login:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  animation-play-state: paused;
}

.google-g {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@keyframes glogin-spin {
  to { --glogin-angle: 360deg; }
}

@property --alogin-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.apple-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid transparent;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    conic-gradient(
      from var(--alogin-angle),
      transparent 55%,
      #a89fa0 72%,
      #4a4344 82%,
      #161A1D 88%,
      #4a4344 94%,
      transparent
    );
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #161A1D;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  animation: alogin-spin 2.5s linear infinite;
  transition: transform 0.25s, box-shadow 0.25s;
}

.apple-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}

.apple-login:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  animation-play-state: paused;
}

.apple-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Giris kutusunun en altindaki "Sifremi unuttum" baglantisi */
.forgot-password-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: none;
  background: transparent;
  color: #A4161A;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px;
}

.forgot-password-link:hover { color: #660708; }

@keyframes alogin-spin {
  to { --alogin-angle: 360deg; }
}

.auth-divider {
  text-align: center;
  color: #7a7374;
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.email-auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.email-auth-form input {
  border: 1px solid #D3D3D3;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  color: #161A1D;
}

.email-auth-form input:focus {
  outline: 2px solid #f2abad;
  border-color: #E5383B;
}

/* Sifre alani: goz butonu input'un ICINDE dursun diye sarmalayici konumlanir. */
.password-field {
  position: relative;
  display: flex;
}

.password-field input {
  width: 100%;
  box-sizing: border-box;
  /* Metin goz simgesinin altina girmesin */
  padding-right: 42px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #7a7374;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.password-toggle:hover {
  color: #A4161A;
  background: rgba(164, 22, 26, 0.08);
}

.password-toggle:focus-visible {
  outline: 2px solid #f2abad;
  outline-offset: 1px;
}

.password-toggle-icon {
  width: 19px;
  height: 19px;
}

/* Varsayilan: sifre gizli -> acik goz gorunur ("goster" eylemi). */
.password-toggle .icon-eye-off { display: none; }

/* aria-pressed="true": sifre gorunur -> ustu cizili goz ("gizle" eylemi). */
.password-toggle[aria-pressed="true"] .icon-eye { display: none; }
.password-toggle[aria-pressed="true"] .icon-eye-off { display: block; }

.email-login,
.email-register {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
  font-family: inherit;
}

.email-login {
  background: linear-gradient(135deg, #A4161A, #BA181B);
  color: #ffffff;
  margin-top: 10px;
}

.email-register {
  background: #e4e1e1;
  color: #161A1D;
  margin-top: 8px;
}

.email-login:hover,
.email-register:hover {
  transform: translateY(-1px);
}

.email-login:disabled,
.email-register:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.close-login {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #4a4344;
}

.auth-feedback {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
}

.auth-feedback.error {
  background: #fce4e4;
  color: #A4161A;
}

.auth-feedback.success {
  background: #dcfce7;
  color: #166534;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes glitterSweep {
  0% {
    transform: translateX(-145%) rotate(12deg);
    opacity: 0;
  }
  20% {
    opacity: 0.95;
  }
  45% {
    opacity: 0;
  }
  100% {
    transform: translateX(170%) rotate(12deg);
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .navbar {
    padding: 16px 20px;
  }

  .menu {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    padding: 72px 18px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 17px;
  }
}
