/* === MODERN ROMANTİK PROFESYONEL TEMA === */

@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Dancing+Script:wght@700&display=swap');

:root {
  --main-pink: #e75480;
  --main-purple: #b388ff;
  --main-white: #fff;
  --main-bg1: #f8fafc;
  --main-bg2: #ffe0ec;
  --main-bg3: #f3e7fa;
  --main-glass: rgba(255,255,255,0.65);
  --main-glass-dark: rgba(255,255,255,0.45);
  --main-shadow: 0 8px 32px 0 rgba(231, 84, 128, 0.18), 0 0 80px 10px #ffe0ec80;
  --main-gradient: linear-gradient(135deg, #f8fafc 0%, #ffe0ec 40%, #b388ff 100%);
  --main-gradient-btn: linear-gradient(90deg, #e75480 0%, #b388ff 100%);
  --theme-color: var(--main-pink);
}
body.dark-theme {
  --main-pink: #ffb6c1;
  --main-purple: #a084ca;
  --main-white: #181824;
  --main-bg1: #181824;
  --main-bg2: #23263a;
  --main-bg3: #2d3250;
  --main-glass: rgba(24,24,36,0.85);
  --main-glass-dark: rgba(24,24,36,0.65);
  --main-shadow: 0 8px 32px 0 rgba(160, 132, 202, 0.18), 0 0 80px 10px #a084ca80;
  --main-gradient: linear-gradient(135deg, #23263a 0%, #2d3250 40%, #a084ca 100%);
  --main-gradient-btn: linear-gradient(90deg, #a084ca 0%, #ffb6c1 100%);
  --theme-color: var(--main-purple);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--main-gradient);
  position: relative;
  width: 100%;
  /* Kalpli arka plan patterni */
  background-image:
    url('data:image/svg+xml;utf8,<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 44s-1.7-1.6-4.2-3.7C10.2 32.2 4 26.7 4 19.5 4 13.7 8.7 9 14.5 9c3.1 0 6 1.5 7.5 4 1.5-2.5 4.4-4 7.5-4C39.3 9 44 13.7 44 19.5c0 7.2-6.2 12.7-15.8 20.8C25.7 42.4 24 44 24 44z" fill="%23e75480" fill-opacity="0.18"/></svg>'),
    var(--main-gradient);
  background-repeat: repeat;
  background-size: 64px 64px, auto;
}

/* Giriş ekranında scroll'u engelle */
body.no-scroll {
  overflow-x: hidden;
  overflow-y: hidden;
}

body:before {
  content: '';
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.15) 0%,rgba(231,84,128,0.08) 100%);
}

#app {
  width: 100%;
  min-height: 100vh;
  background: none;
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ana container düzeni */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glass, .mini-block {
  background: var(--main-glass);
  box-shadow: var(--main-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  padding: 2.5rem 3rem;
  margin-bottom: 1.5em;
  transition: box-shadow 0.3s, border 0.3s;
  position: relative;
  width: 100%;
  max-width: 800px;
  overflow: visible;
}
.glass:after, .mini-block:after {
  content: '';
  position: absolute;
  left: 10%; top: 10%; width: 80%; height: 80%;
  border-radius: 32px;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.08) 0%,rgba(231,84,128,0.06) 100%);
  z-index: 0;
}
.glass:hover, .mini-block:hover {
  box-shadow: 0 8px 48px 0 #e7548090, 0 0 80px 10px #b388ff60;
  border: 2px solid #e75480;
}
.glass:not(.mini-block) {
  margin-bottom: 4em;
}

h1, .script-font {
  font-family: 'Pacifico', cursive;
  color: var(--main-pink);
  text-shadow: 0 2px 16px #b388ff60, 0 0px 2px #fff;
  letter-spacing: 2px;
  text-align: center;
  margin: 0 0 1rem 0;
}

h2, h3, h4 {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--main-purple);
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  margin: 0 0 1rem 0;
}

input, button, textarea {
  font-size: 1rem;
  padding: 0.8rem 1.3rem;
  border-radius: 18px;
  border: none;
  margin-top: 0.5rem;
  background: var(--main-glass-dark);
  box-shadow: 0 1px 8px #b388ff20;
  outline: none;
  transition: box-shadow 0.2s, background 0.2s;
  width: 100%;
  max-width: 400px;
}
input:focus, textarea:focus {
  box-shadow: 0 2px 16px #e7548040;
  background: #fff;
}

