/* ============================================
   TEMPLATE 16 V2 COMPONENTS - Soft & Harmonious Style
   Color Palette: Pastel Emerald & Rose
   ============================================ */

/* Color Variables */
:root {
  --emerald-primary: #7dd3a0;
  --emerald-dark: #5bb889;
  --emerald-light: #b8e6d1;
  --rose-primary: #f5a8b8;
  --rose-dark: #e88fa3;
  --rose-light: #f9c9d4;
  --neutral-dark: #4a5568;
  --neutral-medium: #718096;
  --neutral-light: #f7fafc;
  --white: #ffffff;
  --cream: #fef9f5;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 2px 12px rgba(0, 0, 0, 0.05);
  --floral-pattern: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='softFloral' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='20' cy='20' r='2' fill='%237dd3a0' opacity='0.08'/%3E%3Ccircle cx='80' cy='30' r='1.5' fill='%23f5a8b8' opacity='0.06'/%3E%3Ccircle cx='50' cy='70' r='2.5' fill='%237dd3a0' opacity='0.08'/%3E%3Ccircle cx='20' cy='70' r='2' fill='%23f5a8b8' opacity='0.06'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23softFloral)'/%3E%3C/svg%3E");
}

/* ============================================
   CALENDAR V2 - Soft & Harmonious
   ============================================ */

.calendar-v2 {
  position: relative;
}

.calendar-v2-mini_calendar {
  max-width: 450px;
  margin: 0 auto;
  padding: 35px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(184, 230, 209, 0.08) 30%, rgba(249, 201, 212, 0.08) 70%, rgba(255, 255, 255, 0.98) 100%);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--emerald-light);
}

.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: 30px;
  font-weight: 600;
  color: var(--emerald-primary);
  font-size: 1.6rem;
  text-transform: capitalize;
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
}

.calendar-v2-mini_calendar table th {
  padding: 15px 8px;
  text-align: center;
  font-weight: 500;
  color: var(--neutral-dark);
  font-size: 0.95rem;
  font-family: 'Lora', serif;
  border-top: 1px solid var(--emerald-light);
  border-bottom: 1px solid var(--emerald-light);
}

.calendar-v2-mini_calendar td {
  text-align: center;
  padding: 10px;
  font-size: 1rem;
  color: var(--neutral-medium);
  font-family: 'Inter', sans-serif;
  width: 40px;
  height: 50px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-v2-mini_calendar td:hover {
  background: rgba(125, 211, 160, 0.15);
  border-radius: 12px;
}

.calendar-v2-mini_calendar td #today {
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--rose-primary) 100%);
  color: var(--neutral-dark);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin: 0 auto;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  font-family: 'Playfair Display', serif;
}

.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;
}

.calendar-v2-countdown #clock .box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 201, 212, 0.06) 50%, rgba(184, 230, 209, 0.06) 100%);
  border-radius: 20px;
  padding: 25px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--emerald-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  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, var(--emerald-light) 0%, var(--rose-light) 100%);
}

.calendar-v2-countdown #clock .box:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-medium);
  border-color: var(--rose-primary);
}

.calendar-v2-countdown #clock .box > div {
  font-size: 2.5rem;
  margin-bottom: 0.2em;
  line-height: 1em;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  color: var(--emerald-primary);
}

.calendar-v2-countdown #clock .box > span {
  font-size: 0.85rem;
  color: var(--neutral-medium);
  font-weight: 400;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  font-family: 'Lora', serif;
  font-style: italic;
}

/* Responsive Calendar V2 */
@media (max-width: 768px) {
  .calendar-v2-mini_calendar {
    max-width: 380px;
    padding: 20px;
  }
  
  .calendar-v2-mini_calendar table th {
    padding: 12px 6px;
    font-size: 0.9rem;
  }
  
  .calendar-v2-mini_calendar td {
    font-size: 0.9rem;
    width: 35px;
    height: 45px;
  }
  
  .calendar-v2-mini_calendar td #today {
    width: 35px;
    height: 35px;
    line-height: 35px;
  }
  
  .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: 15px;
  }
  
  .calendar-v2-mini_calendar table th {
    padding: 10px 4px;
    font-size: 0.85rem;
  }
  
  .calendar-v2-mini_calendar td {
    font-size: 0.85rem;
    width: 30px;
    height: 40px;
  }
  
  .calendar-v2-mini_calendar td #today {
    width: 30px;
    height: 30px;
    line-height: 30px;
  }
  
  .calendar-v2-countdown #clock .box > div {
    font-size: 1.8rem;
  }
  
  .calendar-v2-countdown #clock .box {
    padding: 20px 15px;
  }
  
  .calendar-v2-countdown #clock > div {
    padding: 15px 8px 0;
  }
}

/* ============================================
   VIDEO V2 - Soft Frame
   ============================================ */

.video-v2 {
  position: relative;
}

