/* ============================================
   TEMPLATE 24 V2 COMPONENTS - Modern Minimal / Elegant Style
   Color Palette: Soft Pastel (Lavender, Blush, Sage)
   ============================================ */

/* Color Variables */
:root {
  --lavender-primary: #b8a9d9;
  --lavender-light: #d4c8e8;
  --lavender-dark: #9b88c4;
  --blush-primary: #f5c2c7;
  --blush-light: #f9d4d8;
  --blush-dark: #e8a5ab;
  --sage-primary: #a8c5a0;
  --sage-light: #c4d9be;
  --sage-dark: #8fb085;
  --neutral-light: #fafafa;
  --neutral-medium: #e8e8e8;
  --neutral-dark: #4a4a4a;
  --white: #ffffff;
  --shadow-minimal: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ============================================
   CALENDAR V2 - Minimal Elegant
   ============================================ */

.calendar-v2 {
  position: relative;
}

.calendar-v2-mini_calendar {
  margin: 0 auto;
  padding: 40px;
  background: linear-gradient(135deg, rgba(212, 200, 232, 0.15) 0%, rgba(249, 212, 216, 0.15) 100%);
  background-color: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-minimal);
  border: 2px solid var(--lavender-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(--lavender-primary);
  font-size: 1.5rem;
  text-transform: capitalize;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 1px;
}

.calendar-v2-mini_calendar table th {
  padding: 15px 8px;
  text-align: center;
  font-weight: 500;
  color: var(--sage-primary);
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  border-top: 2px solid var(--sage-light);
  border-bottom: 2px solid var(--sage-light);
  background: linear-gradient(135deg, rgba(196, 217, 190, 0.1) 0%, rgba(212, 200, 232, 0.1) 100%);
}

.calendar-v2-mini_calendar td {
  text-align: center;
  padding: 10px;
  font-size: 1rem;
  color: var(--neutral-dark);
  font-family: 'Montserrat', sans-serif;
  width: 40px;
  height: 50px;
  position: relative;
  transition: all 0.3s ease;
}

.calendar-v2-mini_calendar td:hover {
  background: rgba(184, 169, 217, 0.08);
  border-radius: 12px;
}

.calendar-v2-mini_calendar td #today {
  background: linear-gradient(135deg, var(--blush-light) 0%, var(--blush-primary) 100%);
  color: var(--neutral-dark);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin: 0 auto;
  font-weight: 500;
  box-shadow: var(--shadow-minimal);
  font-family: 'Raleway', sans-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(212, 200, 232, 0.1) 0%, rgba(249, 212, 216, 0.1) 100%);
  background-color: var(--white);
  border-radius: 16px;
  padding: 25px 20px;
  box-shadow: var(--shadow-minimal);
  border: 2px solid var(--blush-light);
  transition: all 0.3s ease;
  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(--lavender-light) 0%, var(--blush-light) 100%);
}

.calendar-v2-countdown #clock .box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-subtle);
  border-color: var(--sage-light);
}

.calendar-v2-countdown #clock .box > div {
  font-size: 2.5rem;
  margin-bottom: 0.2em;
  line-height: 1em;
  font-weight: 600;
  font-family: 'Raleway', sans-serif;
  background: linear-gradient(135deg, var(--lavender-primary) 0%, var(--blush-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calendar-v2-countdown #clock .box > span {
  font-size: 0.85rem;
  color: var(--neutral-dark);
  font-weight: 300;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  font-family: 'Montserrat', sans-serif;
  opacity: 0.7;
}

/* Responsive Calendar V2 */
@media (max-width: 768px) {
  .calendar-v2-mini_calendar {
    padding: 30px 20px;
  }
  
  .calendar-v2-mini_calendar table th {
    padding: 12px 6px;
    font-size: 0.85rem;
  }
  
  .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: 2rem;
  }
  
  .calendar-v2-countdown #clock > div {
    padding: 20px 10px 0;
  }
}

@media (max-width: 480px) {
  .calendar-v2-mini_calendar {
    padding: 25px 15px;
  }
  
  .calendar-v2-mini_calendar table th {
    padding: 10px 4px;
    font-size: 0.8rem;
  }
  
  .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 - Minimal Frame
   ============================================ */

.video-v2 {
  position: relative;
}

.video-v2-frame {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-minimal);
  border: 1px solid var(--neutral-medium);
  transition: all 0.3s ease;
}

.video-v2-content {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-minimal);
  border: 1px solid var(--neutral-medium);
}

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

.video-v2-frame:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-subtle);
  border-color: var(--sage-light);
}

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

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

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

.gallery-v2 {
  position: relative;
}

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

.gallery-v2-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-minimal);
  border: 1px solid var(--neutral-medium);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-v2-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-subtle);
  border-color: var(--sage-light);
}

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

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

.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.3s ease;
  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-subtle);
  border: 1px solid var(--neutral-medium);
}

.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 - Minimal Vertical Timeline
   ============================================ */

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

.story-section {
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--lavender-light) 100%);
  background-color: rgba(196, 217, 190, 0.15);
}

.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: 2px;
  background: linear-gradient(180deg, var(--lavender-light) 0%, var(--blush-light) 50%, var(--sage-light) 100%);
  transform: translateX(-50%);
  z-index: 0;
}

.love-story-v2-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lavender-primary);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--lavender-light);
}

.love-story-v2-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sage-primary);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--sage-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(--lavender-light) 0%, var(--lavender-primary) 100%);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--lavender-light), var(--shadow-minimal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.3s ease;
  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(--blush-light) 0%, var(--blush-primary) 100%);
  box-shadow: 0 0 0 2px var(--blush-light), var(--shadow-minimal);
}

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

.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(--blush-light), var(--shadow-subtle);
}

.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: 'Montserrat', sans-serif;
}

.love-story-v2-card {
  width: 40%;
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-minimal);
  border: 1px solid var(--neutral-medium);
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  max-height: none;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.love-story-v2-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-subtle);
  border-color: var(--sage-light);
}

.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(--lavender-primary);
  font-weight: 500;
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
}

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

.love-story-v2-card .title {
  font-size: 1.5rem;
  color: var(--neutral-dark);
  font-weight: 600;
  margin-bottom: 15px;
  font-family: 'Raleway', sans-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: 'Montserrat', sans-serif;
  transition: max-height 0.3s ease;
  max-height: 2000px;
  overflow: hidden;
  position: relative;
  word-wrap: break-word;
  font-weight: 300;
}

.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(--lavender-primary);
  cursor: pointer;
  font-weight: 500;
  margin-top: 12px;
  font-family: 'Montserrat', sans-serif;
  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-item:nth-child(even) .love-story-v2-read-more {
  color: var(--blush-primary);
}

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

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

.love-story-v2-card .img-holder {
  border-radius: 16px;
  overflow: hidden;
  margin-top: 15px;
  box-shadow: var(--shadow-minimal);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  max-height: 200px;
  border: 1px solid var(--neutral-medium);
}

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

/* 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: 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);
  }
}

@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);
  }
}
