/* MOBILE FIRST - Base stiller mobil için */

body {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #ffeef0;
  background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='%23ffb3c1' fill-opacity='0.2'/%3E%3C/svg%3E");
  padding: 0;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
}

/* Giriş Ekranı */
.login-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffeef0;
  background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='%23ffb3c1' fill-opacity='0.2'/%3E%3C/svg%3E");
  z-index: 1000;
}

.login-container {
  background: #ffffff;
  padding: 2rem 1rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(255, 140, 150, 0.3);
  width: 85%;
  max-width: 400px;
  text-align: center;
}

.login-title {
  font-family: "Great Vibes", cursive;
  font-size: 2.5rem;
  color: #ff8c96;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 4px rgba(255, 140, 150, 0.2);
}

.login-info {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.password-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.password-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid rgba(255, 140, 150, 0.3);
  border-radius: 10px;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.password-input:focus {
  outline: none;
  border-color: #ff8c96;
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #ff8c96;
}

.toggle-password:focus {
  outline: none;
}

.toggle-password svg {
  display: block;
}

.login-button {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #ff8c96 0%, #ffb3c1 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(255, 140, 150, 0.3);
}

.login-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 140, 150, 0.4);
}

.login-button:active:not(:disabled) {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
  min-height: 1.2rem;
}

.brand-text {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #999;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: lowercase;
}

.contact-message {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #999;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

.contact-link {
  color: #ff8c96;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #ffb3c1;
  text-decoration: underline;
}

.main-content {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.heart-lock-section {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-content-section {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content-wrapper {
  text-align: center;
  padding: 2rem;
}

.content-wrapper h1 {
  font-family: "Great Vibes", cursive;
  font-size: 3rem;
  color: #ff8c96;
  margin: 0;
}

/* Yeni görsel: heart2.jpeg */
.lock-wrapper {
  width: min(100vw, 100vh);
  max-width: 100vw;
  max-height: 100vh;
  aspect-ratio: 1 / 1.23; /* mobil dikey görsele göre */

  background-image: url("heart3.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  position: relative;
}

/* 🩷 Yeni yazı pozisyonu */
.title-text {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Great Vibes", cursive;
  font-size: clamp(30px, 6.5vw, 36px);
  color: #ffffff;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3), 0 0 12px rgba(255, 255, 255, 0.65);
  width: 90%;
  text-align: center;
  pointer-events: none;
  z-index: 1;
}

/* Şifre kutuları */
.digits {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(6px, 2.5vw, 10px);
  z-index: 10; /* Digitlerin görünür olması için z-index eklendi */
}

.digit-box {
  width: clamp(28px, 8vw, 42px);
  height: clamp(46px, 11vw, 62px);
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(255, 140, 150, 0.25);
  box-shadow: 0 4px 12px rgba(255, 140, 150, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 8px 2px;
  overflow: visible;
  position: relative;
  z-index: 10;
}

.digit-box button {
  background: none;
  border: none;
  padding: 2px 0;
  width: 100%;
  font-size: clamp(9px, 3.5vw, 14px);
  cursor: pointer;
  color: #333;
  z-index: 11;
  position: relative;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16px;
}

.digit-value {
  font-size: clamp(13px, 4.5vw, 20px);
  color: #333;
  font-weight: 600;
  z-index: 11;
  position: relative;
  display: block;
  line-height: 1.2;
  font-family: "Poppins", sans-serif;
}

/* 📱 TABLET (481px ve üzeri) */
@media (min-width: 481px) {
  .login-container {
    padding: 2rem;
    width: 90%;
  }

  .lock-wrapper {
    width: 500px;
    aspect-ratio: 1 / 1.15;
  }

  .title-text {
    top: 50%;
    font-size: clamp(20px, 5vw, 32px);
    width: 85%;
  }

  .digits {
    top: 67%;
    gap: 10px;
  }

  .digit-box {
    width: clamp(34px, 7vw, 46px);
    height: clamp(52px, 10vw, 68px);
    padding: 5px 2px;
    overflow: visible;
  }

  .digit-box button {
    font-size: clamp(10px, 3vw, 16px);
  }

  .digit-value {
    font-size: clamp(14px, 4vw, 22px);
  }
}

/* 💻 DESKTOP (769px ve üzeri) */
@media (min-width: 769px) {
  .lock-wrapper {
    width: 700px;
    aspect-ratio: 1 / 1.1;
  }

  .title-text {
    top: 52%;
    font-size: clamp(20px, 4vw, 36px);
    width: 85%;
  }

  .digits {
    top: 66%;
    gap: 12px;
  }

  .digit-box {
    width: clamp(38px, 5vw, 50px);
    height: clamp(60px, 8vw, 72px);
    padding: 6px 2px;
    overflow: visible;
  }

  .digit-box button {
    font-size: clamp(12px, 2vw, 18px);
  }

  .digit-value {
    font-size: clamp(18px, 3vw, 24px);
  }
}

/* Başarı Animasyonu */
.success-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  z-index: 100;
  pointer-events: none;
}

.heart-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff8c96' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
  animation: heartBeat 1s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 140, 150, 0.8));
}

@keyframes heartBeat {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  25% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.9;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
  75% {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 0.95;
  }
}

.sparkles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
}

.sparkles::before,
.sparkles::after {
  content: "✨";
  position: absolute;
  font-size: 30px;
  animation: sparkle 1.5s ease-in-out;
}

.sparkles::before {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.sparkles::after {
  bottom: 10%;
  right: 20%;
  animation-delay: 0.5s;
}

@keyframes sparkle {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.5) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: scale(0) rotate(360deg);
  }
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #ff8c96 0%, #ffb3c1 100%);
  border-radius: 50%;
  pointer-events: none;
  animation: particleExplode 2.5s ease-out forwards;
  animation-delay: var(--delay, 0s);
  box-shadow: 0 0 15px rgba(255, 140, 150, 0.9),
    0 0 5px rgba(255, 179, 193, 0.6);
}

