@view-transition {
  navigation: auto;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  min-height: 100%;
}

/* HEADER */

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.header-inner {
  position: relative;
}

.site-title {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.site-title:hover {
  color: #e5e7eb;
}

.nav-links {
  font-size: 0.95rem;
}

.desktop-main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-link:hover {
  color: #e5e7eb;
  transform: scale(1.06);
}

.nav-more-btn {
  background: none;
  border: none;
  cursor: pointer;
}

/* Desktop dropdown */

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-radius: 12px;
  margin-top: 8px;
  overflow: hidden;
  animation: fadeInDown 0.3s ease;
  z-index: 1200;
}

.dropdown-content.open {
  display: block;
}

.dropdown-content a {
  color: #4a5568;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  font-size: 14px;
}

.dropdown-content a:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding-left: 28px;
}

/* Mobile hamburger */

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
}

/* Mobile slide-down green menu */

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #16a34a;
  color: #fefce8;
  padding: 10px 20px 14px;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  z-index: 1100;
}

.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
  color: #fefce8;
  font-weight: 500;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: #bbf7d0;
}

/* HERO */

.page-header {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'><path d='M0,0 Q300,60 600,30 T1200,0 L1200,120 L0,120 Z' fill='rgba(255,255,255,0.1)'/></svg>") repeat-x bottom;
  background-size: 1200px 120px;
  opacity: 0.3;
}

.page-header h1 {
  font-size: 2.9rem;
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  animation: slideInDown 0.6s ease;
}

.page-header p {
  font-size: 1.25rem;
  opacity: 0.96;
  position: relative;
  z-index: 1;
  animation: slideInUp 0.6s ease;
}

/* MAIN LOVE CARD */

.love-container {
  max-width: 900px;
  margin: -60px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.love-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: slideUp 0.6s ease;
}

.card-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
  text-align: center;
}

/* Input groups */

.input-group {
  margin-bottom: 22px;
}

.input-label {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: #f5576c;
  margin-bottom: 8px;
}

.love-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #fce7f3;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #fef3f8 0%, #fef1f5 100%);
}

.love-input:focus {
  outline: none;
  border-color: #f5576c;
  box-shadow: 0 0 0 4px rgba(245, 87, 108, 0.1);
  transform: translateY(-2px);
}

/* Question box */

.question-box {
  margin: 32px 0;
  padding: 24px;
  background: linear-gradient(135deg, #fef3f8 0%, #fef1f5 100%);
  border-radius: 16px;
  border: 2px solid #fce7f3;
}

.question-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f5576c;
  margin-bottom: 20px;
  text-align: center;
}

/* Buttons */

.love-btn {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.love-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(245, 87, 108, 0.4);
}

.love-btn:active {
  transform: translateY(-1px);
}

.certificate-btn {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.certificate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

.try-again-btn {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
}

.try-again-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Results */

.results-container {
  display: none;
  margin-top: 32px;
  padding: 32px;
  background: linear-gradient(135deg, #fef3f8 0%, #fef1f5 100%);
  border-radius: 20px;
  border: 3px solid #fce7f3;
  animation: fadeIn 0.6s ease;
}

.love-percentage {
  font-size: 4.3rem;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 20px 0;
  animation: scaleIn 0.8s ease;
}

.love-meter {
  width: 100%;
  height: 40px;
  background: #fce7f3;
  border-radius: 20px;
  overflow: hidden;
  margin: 24px 0;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}

.love-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
  border-radius: 20px;
  transition: width 1.5s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
}

.love-message {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #f5576c;
  margin: 20px 0 10px;
}

.love-description {
  text-align: center;
  font-size: 0.98rem;
  color: #6b7280;
  line-height: 1.8;
  margin: 8px 0 10px;
}

/* Hearts */

.hearts-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  font-size: 30px;
  animation: floatUp 4s ease-in forwards;
  opacity: 0;
}

/* Adsense */

.adsense-container {
  background: linear-gradient(135deg, #fef3f8 0%, #fef1f5 100%);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #fce7f3;
}

.adsense-placeholder {
  text-align: center;
  color: #f5576c;
  font-size: 0.9rem;
}

/* Blog content */

.blog-section {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
}

.blog-content {
  background: #ffffff;
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  line-height: 1.8;
}

.blog-content h2 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #1a202c;
  margin-bottom: 26px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-top: 32px;
  margin-bottom: 16px;
}

.blog-content p {
  color: #4a5568;
  font-size: 0.98rem;
  margin-bottom: 18px;
  line-height: 1.9;
}

.blog-content ul,
.blog-content ol {
  color: #4a5568;
  margin-left: 1.6rem;
  margin-bottom: 20px;
}

.blog-content li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.blog-content strong {
  color: #f5576c;
  font-weight: 700;
}

.blog-content a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
}

.blog-content a:hover {
  text-decoration: underline;
}

.highlight-box {
  background: linear-gradient(135deg, #fef3f8 0%, #fef1f5 100%);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #f5576c;
  margin: 24px 0;
}

.example-box {
  background: #fef3f8;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #f093fb;
  margin: 24px 0;
}

/* Footer */

.footer {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: #ffffff;
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-column h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #cbd5e0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-column ul li a:hover {
  color: #f5576c;
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 30px;
  text-align: center;
  color: #a0aec0;
  font-size: 0.9rem;
}

/* Animations */

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

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

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

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

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

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

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

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

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-1000px) rotate(360deg);
  }
}

/* Responsive */

@media (max-width: 768px) {
  .desktop-main-nav {
    display: none !important;
  }

  .nav-links {
    display: none !important;
  }

  .mobile-menu-btn {
    display: block;
  }

  .page-header {
    padding: 60px 20px;
  }

  .page-header h1 {
    font-size: 2.1rem;
  }

  .page-header p {
    font-size: 1.02rem;
  }

  .love-card {
    padding: 32px 22px;
  }

  .blog-content {
    padding: 32px 22px;
  }

  .blog-content h2 {
    font-size: 2rem;
  }

  .blog-content h3 {
    font-size: 1.3rem;
  }

  .love-percentage {
    font-size: 3rem;
  }
}