button, .menu-btn {
  font-family: 'Pacifico', cursive;
  font-size: 1.15em;
  font-weight: 700;
  padding: 0.7em 2.2em;
  border-radius: 2em;
  border: none;
  background: linear-gradient(90deg, #e75480 0%, #b388ff 100%);
  color: #fff;
  box-shadow: 0 4px 18px #e7548040, 0 1.5px 0 #fff4;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.18s;
  cursor: pointer;
  outline: none;
  letter-spacing: 1px;
  margin: 0 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  width: auto;
  min-width: 120px;
}
button:hover, .menu-btn:hover, .menu-btn.active {
  background: linear-gradient(90deg, #b388ff 0%, #e75480 100%);
  color: #fff;
  box-shadow: 0 8px 32px #b388ff80, 0 2px 0 #fff6;
  transform: scale(1.07);
}
button:active, .menu-btn:active {
  transform: scale(0.97);
}

/* Menü düzeni için iyileştirmeler */
nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  padding: 0.5em 0;
  justify-items: center;
  align-items: center;
}
nav::-webkit-scrollbar {
  height: 8px;
  background: #ffe0ec;
}
nav::-webkit-scrollbar-thumb {
  background: #e75480;
  border-radius: 8px;
}
.menu-btn {
  min-width: 150px;
  padding: 1em 0.2em;
  font-family: 'Pacifico', cursive;
  font-size: 1.18em;
  color: #fff;
  background: linear-gradient(100deg, #f8a5c2 0%, #b388ff 100%);
  border: none;
  border-radius: 2.5em;
  box-shadow: 0 4px 18px #e7548030;
  transition: background 0.18s, color 0.15s, box-shadow 0.18s, transform 0.15s;
  outline: none;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  white-space: nowrap;
  text-align: center;
  font-weight: 600;
  width: 100%;
}

.glass {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
}

.home-btn {
  min-width: 48px;
  max-width: 64px;
  width: 100%;
  height: 48px;
  padding: 0;
  background: linear-gradient(90deg, #e75480 0%, #b388ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 2px 12px #e7548030;
  border: 2px solid transparent;
  transition: background 0.2s, box-shadow 0.2s, border 0.2s, transform 0.18s;
}
.home-btn svg {
  display: block;
  margin: 0 auto;
}
.home-btn:hover, .home-btn.active {
  background: linear-gradient(90deg, #b388ff 0%, #e75480 100%);
  border: 2px solid #b388ff;
  box-shadow: 0 4px 16px #b388ff60;
  transform: scale(1.05);
}
.home-btn:active {
  transform: scale(0.97);
}

/* Liste öğeleri için düzen */
.memory-item, .letter-item, .gallery-item {
  border-left: 4px solid var(--main-pink);
  background: var(--main-glass);
  box-shadow: 0 2px 12px #b388ff30;
  margin-bottom: 1.2em;
  border-radius: 18px;
  padding: 1.2em 1.5em;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.memory-item:before, .letter-item:before, .gallery-item:before {
  content: '';
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.05) 0%,rgba(231,84,128,0.04) 100%);
  z-index: 0;
  pointer-events: none;
}

/* Fotoğraf stilleri */
#profile-photo-preview img, #couple-photo-preview img, #couple-photo-container img {
  box-shadow: 0 4px 24px #e7548040;
  border: 3px solid #fff;
  outline: 2px solid var(--main-pink);
  background: #fff;
}

#couple-photo-container img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5em;
  background: #fff;
}

/* Sonuç mesajları */
#memory-result, #gallery-result {
  margin-bottom: 1em;
  color: #e75480;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  background: var(--main-glass);
}

/* Form düzeni */
.form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  margin-bottom: 32px;
}

.form-row {
  display: flex;
  gap: 15px;
  width: 100%;
  margin-bottom: 15px;
}

.form-row input {
  flex: 1;
  min-width: 0;
}

/* Galeri grid düzeni */
#gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

#gallery-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

#gallery-grid > div {
  text-align: center;
  margin: 0 auto;
  width: 100%;
  font-size: 1.1em;
  color: #888;
}

.gallery-item img, .gallery-item video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.gallery-item:hover img, .gallery-item:hover video {
  transform: scale(1.05);
}

/* Scrollbar stilleri */
::-webkit-scrollbar {
  width: 8px;
  background: #ffe0ec;
}
::-webkit-scrollbar-thumb {
  background: #e75480;
  border-radius: 8px;
}