.video-v2-frame {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(184, 230, 209, 0.08) 50%, rgba(249, 201, 212, 0.08) 100%);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--emerald-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-v2-frame::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  border: 1px solid var(--rose-light);
  border-radius: 35px;
  z-index: -1;
  opacity: 0.6;
}

.video-v2-content {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--emerald-light);
}

.video-v2-content iframe {
  border-radius: 18px;
  display: block;
}

.video-v2-frame:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-color: var(--rose-primary);
}

/* Responsive Video V2 */
@media (max-width: 768px) {
  .video-v2-frame {
    padding: 30px 15px;
  }
}

@media (max-width: 480px) {
  .video-v2-frame {
    padding: 20px 10px;
  }
}

/* ============================================
   GALLERY V2 - Soft 2 Column Grid
   ============================================ */

.gallery-v2 {
  position: relative;
}

.gallery-v2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.gallery-v2-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--emerald-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.gallery-v2-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-medium);
  border-color: var(--rose-primary);
}

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

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

.gallery-v2-card::after {
  content: '👁';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2rem;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.95);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--emerald-light);
}

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

/* Responsive Gallery V2 */
@media (max-width: 768px) {
  .gallery-v2-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .gallery-v2-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

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

.love-story-v2 {
  position: relative;
}

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

.love-story-v2-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 0px;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 0 8px rgba(125, 211, 160, 0.2);
}

.love-story-v2-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--emerald-light), 0 3px 10px rgba(125, 211, 160, 0.3);
}

.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-primary);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--rose-light), 0 3px 10px rgba(245, 168, 184, 0.3);
}

.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(--emerald-light) 0%, var(--emerald-primary) 100%);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--emerald-light), var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.love-story-v2-item:nth-child(even) .love-story-v2-node {
  left: 35px;
  right: auto;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--rose-primary) 100%);
  box-shadow: 0 0 0 3px var(--rose-light), var(--shadow-soft);
}

.love-story-v2-item:hover .love-story-v2-node {
  transform: translateX(50%) scale(1.1);
  box-shadow: 0 0 0 2px var(--emerald-light), var(--shadow-medium);
}

.love-story-v2-item:nth-child(even):hover .love-story-v2-node {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 0 0 2px var(--rose-light), var(--shadow-medium);
}

.love-story-v2-node-date {
  font-size: 0.75rem;
  color: var(--neutral-dark);
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  font-family: 'Lora', serif;
}

.love-story-v2-card {
  width: 40%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 201, 212, 0.06) 30%, rgba(184, 230, 209, 0.06) 70%, rgba(255, 255, 255, 0.98) 100%);
  border-radius: 28px;
  padding: 35px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--emerald-light);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  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(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--rose-primary);
}

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

.love-story-v2-item:nth-child(odd) .love-story-v2-card {
  margin-left: 0;
  margin-right: auto;
  width: calc(100% - 35px);
  margin-top: 90px;
  margin-bottom: 90px;
  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: 90px;
  margin-bottom: 90px;
  max-width: none;
  border-color: var(--rose-primary);
}

.love-story-v2-card .date {
  font-size: 0.95rem;
  color: var(--emerald-primary);
  font-weight: 500;
  margin-bottom: 12px;
  font-family: 'Lora', serif;
  font-style: italic;
}

.love-story-v2-item:nth-child(even) .love-story-v2-card .date {
  color: var(--rose-primary);
}

.love-story-v2-card .title {
  font-size: 1.6rem;
  color: var(--neutral-dark);
  font-weight: 600;
  margin-bottom: 18px;
  font-family: 'Playfair Display', serif;
}

.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(--neutral-dark);
  line-height: 1.8;
  margin-bottom: 0;
  font-family: 'Inter', sans-serif;
  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, var(--white));
  pointer-events: none;
}

.love-story-v2-read-more {
  color: var(--emerald-primary);
  cursor: pointer;
  font-weight: 500;
  margin-top: 15px;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.love-story-v2-item:nth-child(even) .love-story-v2-read-more {
  color: var(--rose-primary);
}

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

.love-story-v2-item:nth-child(even) .love-story-v2-read-more:hover {
  color: var(--rose-dark);
  border-bottom-color: var(--rose-light);
}

.love-story-v2-card .img-holder {
  border-radius: 20px;
  overflow: hidden;
  margin-top: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease;
  flex-shrink: 0;
  max-height: 200px;
  border: 1px solid var(--emerald-light);
}

.love-story-v2-item:nth-child(even) .love-story-v2-card .img-holder {
  border-color: var(--rose-light);
}

.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.05);
}

/* 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-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-card {
    width: calc(100% - 35px);
    margin-top: 90px;
    margin-bottom: 90px;
  }
  
  .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);
  }
}

@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: 70px;
    height: 70px;
    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: 90px;
    margin-bottom: 90px;
  }
  
  .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);
  }
}
