/* ============================================
   TEMPLATE 15 V2 COMPONENTS - Romantic Style
   Color Palette: Rose Gold & Blush Pink
   ============================================ */

/* Floral Pattern SVG Background */
:root {
  --floral-pattern: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='romanticFloral' x='0' y='0' width='120' height='120' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='30' cy='30' r='3' fill='%23d4a574' opacity='0.03'/%3E%3Ccircle cx='90' cy='40' r='2' fill='%23d4a574' opacity='0.025'/%3E%3Ccircle cx='60' cy='80' r='3.5' fill='%23d4a574' opacity='0.03'/%3E%3Ccircle cx='20' cy='70' r='2.5' fill='%23d4a574' opacity='0.025'/%3E%3Ccircle cx='100' cy='90' r='2' fill='%23d4a574' opacity='0.02'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='120' height='120' fill='url(%23romanticFloral)'/%3E%3C/svg%3E");
  --rose-gold: #d4a574;
  --rose-gold-dark: #c89b6d;
  --rose-gold-light: #e8c4a0;
  --blush-pink: #f5e6e0;
  --cream: #fefcf9;
  --warm-brown: #8b6f47;
}

/* ============================================
   CALENDAR V2 - Table-based (cloned from V1 with improved UI)
   ============================================ */

.calendar-v2 {
  position: relative;
}

.calendar-v2-mini_calendar {
  max-width: 450px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 251, 247, 0.95);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.15);
  border: 1px solid #e8c4a0;
}

.calendar-v2-mini_calendar table {
  caption-side: top;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.calendar-v2-mini_calendar .calendar-v2-month {
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
  color: #d4a574;
  font-size: 1.5rem;
  text-transform: uppercase;
  font-family: 'Bellota Text', cursive;
  letter-spacing: 1px;
}

.calendar-v2-mini_calendar table th {
  text-align: center;
  padding: 12px 8px;
  color: #d4a574;
  border-top: 2px solid #e8c4a0;
  border-bottom: 2px solid #e8c4a0;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Bellota Text', cursive;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-v2-mini_calendar table tr:nth-child(2) td {
  padding-top: 20px;
  height: 60px;
}

.calendar-v2-mini_calendar td {
  font-size: 1rem;
  text-align: center;
  width: 40px;
  height: 50px;
  vertical-align: middle;
  color: #8b6f47;
  font-family: 'Bellota Text', cursive;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
}

.calendar-v2-mini_calendar td:hover {
  background: rgba(212, 165, 116, 0.1);
  transform: scale(1.1);
}

.calendar-v2-mini_calendar td #today {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  padding: 0;
  background: linear-gradient(135deg, #d4a574 0%, #c89b6d 100%);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
  animation: pulse-today 2s ease-in-out infinite;
}

@keyframes pulse-today {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 18px rgba(212, 165, 116, 0.6);
    transform: scale(1.05);
  }
}

.calendar-v2-mini_calendar td:hover #today {
  transform: scale(1.15);
}

/* Countdown Section */
.calendar-v2-countdown {
  margin-top: 40px;
}

.calendar-v2-countdown #clock {
  max-width: 500px;
  overflow: hidden;
  margin: 0 auto;
}

.calendar-v2-countdown #clock > div {
  width: 25%;
  float: left;
  text-align: center;
  padding: 25px 15px 0;
  color: #d4a574;
}

.calendar-v2-countdown #clock .box {
  color: #d4a574 !important;
  background: linear-gradient(135deg, rgba(255, 251, 247, 0.95) 0%, rgba(255, 245, 240, 0.95) 100%);
  border-radius: 20px;
  padding: 22px 18px;
  box-shadow: 
    0 4px 15px rgba(212, 165, 116, 0.15),
    0 2px 8px rgba(212, 165, 116, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(232, 196, 160, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(232, 196, 160, 0.4);
  position: relative;
  overflow: hidden;
}

.calendar-v2-countdown #clock .box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.calendar-v2-countdown #clock .box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(212, 165, 116, 0.25),
    0 4px 12px rgba(212, 165, 116, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(232, 196, 160, 0.2);
  border-color: rgba(212, 165, 116, 0.6);
}

.calendar-v2-countdown #clock .box:hover::before {
  opacity: 1;
}