/* Responsive tasarım */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
    padding: 15px;
  }
  
  .glass, .mini-block {
    max-width: 700px;
    padding: 2rem 2.5rem;
  }
}

@media (max-width: 900px) {
  .container {
    max-width: 800px;
    padding: 10px;
  }
  
  .glass, .mini-block {
    max-width: 600px;
    padding: 1.8rem 2rem;
    margin-bottom: 2em;
  }
  
  nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px auto;
  }
  
  .menu-btn {
    min-width: 120px;
    font-size: 1.1em;
    padding: 0.8em 0.1em;
  }
  
  h1 {
    font-size: 2.5em;
  }
  
  h2 {
    font-size: 1.8em;
  }
}

@media (max-width: 700px) {
  .container {
    padding: 8px;
  }
  
  .glass, .mini-block {
    max-width: 95%;
    padding: 1.5rem 1.8rem;
    margin-bottom: 1.5em;
  }
  
  nav {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px auto;
  }
  
  .menu-btn {
    min-width: 200px;
    font-size: 1.05em;
    padding: 0.7em 0.1em;
  }
  
  .form-row {
    flex-direction: column;
    gap: 10px;
  }
  
  #gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  h1 {
    font-size: 2.2em;
  }
  
  h2 {
    font-size: 1.6em;
  }
}

@media (max-width: 500px) {
  .glass, .mini-block {
    padding: 1.2rem 1.5rem;
    border-radius: 24px;
  }
  
  nav {
    margin: 15px auto;
  }
  
  .menu-btn {
    min-width: 180px;
    font-size: 1em;
    padding: 0.6em 0.1em;
  }
  
  #gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .gallery-item img, .gallery-item video {
    height: 180px;
  }
  
  h1 {
    font-size: 2em;
  }
  
  h2 {
    font-size: 1.4em;
  }
  
  input, button, textarea {
    font-size: 0.95rem;
    padding: 0.7rem 1.1rem;
  }
}

/* === MODERN GALERİ === */
/* Modern Galeri Grid ve Responsive Düzeltme */
/* Modern Galeri Grid - Tek Sütun */
.modern-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px; /* Fotoğraflar arası boşluk artırıldı */
  justify-content: center;
}
/* Galeri kartı ve butonları hizalama düzeltmesi */
.modern-gallery-item {
  background: var(--main-glass);
  border-radius: 18px;
  box-shadow: 0 2px 12px #b388ff30;
  padding: 0 0 18px 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modern-gallery-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
  margin-bottom: 0;
}

.modern-gallery-caption {
  font-family: 'Pacifico', cursive;
  color: #e75480;
  font-size: 1.15em;
  margin: 10px 0 0 0;
  text-align: center;
}

.modern-gallery-item > div[style*="display:flex"] {
  margin-top: 10px;
  gap: 10px;
  justify-content: center;
  width: 100%;
  padding: 0 10px;
}

.modern-gallery-btn {
  font-size: 1em;
  padding: 7px 0.8em;
  border-radius: 12px;
  margin: 0 2px;
  min-width: 80px;
  background: #fff;
  color: #e75480;
  border: 2px solid #e75480;
  box-shadow: 0 1px 4px #e7548030;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.modern-gallery-btn:hover {
  background: #e75480;
  color: #fff;
}
.modern-gallery-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modern-gallery-modal.active {
  display: flex;
}
.modern-gallery-modal-content {
  background: #fff;
  border-radius: 22px;
  padding: 18px 18px 12px 18px;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 8px 48px #0002;
  overflow: auto;
  box-sizing: border-box;
}
.modern-gallery-modal-img {
  max-width: calc(90vw - 48px);
  max-height: calc(80vh - 80px);
  border-radius: 14px;
  box-shadow: 0 2px 16px #e7548040;
  display: block;
}
.modern-gallery-modal-caption {
  margin-bottom: 14px;
  font-size: 1.18em;
  color: var(--main-pink);
  text-align: center;
  width: 100%;
  font-family: 'Pacifico', cursive;
}
.modern-gallery-modal-nav {
  margin-top: 18px;
  display: flex;
  gap: 22px;
}
.modern-gallery-modal-nav-btn {
  padding: 6px 18px;
  border-radius: 8px;
  border: none;
  background: var(--main-pink);
  color: #fff;
  font-size: 1em;
  font-family: 'Segoe UI', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.modern-gallery-modal-nav-btn:hover {
  background: var(--main-purple);
}
@media (max-width: 900px) {
  .modern-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    max-width: 98vw;
  }
  .modern-gallery-img {
    aspect-ratio: 1/1;
  }
}
@media (max-width: 600px) {
  .modern-gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 2vw 2em 2vw;
  }
  .modern-gallery-img {
    aspect-ratio: 1/1;
  }
}