@keyframes particleExplode {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translateX(var(--translate-x, 0px))
      translateY(var(--translate-y, 0px)) scale(1.5)
      rotate(var(--rotation, 360deg));
    opacity: 0;
  }
}

.unlock-animation {
  animation: unlockPulse 2s ease-out forwards;
}

@keyframes unlockPulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  30% {
    transform: scale(1.05);
    filter: brightness(1.2);
  }
  60% {
    transform: scale(1.1);
    filter: brightness(1.3);
  }
  100% {
    transform: scale(1.15);
    filter: brightness(1.5);
    opacity: 0.9;
  }
}

.heart-lock-section {
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.digit-area,
.title-text {
  transition: opacity 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-content-section {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Şifre ipucu */
.password-hint {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Poppins", sans-serif;
  font-size: clamp(11px, 3vw, 14px);
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  text-align: center;
  pointer-events: none;
  z-index: 1;
}

/* Demo Satın Alma Kutusu */
.demo-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: "Poppins", sans-serif;
}

.demo-box-toggle {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff8c96 0%, #ffb3c1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 140, 150, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.demo-box-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 140, 150, 0.5);
}

.demo-icon {
  font-size: 22px;
}

.demo-box-content {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  padding: 15px 18px;
  box-shadow: 0 8px 32px rgba(255, 140, 150, 0.3);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.demo-box.active .demo-box-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.demo-text {
  font-size: 13px;
  color: #666;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.demo-link {
  display: block;
  font-size: 13px;
  color: #ff8c96;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.demo-link:hover {
  color: #e57580;
  text-decoration: underline;
}

/* Mobil görünüm - Demo kutusu her zaman yuvarlak */
@media (max-width: 480px) {
  .demo-box {
    bottom: 15px;
    right: 15px;
  }

  .demo-box-toggle {
    width: 45px;
    height: 45px;
  }

  .demo-icon {
    font-size: 20px;
  }

  .demo-box-content {
    right: 0;
    min-width: 200px;
    padding: 12px 15px;
  }

  .demo-text {
    font-size: 12px;
  }

  .demo-link {
    font-size: 12px;
  }
}

/* Tablet görünüm - Demo kutusu açıldığında kutucuk */
@media (min-width: 481px) {
  .demo-box-content {
    min-width: 240px;
  }
}