.calendar-v2-countdown #clock .box > div {
  font-size: 2.8rem;
  margin-bottom: 0.1em;
  line-height: 0.8em;
  font-weight: 700;
  font-family: 'Baloo Paaji 2', cursive;
  background: linear-gradient(135deg, #d4a574 0%, #c89b6d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calendar-v2-countdown #clock .box > span {
  font-size: 0.85rem;
  color: #8b6f47;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Bellota Text', cursive;
}

/* Responsive Calendar V2 */
@media (max-width: 768px) {
  .calendar-v2-mini_calendar {
    max-width: 380px;
    padding: 15px;
  }
  
  .calendar-v2-mini_calendar table th {
    padding: 10px 6px;
    font-size: 0.8rem;
  }
  
  .calendar-v2-mini_calendar td {
    font-size: 0.9rem;
    width: 35px;
    height: 45px;
  }
  
  .calendar-v2-mini_calendar td #today {
    width: 32px;
    height: 32px;
    line-height: 32px;
  }
  
  .calendar-v2-countdown #clock .box > div {
    font-size: 2.2rem;
  }
  
  .calendar-v2-countdown #clock > div {
    padding: 20px 10px 0;
  }
}

@media (max-width: 480px) {
  .calendar-v2-mini_calendar {
    max-width: 320px;
    padding: 12px;
  }
  
  .calendar-v2-mini_calendar table th {
    padding: 8px 4px;
    font-size: 0.75rem;
  }
  
  .calendar-v2-mini_calendar td {
    font-size: 0.85rem;
    width: 30px;
    height: 40px;
  }
  
  .calendar-v2-mini_calendar td #today {
    width: 28px;
    height: 28px;
    line-height: 28px;
  }
  
  .calendar-v2-countdown #clock .box > div {
    font-size: 1.8rem;
  }
  
  .calendar-v2-countdown #clock > div {
    padding: 15px 8px 0;
  }
  
  .calendar-v2-countdown #clock .box {
    padding: 15px 10px;
  }
}

/* ============================================
   VIDEO V2 - Decorative Frame
   ============================================ */

.video-v2 {
  position: relative;
}

.video-v2-frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  background: var(--cream);
  background-image: var(--floral-pattern);
  background-size: 250px 250px;
  border-radius: 25px;
  box-shadow: 0 10px 40px rgba(212, 165, 116, 0.15);
  transition: all 0.4s ease;
}

.video-v2-frame::before,
.video-v2-frame::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 3px solid var(--rose-gold-light);
  border-radius: 50%;
  opacity: 0.5;
}

.video-v2-frame::before {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
}

.video-v2-frame::after {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
}

.video-v2-frame:hover {
  box-shadow: 0 15px 50px rgba(212, 165, 116, 0.25);
  transform: translateY(-5px);
}

.video-v2-frame:hover::before,
.video-v2-frame:hover::after {
  opacity: 0.8;
  border-color: var(--rose-gold);
}

.video-v2-content {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.video-v2-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
}

.video-v2-floral-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0.3;
}

.video-v2-floral-corner.top-left {
  top: 10px;
  left: 10px;
  background: radial-gradient(circle, var(--rose-gold) 0%, transparent 70%);
  border-radius: 50%;
}

.video-v2-floral-corner.top-right {
  top: 10px;
  right: 10px;
  background: radial-gradient(circle, var(--rose-gold) 0%, transparent 70%);
  border-radius: 50%;
}

.video-v2-floral-corner.bottom-left {
  bottom: 10px;
  left: 10px;
  background: radial-gradient(circle, var(--rose-gold) 0%, transparent 70%);
  border-radius: 50%;
}

.video-v2-floral-corner.bottom-right {
  bottom: 10px;
  right: 10px;
  background: radial-gradient(circle, var(--rose-gold) 0%, transparent 70%);
  border-radius: 50%;
}

/* Responsive Video V2 */
@media (max-width: 768px) {
  .video-v2-frame {
    padding: 20px;
  }
  
  .video-v2-frame::before,
  .video-v2-frame::after {
    width: 40px;
    height: 40px;
  }
}

/* ============================================
   GALLERY V2 - Masonry Layout
   ============================================ */

.gallery-v2 {
  padding: 60px 20px;
}

.gallery-v2-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.gallery-v2-item {
  margin-bottom: 0;
  position: relative;
  width: 100%;
}

.gallery-v2-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.12);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 2px solid transparent;
  display: block;
  aspect-ratio: 4/3;
}

.gallery-v2-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(212, 165, 116, 0.3);
  border-color: var(--rose-gold);
}

.gallery-v2-card img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.5s ease;
  object-fit: cover;
}

