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

body {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fad0c4 100%);
  font-family: 'Itim', cursive;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  overflow-x: hidden;
}

h1 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2em, 8vw, 4em);
  color: #d63384;
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* HAMBURGER MENÜ */
.hamburger-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 2000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.hamburger-menu:hover { 
  transform: scale(1.1); 
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #d63384;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* MENÜ OVERLAY */
.menu-overlay {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100vw; 
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  backdrop-filter: blur(10px);
}

.menu-overlay.show { 
  display: flex; 
}

.menu-content {
  background: white;
  border-radius: 30px;
  padding: 50px 40px;
  position: relative;
  animation: menuSlideIn 0.4s ease-out;
  min-width: 300px;
  text-align: center;
}

@keyframes menuSlideIn {
  from { 
    opacity: 0; 
    transform: translateY(-50px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.menu-content h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5em;
  color: #d63384;
  margin-bottom: 30px;
}

.menu-item {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
  color: white;
  border: none;
  padding: 15px 30px;
  margin: 15px 0;
  border-radius: 25px;
  font-size: 1.2em;
  cursor: pointer;
  font-family: 'Itim', cursive;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.menu-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.close-menu-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2.5em;
  cursor: pointer;
  color: #999;
}

.close-menu-btn:hover { 
  color: #d63384; 
}

/* AJÁNDÉKDOBOZ – PNG mint alak, drop-shadow a képen */
.gift-box {
  width: clamp(250px, 80vw, 400px);
  height: auto;
  cursor: pointer;
  position: relative;
  display: inline-block;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  margin-top: 20px;
}

.gift-box img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.35));
}

/* POPUPOK - Optimalizált */
.popup-overlay {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100vw; 
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-overlay.show { 
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup {
  background: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: popupIn 0.3s ease-out;
  will-change: transform, opacity;
}

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

/* ÜZENET + POLAROID */
.message-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 800px;
}

.uzenet-papir {
  flex: 1;
  background: linear-gradient(135deg, #fff8e1 0%, #f5f5f5 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2),
    inset 0 2px 4px rgba(255,255,255,0.8);
  border: 3px solid #d4a574;
  border-radius: 15px;
  padding: 30px;
  position: relative;
  transform: rotate(-1deg);
  font-family: 'Dancing Script', cursive;
  font-size: 1.6em;
  line-height: 1.5;
  color: #8b4513;
  max-width: 60%;
}

.papir-szakad {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 40px;
  height: 40px;
  background: #d4a574;
  border-radius: 50% 0 50% 0;
  transform: rotate(45deg);
}

.message-container.no-image-container {
  justify-content: center;
}

.message-container.no-image-container .uzenet-papir {
  max-width: 600px;
  width: 100%;
  transform: rotate(0deg);
}

.polaroid {
  flex: 0 0 300px;
  background: white;
  height: 400px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border-radius: 8px;
  padding: 15px;
  position: relative;
  transform: rotate(2deg);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.polaroid:hover { 
  transform: rotate(2deg) scale(1.02); 
}

.polaroid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.polaroid-alap {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: white;
  border-radius: 5px;
  z-index: -1;
}

/* ARCHÍVUM GRID - Optimalizált */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* ARCHÍVUM ITEM - Javított */
.archive-item {
  background: rgba(255,255,255,0.9);
  border-radius: 15px;
  padding: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  will-change: transform;
  max-width: 500px;
  margin: 0 auto;
  height: auto;
}

.archive-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.archive-item-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.archive-item-content p {
  margin: 0;
  padding: 0;
  text-align: center;
  word-wrap: break-word;
  font-size: 1em;
  line-height: 1.4;
  color: #333;
}

/* Archívum képek - Javított méretek */
.archive-item-content img,
.archive-item img {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 10px auto 0;
}

.archive-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

.archive-text {
  font-size: 0.9em;
  color: #666;
  margin-top: 10px;
  line-height: 1.3;
}

/* GOMBOK, FULLSCREEN */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
  color: #999;
  z-index: 10;
}

.close-btn:hover { 
  color: #d63384; 
}

.close-btn-white {
  color: white !important;
  font-size: 3em !important;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.close-btn-white:hover { 
  color: #ff69b4 !important; 
}

.fullscreen-img {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain;
  border-radius: 0;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  cursor: pointer;
}

.fullscreen-popup {
  padding: 0;
  background: rgba(0,0,0,0.95);
}

.nav-buttons {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  gap: 10px;
}

.nav-btn {
  background: #d63384;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1em;
  cursor: pointer;
  font-family: 'Itim', cursive;
}

.countdown {
  margin-top: 15px;
  font-size: 1.3em;
  color: #f56dfa;
  font-weight: 700;
}

.no-image { 
  display: none; 
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .message-container {
    flex-direction: column;
    align-items: center;
  }

  .uzenet-papir {
    max-width: 100%;
    font-size: 1.4em;
  }

  .polaroid {
    width: 100%;
    max-width: 300px;
  }

  .hamburger-menu {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
}
