/* =========================
   PREMIUM WELCOME SCREEN
========================= */

.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    135deg,
    #6bbbb9 0%,
    #4ca5a3 25%,
    #3a9290 50%,
    #307e87 75%,
    #266b73 100%
  );

  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
}

.welcome-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Animasyonlu Arka Plan Şekilleri */
.welcome-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.welcome-shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  filter: blur(60px);
  opacity: 0.5;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.welcome-shape.ws1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: -120px;
  animation: floatWelcome1 28s;
}

.welcome-shape.ws2 {
  width: 450px;
  height: 450px;
  top: 40%;
  right: -100px;
  animation: floatWelcome2 32s;
}

.welcome-shape.ws3 {
  width: 380px;
  height: 380px;
  bottom: -100px;
  left: 15%;
  animation: floatWelcome3 30s;
}

.welcome-shape.ws4 {
  width: 320px;
  height: 320px;
  top: 15%;
  left: 45%;
  animation: floatWelcome1 38s;
}

.welcome-shape.ws5 {
  width: 400px;
  height: 400px;
  bottom: 8%;
  right: 12%;
  animation: floatWelcome2 35s;
}

/* Animasyonlar */
@keyframes floatWelcome1 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(40px, 50px) scale(1.15) rotate(180deg);
  }
  100% {
    transform: translate(-30px, -40px) scale(0.95) rotate(360deg);
  }
}

@keyframes floatWelcome2 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-50px, 40px) scale(1.2) rotate(-180deg);
  }
  100% {
    transform: translate(35px, -50px) scale(0.9) rotate(-360deg);
  }
}

@keyframes floatWelcome3 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(45px, -45px) scale(1.08);
  }
  100% {
    transform: translate(-40px, 35px) scale(1.12);
  }
}

/* Welcome Container */
.welcome-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
}

/* Decorative Ring */
.welcome-decorative-ring {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);

  width: 140px;
  height: 140px;

  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );

  box-shadow:
    0 0 40px rgba(255, 255, 255, 0.2),
    inset 0 0 30px rgba(255, 255, 255, 0.15);

  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateX(-50%) scale(1.1);
    opacity: 1;
  }
}

.welcome-decorative-ring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: ringPulse 3s ease-in-out infinite 0.5s;
}

/* Premium Badge */
.premium-badge {
  position: absolute;
  top: -20px;
  right: 20px;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 18px;

  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.9) 0%,
    rgba(255, 193, 7, 0.9) 100%
  );

  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.8);

  color: #0f3f44;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  box-shadow:
    0 8px 20px rgba(255, 215, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
  0%, 100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-5px) rotate(3deg);
  }
}

.premium-badge svg {
  animation: starRotate 4s linear infinite;
}

@keyframes starRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Welcome Card */
.welcome-card {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.15) 100%
  );

  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);

  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 32px;

  padding: 70px 56px 56px;

  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);

  text-align: center;

  animation: cardSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);

  overflow: visible;
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Logo */
.welcome-logo {
  width: 280px;
  height: 90px;
  margin: 0 auto 48px;

  background: url("/assets/image/logo.png") no-repeat center;
  background-size: contain;

  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.2));

  animation: logoFadeIn 1s ease-out 0.3s both;
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Welcome Text Group */
.welcome-text-group {
  margin-bottom: 48px;
  animation: textFadeIn 1s ease-out 0.5s both;
}

@keyframes textFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-greeting {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);

  padding: 8px 24px;
  margin-bottom: 20px;

  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.welcome-title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 16px 0;

  text-shadow:
    0 2px 30px rgba(0, 0, 0, 0.2),
    0 0 60px rgba(255, 255, 255, 0.1);
}

.welcome-subtitle {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  max-width: 420px;
  margin: 0 auto;
}

/* Form */
.participant-form {
  width: 100%;
  animation: formFadeIn 1s ease-out 0.7s both;
}

@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Input Group */
.input-group {
  position: relative;
  margin-bottom: 28px;
}

.input-label {
  display: flex;
  align-items: center;
  gap: 8px;

  position: absolute;
  top: -12px;
  left: 24px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;

  background: linear-gradient(
    135deg,
    #6bbbb9 0%,
    #4ca5a3 100%
  );

  padding: 6px 16px;
  border-radius: 10px;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);

  z-index: 2;
  pointer-events: none;
}

.label-icon {
  stroke: currentColor;
}

.participant-input {
  width: 100%;
  padding: 24px 28px;

  font-size: 20px;
  font-weight: 600;
  letter-spacing: 3px;
  text-align: center;
  color: #ffffff;

  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;

  outline: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.05);
}

