/* ===================================
   MEIE.CSS - Armastuse leht
   =================================== */

/* Import romantic fonts */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Dancing+Script:wght@400;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* CSS Variables */
:root {
  --primary-pink: #ff6b9d;
  --soft-pink: #ffc9d6;
  --deep-pink: #c9184a;
  --cream: #fff4f1;
  --gold: #ffd700;
  --text-dark: #4a2c3d;
  --text-light: #6b4556;
  --glass: rgba(255, 255, 255, 0.9);
  --shadow-soft: 0 8px 32px rgba(201, 24, 74, 0.15);
  --shadow-glow: 0 0 50px rgba(255, 107, 157, 0.3);
}

/* Body and background */
body {
  margin: 0;
  font-family: 'Crimson Text', serif;
  background: linear-gradient(135deg, #ffeef8 0%, #fff9e6 50%, #ffeff5 100%);
  color: var(--text-dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated hearts background */
body::before {
  content: '';
  position: fixed;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 182, 193, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Floating hearts animation */
@keyframes float-heart {
  0% {
    transform: translateY(100vh) rotate(-20deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(20deg);
    opacity: 0;
  }
}

.floating-hearts {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.heart {
  position: absolute;
  font-size: 20px;
  animation: float-heart 15s linear infinite;
  color: rgba(255, 107, 157, 0.6);
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; font-size: 25px; }
.heart:nth-child(2) { left: 20%; animation-delay: 3s; font-size: 15px; }
.heart:nth-child(3) { left: 30%; animation-delay: 5s; font-size: 30px; }
.heart:nth-child(4) { left: 40%; animation-delay: 2s; font-size: 20px; }
.heart:nth-child(5) { left: 50%; animation-delay: 4s; font-size: 35px; }
.heart:nth-child(6) { left: 60%; animation-delay: 6s; font-size: 18px; }
.heart:nth-child(7) { left: 70%; animation-delay: 1s; font-size: 25px; }
.heart:nth-child(8) { left: 80%; animation-delay: 7s; font-size: 22px; }
.heart:nth-child(9) { left: 90%; animation-delay: 3.5s; font-size: 28px; }

/* Header */
header {
  text-align: center;
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 10;
}

header h1 {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(45deg, var(--deep-pink), var(--primary-pink), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  animation: pulse-glow 3s ease-in-out infinite;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

@keyframes pulse-glow {
  0%, 100% { 
    filter: brightness(1) drop-shadow(0 0 20px rgba(255, 107, 157, 0.5));
    transform: scale(1);
  }
  50% { 
    filter: brightness(1.2) drop-shadow(0 0 40px rgba(255, 107, 157, 0.8));
    transform: scale(1.02);
  }
}

/* Back button */
.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 12px 24px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 50px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  font-weight: 600;
  border: 2px solid rgba(255, 107, 157, 0.2);
  z-index: 100;
}

.back-button:hover {
  background: var(--soft-pink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Language buttons */
#language-buttons {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  z-index: 100;
}

#language-buttons button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

#language-buttons button:hover {
  background: rgba(255, 107, 157, 0.1);
  transform: scale(1.1);
}

#language-buttons img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

/* Content container */
.content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 3rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.content::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  animation: rotate-slow 20s linear infinite;
  pointer-events: none;
}

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

/* Story sections */
.story, .intro, .partner-story {
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  position: relative;
}

.story { animation-delay: 0.3s; }
.intro { animation-delay: 0.6s; }
.partner-story { animation-delay: 0.9s; }

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

/* Text styling */
.content p {
  font-size: 1.2rem;
  line-height: 2;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: justify;
}

.content p strong {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: var(--deep-pink);
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}

/* Special story boxes */
.story, .partner-story {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 244, 241, 0.9) 100%);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 5px 20px rgba(201, 24, 74, 0.1);
}

.story::before,
.partner-story::before {
  content: '💕';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.5;
}

.partner-story {
  background: linear-gradient(135deg, rgba(255, 244, 246, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-left: 4px solid var(--primary-pink);
}

/* Intro section */
.intro {
  text-align: center;
  padding: 2rem;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  border-radius: 20px;
}

.intro p {
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-light);
}

/* Video container */
video {
  width: 100%;
  max-width: 700px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  margin: 2rem auto;
  display: block;
  border: 3px solid rgba(255, 107, 157, 0.2);
}

/* Love quotes decoration */
.love-quote {
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  color: var(--primary-pink);
  margin: 3rem 0;
  position: relative;
  padding: 1rem;
}

.love-quote::before,
.love-quote::after {
  content: '"';
  font-size: 3rem;
  opacity: 0.3;
  position: absolute;
}

.love-quote::before {
  top: -10px;
  left: 20px;
}

.love-quote::after {
  bottom: -30px;
  right: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
  header h1 {
    font-size: 3rem;
  }
  
  .content {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }
  
  .content p {
    font-size: 1.1rem;
    text-align: left;
  }
  
  .back-button {
    position: static;
    display: inline-block;
    margin: 1rem auto;
  }
  
  .story, .partner-story {
    padding: 1.5rem;
  }
}

/* Special hover effects */
.content:hover {
  box-shadow: var(--shadow-glow);
}

/* Heart animation on hover */
.story:hover::after,
.partner-story:hover::after {
  content: '❤️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  opacity: 0;
  animation: heart-burst 1s ease forwards;
  pointer-events: none;
}

@keyframes heart-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}

/* Sparkle effect */
@keyframes sparkle {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  animation: sparkle 3s linear infinite;
}

/* Love meter */
.love-meter {
  width: 100%;
  height: 30px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--soft-pink);
}

.love-meter::before {
  content: '∞';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: var(--deep-pink);
  z-index: 2;
}

.love-meter::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--deep-pink), var(--primary-pink), var(--gold));
  animation: love-fill 3s ease forwards;
}

@keyframes love-fill {
  from { width: 0%; }
  to { width: 100%; }
}
/* Google Translate riba peitmine */
.goog-te-banner-frame {
  display: none !important;
}

.goog-te-menu-frame {
  display: none !important;
}

/* Google Translate ülemine riba (see, mis su pildil on) */
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-ftab,
.goog-tooltip {
  display: none !important;
}

/* Kui Google muudab body klassi, taasta normaalne paigutus */
body {
  top: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}