.gallery-v2-card:hover img {
  transform: scale(1.08);
}

.gallery-v2-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(200, 157, 109, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.gallery-v2-card::after {
  content: '👁';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: all 0.4s ease;
  font-size: 2.5rem;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.gallery-v2-card:hover .gallery-v2-overlay {
  opacity: 1;
}

.gallery-v2-card:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Gallery index badge removed as per requirements */

/* Responsive Gallery V2 */
@media (max-width: 768px) {
  .gallery-v2-masonry {
    gap: 18px;
  }
}

@media (max-width: 576px) {
  .gallery-v2-masonry {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .gallery-v2-card::after {
    font-size: 2rem;
  }
}

/* ============================================
   LOVE STORY V2 - Vertical Timeline
   ============================================ */

.love-story-v2 {
  padding: 60px 20px;
  position: relative;
}

.love-story-v2-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 0px;
}

.love-story-v2-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--rose-gold-light) 0%, var(--rose-gold) 50%, var(--rose-gold-light) 100%);
  transform: translateX(-50%);
  border-radius: 3px;
  background-image: var(--floral-pattern);
  background-size: 20px 20px;
  opacity: 0.4;
  z-index: 1;
}

.love-story-v2-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rose-gold);
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 8px var(--rose-gold-light);
}

.love-story-v2-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rose-gold);
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 8px var(--rose-gold-light);
}

.love-story-v2-item {
  position: relative;
  display: block;
  min-height: 200px;
}

.love-story-v2-item:nth-child(odd) {
  padding-left: 0;
  padding-right: 0;
}

.love-story-v2-item:nth-child(even) {
  padding-left: 0;
  padding-right: 0;
}

.love-story-v2-node {
  position: absolute;
  left: auto;
  right: 35px;
  top: -35px;
  transform: translateX(50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--rose-gold-dark) 100%);
  border: 5px solid var(--cream);
  box-shadow: 0 0 0 4px var(--rose-gold-light), 0 8px 20px rgba(212, 165, 116, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.love-story-v2-item:nth-child(even) .love-story-v2-node {
  left: 35px;
  right: auto;
  transform: translateX(-50%);
}

.love-story-v2-item:hover .love-story-v2-node {
  transform: translateX(50%) scale(1.15);
  box-shadow: 0 0 0 3px var(--rose-gold-light), 0 8px 20px rgba(212, 165, 116, 0.4);
}

.love-story-v2-item:nth-child(even):hover .love-story-v2-node {
  transform: translateX(-50%) scale(1.15);
}

.love-story-v2-node-date {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  font-family: 'Bellota Text', cursive;
}

.love-story-v2-card {
  width: 40%;
  background: linear-gradient(135deg, #fff 0%, #fefcf9 100%);
  border-radius: 25px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.2);
  border: 2px solid var(--rose-gold-light);
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  max-height: none;
  display: flex;
  flex-direction: column;
}

.love-story-v2-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--floral-pattern);
  background-size: 200px 200px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.love-story-v2-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(212, 165, 116, 0.25);
  border-color: var(--rose-gold);
}

.love-story-v2-card:hover::before {
  opacity: 0.15;
}

.love-story-v2-card-left {
  margin-right: 0;
  margin-left: 0;
}

.love-story-v2-card-right {
  margin-left: 0;
  margin-right: 0;
}

.love-story-v2-item:nth-child(odd) .love-story-v2-card {
  margin-left: 0;
  margin-right: auto;
  width: calc(100% - 35px);
  margin-top: 80px;
  margin-bottom: 80px;
  max-width: none;
}

.love-story-v2-item:nth-child(even) .love-story-v2-card {
  margin-right: 0;
  margin-left: auto;
  width: calc(100% - 35px);
  margin-top: 80px;
  margin-bottom: 80px;
  max-width: none;
}

.love-story-v2-card .date {
  font-size: 0.9rem;
  color: var(--rose-gold);
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Bellota Text', cursive;
}

.love-story-v2-card .title {
  font-size: 1.5rem;
  color: var(--warm-brown);
  font-weight: 600;
  margin-bottom: 15px;
  font-family: 'Great Vibes', cursive;
}

.love-story-v2-card .info {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: visible;
  min-height: 0;
  position: relative;
}

.love-story-v2-card p {
  color: var(--warm-brown);
  line-height: 1.8;
  margin-bottom: 0;
  font-family: 'Bellota Text', cursive;
  transition: max-height 0.4s ease;
  max-height: 2000px;
  overflow: hidden;
  position: relative;
  word-wrap: break-word;
}