/* Romantik efektler */
.romantic-glow {
  background: linear-gradient(135deg, rgba(231,84,128,0.1) 0%, rgba(179,136,255,0.1) 100%);
  border-radius: 32px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 8px 32px rgba(231,84,128,0.15);
  animation: glowfade 3s ease-in-out infinite alternate;
}

@keyframes glowfade {
  0% { box-shadow: 0 8px 32px rgba(231,84,128,0.15); }
  100% { box-shadow: 0 12px 48px rgba(179,136,255,0.25); }
}

.animated-hearts {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 1rem 0;
}

.animated-hearts .heart {
  font-size: 1.5em;
  animation: heart-bounce 2s ease-in-out infinite;
  color: #e75480;
}
.animated-hearts .heart:nth-child(2) { animation-delay: 0.3s; color: #ffb6c1; }
.animated-hearts .heart:nth-child(3) { animation-delay: 0.6s; color: #e75480; }
.animated-hearts .heart:nth-child(4) { animation-delay: 0.9s; color: #ff69b4; }
.animated-hearts .heart:nth-child(5) { animation-delay: 1.2s; color: #ffb6c1; }

@keyframes heart-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.romantic-slogan {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8em;
  color: var(--main-pink);
  text-align: center;
  margin: 2rem 0;
  text-shadow: 0 2px 8px rgba(231,84,128,0.3);
  word-break: break-word;
  white-space: normal;
  width: 100%;
  box-sizing: border-box;
  padding: 0 8px;
}
@media (max-width: 600px) {
  .romantic-slogan {
    font-size: 1.1em !important;
    padding: 0 4px;
  }
}

#floating-hearts {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 99999 !important;
}

.floating-heart {
  position: absolute;
  font-size: 1.2em;
  color: rgba(231,84,128,0.9);
  animation: float-heart 8s linear infinite;
  text-shadow: 0 0 8px rgba(231,84,128,0.6);
  filter: drop-shadow(0 0 4px rgba(231,84,128,0.4));
  z-index: 99999 !important;
}

@keyframes float-heart {
  0% { 
    transform: translateY(0vh) rotate(0deg); 
    opacity: 0; 
  }
  10% { 
    opacity: 1; 
  }
  90% { 
    opacity: 1; 
  }
  100% { 
    transform: translateY(-100vh) rotate(360deg); 
    opacity: 0; 
  }
}

#twinkling-stars {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 5;
}

.twinkle-star {
  position: absolute;
  font-size: 0.8em;
  color: rgba(255,255,255,0.8);
  animation: twinkle 4s ease-in-out infinite;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255,255,255,0.6);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.modern-heart-anim {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-heart-anim svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.orbit-hearts {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.orbit-heart {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 1.6em;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 90deg)) translateY(-48px);
  animation: orbit-heart-anim 3.5s linear infinite;
  animation-delay: calc(var(--i) * 0.5s);
  filter: drop-shadow(0 0 8px #e75480aa);
}

@keyframes orbit-heart-anim {
  0% { transform: translate(-50%, -50%) rotate(calc(var(--i) * 90deg)) translateY(-48px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(calc(var(--i) * 90deg + 360deg)) translateY(-48px) rotate(0deg); }
}

.orbit-heart:nth-child(1) { animation-delay: 0s; }
.orbit-heart:nth-child(2) { animation-delay: 1s; }
.orbit-heart:nth-child(3) { animation-delay: 2s; }
.orbit-heart:nth-child(4) { animation-delay: 3s; }

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.couple-names-fancy {
  font-family: 'Pacifico', cursive;
  font-size: 2.5em;
  background: linear-gradient(45deg, var(--main-pink), var(--main-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin: 2rem 0;
  position: relative;
  text-shadow: 0 2px 8px rgba(231,84,128,0.3);
  animation: couple-names-appear 2s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.couple-names-fancy::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: 
    radial-gradient(circle at 30% 70%, rgba(231,84,128,0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(179,136,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,182,193,0.08) 0%, transparent 70%);
  border-radius: 20px;
  z-index: -1;
  animation: names-glow 3s ease-in-out infinite;
}

.couple-names-fancy::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--main-pink), var(--main-purple));
  border-radius: 2px;
  animation: underline-grow 1.5s ease-out 0.5s forwards;
}

@keyframes couple-names-appear {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-5px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes names-glow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@keyframes underline-grow {
  0% {
    width: 0;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    width: 100px;
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#parallax-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

.bg-layer1 {
  background-image: radial-gradient(circle at 20% 80%, rgba(231,84,128,0.3) 0%, transparent 50%);
  animation: float-heart 8s ease-in-out infinite;
}

.bg-layer2 {
  background-image: radial-gradient(circle at 80% 20%, rgba(179,136,255,0.3) 0%, transparent 50%);
  animation: float-heart 10s ease-in-out infinite reverse;
}

.bg-layer3 {
  background-image: radial-gradient(circle at 50% 50%, rgba(255,182,193,0.2) 0%, transparent 70%);
  animation: float-heart 12s ease-in-out infinite;
}

#mouse-glow {
  position: fixed;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(231,84,128,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: all 0.1s ease;
}

.handwrite-char {
  opacity: 0;
  animation: handwrite-fade 0.1s ease-in-out forwards;
}

@keyframes handwrite-fade {
  to { opacity: 1; }
}

.handwrite-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5em;
  color: var(--main-pink);
  text-align: center;
  margin: 2rem 0;
  overflow: hidden;
  white-space: nowrap;
} 

#gallery-form button {
  margin-top: 20px;
} 

form button[type="submit"] {
  margin-top: 20px !important;
} 

form button[type="submit"] + button,
form button[type="submit"] + button[type="button"],
form button[type="button"] + button[type="button"] {
  margin-top: 16px !important;
} 

#calendar-grid, .calendar-grid, table[style*="border-collapse"] {
  margin-top: 24px !important;
} 

#start-quiz-btn {
  margin-top: 16px !important;
  margin-bottom: 24px !important;
} 

form input[type="date"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
} 

/* Kompakt login ekranı için */
.login-outer, .glass.login-container {
  min-height: unset !important;
  padding: 1.2em 1em 1.2em 1em !important;
  max-width: 340px !important;
}
.login-container .script-font {
  font-size: 1.7em !important;
  margin-bottom: 0.2em !important;
}
.login-container form {
  gap: 10px !important;
}
.login-container input[type="password"] {
  padding: 0.8em 0.8em 0.8em 2em !important;
  font-size: 1em !important;
}
.login-container button[type="submit"] {
  padding: 0.8em 0 !important;
  font-size: 1em !important;
  margin-top: 4px !important;
}
.login-container > div[style*="margin-bottom:1.2em;"] span {
  font-size: 2em !important;
} 

.reset-btn {
  display: block;
  width: 100%;
  max-width: 340px;
  min-width: 220px;
  margin: 12px auto 0 auto;
  padding: 0.7em 2em;
  font-family: 'Pacifico', cursive;
  font-size: 1.18em;
  color: #e75480;
  background: #fff;
  border: 2px solid #e75480;
  border-radius: 18px;
  box-shadow: 0 4px 24px #e7548040;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  text-align: center;
}
.reset-btn:hover {
  background: #ffe0ec;
  color: #b388ff;
  border-color: #b388ff;
} 

#games-content {
  min-height: 300px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz-item {
  width: 100%;
  max-width: 550px;
  margin: 0 auto 1.2em auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Mobilde quiz öğeleri için responsive ayarlar */
@media (max-width: 600px) {
  .quiz-item,
  .quiz-item div,
  .quiz-item div[style*="font-size:1.15em"] {
    overflow: visible !important;
    max-height: none !important;
    color: #b388ff !important;
    word-break: break-word !important;
    white-space: normal !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 80px !important;
    box-sizing: border-box !important;
    text-overflow: unset !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  .quiz-item {
    padding: 1em 1.2em 0.8em 1.2em !important;
    margin: 0 auto 1em auto !important;
    position: relative !important;
  }
  
  /* Sil butonu için alan ayırma */
  .quiz-item button[onclick*="deleteQuizQuestion"] {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 10 !important;
    min-width: 60px !important;
    height: 32px !important;
    font-size: 0.9em !important;
  }
  
  /* Inline style'ları ezecek daha spesifik kurallar */
  .quiz-item div[style*="color:#b388ff"] {
    color: #b388ff !important;
    word-break: break-word !important;
    white-space: normal !important;
    overflow: visible !important;
    max-width: 100% !important;
    padding-right: 80px !important;
    margin-bottom: 8px !important;
  }
  
  .quiz-item div[style*="color:#888"] {
    color: #888 !important;
    word-break: break-word !important;
    white-space: normal !important;
    overflow: visible !important;
    max-width: 100% !important;
    padding-right: 80px !important;
  }
}

#gallery-form {
  margin-bottom: 32px;
}

#gallery-grid {
  margin-top: 0;
} 

#gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  justify-content: center;
  min-height: 180px;
}

.gallery-empty-message {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  text-align: center;
  font-size: 1.1em;
  color: #888;
  width: 100%;
  margin: 0 auto;
} 

/* Büyüyüp küçülen kalpler efekti */
.grow-hearts .grow-heart {
  font-size: 2em;
  display: inline-block;
  animation: grow-heart 1.2s infinite cubic-bezier(.4,0,.2,1);
}
.grow-hearts .grow-heart:nth-child(2) { animation-delay: 0.15s; }
.grow-hearts .grow-heart:nth-child(3) { animation-delay: 0.3s; }
.grow-hearts .grow-heart:nth-child(4) { animation-delay: 0.45s; }
.grow-hearts .grow-heart:nth-child(5) { animation-delay: 0.6s; }
@keyframes grow-heart {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.35); }
  50% { transform: scale(1); }
} 