.participant-input::placeholder {
  color: rgba(255, 255, 255, 0);
  letter-spacing: 1px;
}

.participant-input:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);

  transform: translateY(-2px);

  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    0 0 0 6px rgba(255, 255, 255, 0.12);
}

/* Input Border Animation */
.input-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);

  width: 0;
  height: 3px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );

  border-radius: 2px;

  transition: width 0.4s ease;
  pointer-events: none;
}

.participant-input:focus ~ .input-border {
  width: 100%;
}

/* Welcome Button */
.welcome-btn {
  width: 100%;
  padding: 22px 40px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #0f3f44;

  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f0f0f0 100%
  );

  border: none;
  border-radius: 16px;

  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);

  position: relative;
  overflow: hidden;
}

.welcome-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(107, 187, 185, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.welcome-btn:hover::before {
  left: 100%;
}

.welcome-btn:hover {
  transform: translateY(-3px) scale(1.02);

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 1),
    0 0 0 4px rgba(255, 255, 255, 0.2);
}

.welcome-btn:active {
  transform: translateY(-1px) scale(1);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 1);
}

.btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  background: rgba(107, 187, 185, 0.2);
  border-radius: 50%;

  transition: all 0.3s ease;
}

.welcome-btn:hover .btn-arrow {
  background: rgba(107, 187, 185, 0.4);
  transform: translateX(6px) scale(1.1);
}

/* Welcome Divider */
.welcome-divider {
  width: 80px;
  height: 4px;

  margin: 40px auto 32px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );

  border-radius: 2px;

  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

/* Welcome Info */
.welcome-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);

  margin: 0;

  opacity: 0.9;
}

.welcome-info svg {
  flex-shrink: 0;
  stroke: currentColor;
  opacity: 0.7;
}

/* =========================
   BUTTON STATES & ANIMATIONS
========================= */

/* Loading & Success states - gizli elementler */
.btn-loading,
.btn-success {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  justify-content: center;
}

/* Loading State */
.welcome-btn.loading .btn-text,
.welcome-btn.loading .btn-arrow {
  opacity: 0;
  transform: scale(0.8);
}

.welcome-btn.loading .btn-loading {
  display: flex;
}

.spinner {
  animation: spin 1s linear infinite;
}

.spinner circle {
  stroke: #0f3f44;
  animation: spinDash 1.5s ease-in-out infinite;
}

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

@keyframes spinDash {
  0% {
    stroke-dashoffset: 60;
  }
  50% {
    stroke-dashoffset: 15;
    transform: rotate(135deg);
  }
  100% {
    stroke-dashoffset: 60;
    transform: rotate(450deg);
  }
}

/* Success State */
.welcome-btn.success {
  background: linear-gradient(
    135deg,
    #6bbbb9 0%,
    #4ca5a3 100%
  );
}

.welcome-btn.success .btn-text,
.welcome-btn.success .btn-arrow {
  opacity: 0;
  display: none;
}

.welcome-btn.success .btn-success {
  display: flex;
}

.welcome-btn.success .checkmark {
  stroke: #ffffff;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: checkmarkDraw 0.6s ease-out forwards;
}

@keyframes checkmarkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* =========================
   SUCCESS MESSAGE
========================= */

.success-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);

  text-align: center;
  z-index: 100;

  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-message.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.success-icon-wrapper {
  margin: 0 auto 32px;
  width: 100px;
  height: 100px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;

  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-circle {
  stroke-dasharray: 65;
  stroke-dashoffset: 65;
  animation: circleGrow 0.6s ease-out 0.2s forwards;
}

@keyframes circleGrow {
  to {
    stroke-dashoffset: 0;
  }
}

.success-check {
  stroke-dasharray: 15;
  stroke-dashoffset: 15;
  animation: checkGrow 0.4s ease-out 0.6s forwards;
}

@keyframes checkGrow {
  to {
    stroke-dashoffset: 0;
  }
}

.success-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 0 0 12px 0;

  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);

  animation: titleFadeIn 0.5s ease-out 0.8s both;
}

@keyframes titleFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-subtitle {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0 0 40px 0;

  animation: subtitleFadeIn 0.5s ease-out 1s both;

  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

@keyframes subtitleFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-subtitle span {
  display: inline-block;
  padding: 8px 24px;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.15)
  );
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);

  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.success-loader {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;

  animation: loaderFadeIn 0.5s ease-out 1.2s both;
}

