@import "https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css";

/* Custom Fonts setup */
.font-calligraphy {
  font-family: 'Great Vibes', 'Alex Brush', cursive;
}

.font-aleo {
  font-family: 'Aleo', serif;
}

.font-cormorant {
  font-family: 'Cormorant Garamond', serif;
}

.font-noto {
  font-family: 'Noto Serif Display', serif;
}

.font-roboto {
  font-family: 'Roboto Condensed', sans-serif;
}

/* Calligraphy Title Layout Matching img2.jpg */
.vers2-calligraphy-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Blosta Script', 'Great Vibes', 'Alex Brush', cursive;
  color: #4A2E19;
  line-height: 1.1;
  padding: 10px 0;
  user-select: none;
}

.vers2-calligraphy-rabia {
  font-size: 4.8rem;
  letter-spacing: 0.02em;
  transform: translateX(-24px);
}

.vers2-calligraphy-amp {
  font-size: 2.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #6B4E38;
  margin: 2px 0 2px -30px;
}

.vers2-calligraphy-izzet {
  font-size: 4.8rem;
  letter-spacing: 0.02em;
  transform: translateX(24px);
}

@media (max-width: 640px) {
  .vers2-calligraphy-container {
    padding: 6px 0;
    line-height: 1.1;
  }
  .vers2-calligraphy-rabia {
    font-size: 3.4rem;
    transform: translateX(-16px);
  }
  .vers2-calligraphy-amp {
    font-size: 1.7rem;
    margin: 2px 0 2px -20px;
  }
  .vers2-calligraphy-izzet {
    font-size: 3.4rem;
    transform: translateX(16px);
  }
  .vers2-date-badge-wrapper {
    margin: 8px 0;
    transform: scale(0.85);
  }
}

/* Custom Date Badge Flex Layout for Vers2 (Dark Warm Brown) */
.vers2-date-badge-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif Display', serif;
  color: #4A2E19 !important;
  margin: 20px 0;
  user-select: none;
}

.vers2-date-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.vers2-date-badge-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 90px;
  height: 54px;
}

.vers2-date-badge-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: #4A2E19 !important;
}

.vers2-date-badge-month {
  font-size: 15.4px;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  color: #4A2E19 !important;
  padding: 4px 0;
}

.vers2-date-badge-number {
  font-size: 67.2px;
  line-height: 0.85;
  font-weight: 400;
  color: #4A2E19 !important;
  padding: 0 4px;
}

.vers2-date-badge-year {
  font-size: 15.4px;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #4A2E19 !important;
  padding: 4px 0;
}

.vers2-date-badge-day {
  margin-top: 14px;
  font-size: 18.2px;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  color: #4A2E19 !important;
  text-align: center;
}

.vers2-hero-content {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

@media (max-width: 640px) {
  .vers2-hero-content {
    position: absolute !important;
    top: 42% !important;
    left: 50% !important;
    transform: translate(calc(-50% - 3.8vw), -50%) !important;
    width: 54vw !important;
    max-width: 220px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 2px !important;
    align-items: center;
    justify-content: center;
  }
  .vers2-calligraphy-container {
    padding: 0;
    line-height: 1.0;
    width: 100%;
    text-align: center;
  }
  .vers2-calligraphy-rabia {
    font-size: clamp(1.7rem, 7.5vw, 2.2rem);
    transform: translateX(-6px);
  }
  .vers2-calligraphy-amp {
    font-size: clamp(0.95rem, 3.8vw, 1.15rem);
    margin: 1px 0 1px -10px;
  }
  .vers2-calligraphy-izzet {
    font-size: clamp(1.7rem, 7.5vw, 2.2rem);
    transform: translateX(6px);
  }
  .vers2-subtitle {
    font-size: clamp(0.4rem, 1.8vw, 0.5rem) !important;
    letter-spacing: 0.1em !important;
    width: 100%;
    text-align: center;
    margin-top: 24px !important;
    margin-bottom: -6px !important;
  }
  .vers2-date-badge-wrapper {
    margin: 0 auto !important;
    transform: scale(0.46) !important;
    transform-origin: center center;
    width: 100%;
  }
  .vers2-family-names-box {
    padding: 0 !important;
    margin-top: -6px !important;
    margin-bottom: 0 !important;
    width: 100%;
    text-align: center;
  }
  .vers2-family-names-text {
    font-size: clamp(0.52rem, 2.1vw, 0.62rem) !important;
    letter-spacing: 0.1em !important;
  }
  .vers2-family-names-line {
    width: 3.8rem !important;
    margin-bottom: 1px !important;
    margin-top: 1px !important;
  }
  .vers2-calendar-btn {
    padding: 3px 12px !important;
    font-size: clamp(0.52rem, 2.1vw, 0.62rem) !important;
    color: #3E2723 !important;
    margin-top: -3px !important;
  }
  .vers2-calendar-btn span {
    color: #3E2723 !important;
  }
  .vers2-scroll-hint {
    padding-top: 1.5rem !important;
    padding-bottom: 0.25rem !important;
    margin-top: 0 !important;
    font-size: clamp(0.72rem, 2.8vw, 0.82rem) !important;
  }
  .vers2-scroll-hint svg {
    width: 20px !important;
    height: 20px !important;
    margin-bottom: 2px !important;
  }
}

/* Glassmorphism & Card Styles for Vers2 */
.vers2-card-bg {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 115, 85, 0.25);
  box-shadow: 0 10px 30px rgba(62, 39, 35, 0.1);
}

/* Background Image Container (Full Uncropped Mobile Display) */
.vers2-mobile-fixed-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: #d4c9bd;
}

.vers2-mobile-fixed-bg-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 30%;
  transform: none;
}

/* Global scroll behavior */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  background-color: #d4c9bd;
  overscroll-behavior-y: none;
}

body.vers2-body {
  font-family: 'Roboto Condensed', sans-serif;
  background-color: #d4c9bd;
  color: #3E2723;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}