.love-story-v2-card p:not(.collapsed) {
  overflow: visible;
  max-height: none;
}

.love-story-v2-card p.collapsed {
  max-height: 150px;
  overflow: hidden;
}

.love-story-v2-card p.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255, 251, 247, 0.95));
  pointer-events: none;
}

.love-story-v2-read-more {
  color: var(--rose-gold);
  cursor: pointer;
  font-weight: 600;
  margin-top: 10px;
  font-family: 'Bellota Text', cursive;
  font-size: 0.95rem;
  display: inline-block;
  transition: all 0.3s ease;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.love-story-v2-read-more:hover {
  color: var(--rose-gold-dark);
  border-bottom-color: var(--rose-gold-dark);
  transform: translateX(3px);
}

.love-story-v2-card .img-holder {
  border-radius: 15px;
  overflow: hidden;
  margin-top: 15px;
  box-shadow: 0 5px 15px rgba(212, 165, 116, 0.2);
  transition: transform 0.4s ease;
  flex-shrink: 0;
  max-height: 200px;
}

.love-story-v2-card .img-holder img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.love-story-v2-card:hover .img-holder {
  transform: scale(1.03);
}

.love-story-v2-floral {
  position: absolute;
  width: 30px;
  height: 30px;
  opacity: 0.2;
  background: radial-gradient(circle, var(--rose-gold) 0%, transparent 70%);
  border-radius: 50%;
}

.love-story-v2-card-left .love-story-v2-floral {
  top: -10px;
  right: -10px;
}

.love-story-v2-card-right .love-story-v2-floral {
  top: -10px;
  left: -10px;
}

/* Responsive Love Story V2 */
@media (max-width: 768px) {
  .love-story-v2-line {
    left: 50%;
  }
  
  .love-story-v2-item {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 60px;
  }
  
  .love-story-v2-item:nth-child(odd),
  .love-story-v2-item:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }
  
  .love-story-v2-node {
    right: 35px;
    left: auto;
    top: -35px;
    transform: translateX(50%);
  }
  
  .love-story-v2-item:nth-child(even) .love-story-v2-node {
    left: 35px;
    right: auto;
    transform: translateX(-50%);
  }
  
  .love-story-v2-item:hover .love-story-v2-node {
    transform: translateX(50%) scale(1.15);
  }
  
  .love-story-v2-item:nth-child(even):hover .love-story-v2-node {
    transform: translateX(-50%) scale(1.15);
  }
  
  .love-story-v2-card {
    width: calc(100% - 35px);
    margin-top: 80px;
    margin-bottom: 80px;
  }
  
  .love-story-v2-item:nth-child(odd) .love-story-v2-card {
    margin-left: 0;
    margin-right: auto;
    width: calc(100% - 35px);
  }
  
  .love-story-v2-item:nth-child(even) .love-story-v2-card {
    margin-right: 0;
    margin-left: auto;
    width: calc(100% - 35px);
  }
  
  .love-story-v2-card-left,
  .love-story-v2-card-right {
    margin-left: 0;
    margin-right: 0;
  }
  
  .love-story-v2-card-left .love-story-v2-floral {
    top: -10px;
    right: -10px;
    left: auto;
  }
  
  .love-story-v2-card-right .love-story-v2-floral {
    top: -10px;
    left: -10px;
    right: auto;
  }
}

@media (max-width: 480px) {
  .love-story-v2-line {
    left: 50%;
  }
  
  .love-story-v2-item {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 50px;
  }
  
  .love-story-v2-node {
    width: 60px;
    height: 60px;
    right: 35px;
    left: auto;
    top: -35px;
    transform: translateX(50%);
  }
  
  .love-story-v2-item:nth-child(even) .love-story-v2-node {
    left: 35px;
    right: auto;
    transform: translateX(-50%);
  }
  
  .love-story-v2-card {
    padding: 25px;
    width: calc(100% - 35px);
    margin-top: 80px;
    margin-bottom: 80px;
  }
  
  .love-story-v2-item:nth-child(odd) .love-story-v2-card {
    margin-left: 0;
    margin-right: auto;
    width: calc(100% - 35px);
  }
  
  .love-story-v2-item:nth-child(even) .love-story-v2-card {
    margin-right: 0;
    margin-left: auto;
    width: calc(100% - 35px);
  }
}