/* --- MEMORY KARTI BOŞLUK VE HİZALAMA KURALLARI --- */
.memory-title {
  margin-bottom: 12px !important;
  font-size: 1.05em;
  color: #e75480;
  word-break: break-word;
}
.memory-item > div:first-child {
  margin-bottom: 24px !important;
}
.memory-text-content {
  margin-bottom: 28px !important;
  word-break: break-word !important;
  line-height: 1.6 !important;
  white-space: pre-line !important;
  font-size: 1.1em;
}
.memory-item img {
  margin-bottom: 24px !important;
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(231,84,128,0.2);
  display: block;
  object-fit: cover;
}
@media (max-width: 600px) {
  .memory-item img {
    max-width: 100% !important;
    width: 100% !important;
    margin: 16px 0 24px 0 !important;
  }
}
.added-by {
  margin-bottom: 20px !important;
  padding-bottom: 4px !important;
  display: block;
}
.memory-actions {
  margin-top: 16px !important;
  padding-top: 0 !important;
} 

/* Takvim özel günler satırı hizalama */
.calendar-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: nowrap;
}

.calendar-date {
  font-weight: bold;
  min-width: 90px;
  flex-shrink: 0;
}

.calendar-title {
  color: #e75480;
  font-family: 'Pacifico', cursive;
  font-size: 1.1em;
  margin: 0 4px;
  flex-shrink: 0;
  word-break: break-word;
  white-space: normal;
}