@keyframes loaderFadeIn {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.loader-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0.8)
  );
  border-radius: 2px;
  animation: loaderProgress 2s ease-out forwards;
}

@keyframes loaderProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* =========================
   CARD EXIT ANIMATION
========================= */

.welcome-card.card-exit {
  animation: cardExit 0.6s ease-out forwards;
}

@keyframes cardExit {
  to {
    opacity: 0;
    transform: scale(0.9) translateY(-30px);
  }
}

/* =========================
   OVERLAY CLOSING ANIMATION
========================= */

.welcome-overlay.closing {
  animation: overlayClose 0.8s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes overlayClose {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

/* =========================
   MAIN PAGE ENTRANCE
========================= */

.event-bg,
.site-header,
.hero-section,
.footer-canvas {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.main-visible .event-bg,
body.main-visible .site-header,
body.main-visible .hero-section,
body.main-visible .footer-canvas {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

body.main-visible .site-header {
  transition-delay: 0.1s;
}

body.main-visible .hero-section {
  transition-delay: 0.2s;
}

body.main-visible .footer-canvas {
  transition-delay: 0.3s;
}

/* =========================
   RESPONSIVE - TABLET
========================= */

@media (max-width: 768px) {

  .welcome-card {
    padding: 60px 40px 48px;
    border-radius: 28px;
  }

  .welcome-logo {
    width: 240px;
    height: 76px;
    margin-bottom: 40px;
  }

  .welcome-title {
    font-size: 38px;
  }

  .welcome-subtitle {
    font-size: 15px;
  }

  .participant-input {
    padding: 20px 24px;
    font-size: 18px;
  }

  .welcome-btn {
    padding: 20px 32px;
    font-size: 15px;
  }

}

/* =========================
   RESPONSIVE - MOBILE
========================= */

@media (max-width: 600px) {

  .success-title {
    font-size: 32px;
  }

  .success-subtitle {
    font-size: 22px;
  }

  .success-subtitle span {
    padding: 6px 18px;
  }

  .success-icon-wrapper {
    width: 80px;
    height: 80px;
  }

  .success-icon {
    width: 60px;
    height: 60px;
  }

  .welcome-decorative-ring {
    width: 100px;
    height: 100px;
    top: -60px;
  }

  .welcome-decorative-ring::before {
    width: 70px;
    height: 70px;
  }

  .premium-badge {
    top: -16px;
    right: 16px;
    padding: 8px 14px;
    font-size: 11px;
  }

  .premium-badge svg {
    width: 18px;
    height: 18px;
  }

  .welcome-card {
    padding: 50px 28px 40px;
    border-radius: 24px;
  }

  .welcome-logo {
    width: 200px;
    height: 64px;
    margin-bottom: 32px;
  }

  .welcome-greeting {
    font-size: 12px;
    padding: 6px 18px;
  }

  .welcome-title {
    font-size: 32px;
  }

  .welcome-subtitle {
    font-size: 14px;
  }

  .welcome-text-group {
    margin-bottom: 36px;
  }

  .input-label {
    font-size: 11px;
    padding: 5px 12px;
    left: 20px;
  }

  .label-icon {
    width: 14px;
    height: 14px;
  }

  .participant-input {
    padding: 18px 20px;
    font-size: 16px;
    letter-spacing: 2px;
  }

  .welcome-btn {
    padding: 18px 28px;
    font-size: 14px;
    gap: 12px;
  }

  .btn-arrow {
    width: 28px;
    height: 28px;
  }

  .btn-arrow svg {
    width: 16px;
    height: 16px;
  }

  .welcome-divider {
    margin: 32px auto 24px;
  }

  .welcome-info {
    font-size: 12px;
  }

  .welcome-info svg {
    width: 14px;
    height: 14px;
  }

  .welcome-shape {
    filter: blur(40px);
  }

  .welcome-shape.ws1 {
    width: 350px;
    height: 350px;
  }

  .welcome-shape.ws2 {
    width: 300px;
    height: 300px;
  }

  .welcome-shape.ws3 {
    width: 250px;
    height: 250px;
  }

  .welcome-shape.ws4 {
    width: 220px;
    height: 220px;
  }

  .welcome-shape.ws5 {
    width: 280px;
    height: 280px;
  }

}

@media (max-width: 400px) {

  .welcome-container {
    padding: 0 16px;
  }

  .welcome-card {
    padding: 40px 24px 32px;
  }

  .welcome-logo {
    width: 170px;
    height: 54px;
  }

  .welcome-title {
    font-size: 28px;
  }

  .welcome-subtitle {
    font-size: 13px;
  }

}