.calendar-remaining {
  color: #b388ff;
  font-size: 0.95em;
  margin-left: 8px;
  flex-shrink: 0;
}

.calendar-desc {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  word-break: break-word;
}

.calendar-delete-btn {
  min-width: 64px;
  padding: 6px 18px;
  font-family: 'Pacifico', cursive;
  font-size: 1em;
  color: #e75480;
  background: #fff;
  border: 2px solid #e75480;
  border-radius: 18px;
  box-shadow: 0 2px 8px #e7548040;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  margin-left: 12px;
  flex-shrink: 0;
}
.calendar-delete-btn:hover {
  background: #ffe0ec;
  color: #b388ff;
  border-color: #b388ff;
}

/* Mobilde takvim responsive ayarları */
@media (max-width: 600px) {
  .calendar-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
  }
  
  .calendar-date {
    min-width: 80px;
    font-size: 0.9em;
  }
  
  .calendar-title {
    font-size: 1em;
    flex-shrink: 1;
    min-width: 0;
    word-break: break-word;
    white-space: normal;
  }
  
  .calendar-desc {
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
    word-break: break-word;
  }
  
  .calendar-delete-btn {
    min-width: 56px;
    padding: 4px 12px;
    font-size: 0.9em;
    margin-left: 8px;
  }
}

.romantic-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 12px 0 16px 0;
  background: none;
  z-index: 1001;
  pointer-events: none;
}
.romantic-footer span {
  pointer-events: auto;
} 

.fixed-footer {
  position: fixed !important;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 1001;
  background: none;
  pointer-events: none;
}
.fixed-footer span {
  pointer-events: auto;
}
.romantic-footer:not(.fixed-footer) {
  position: static !important;
  padding: 12px 0 16px 0;
  background: none;
  width: 100%;
  text-align: center;
} 