/* TIC TAC TOE - FINAL "GAME MODE" VERSION (#9582A2) */

/* 1. THE BOARD */
.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  padding: 10px;
}

/* 2. THE CELLS */
.ttt-cell {
  background: #ffffff;
  color: #9582A2;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem; /* Adjust text size if needed */
  cursor: pointer;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(149, 130, 162, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5px;
  user-select: none;
}

.ttt-cell:hover {
  transform: translateY(-5px);
  border-color: #9582A2;
  box-shadow: 0 8px 20px rgba(149, 130, 162, 0.3);
}

/* 3. THE "WINNING" BIG STRIKE LINE */
.big-strike-line {
  position: absolute;
  background: #9582A2;
  height: 8px; /* Thickness of the line */
  border-radius: 4px;
  top: 50%;
  left: 50%;
  width: 0%; /* Start hidden */
  transform: translate(-50%, -50%); /* Center it perfectly */
  opacity: 0;
  z-index: 20;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s;
  pointer-events: none;
}

/* Line Orientation Classes */
/* Diagonal Top-Left to Btm-Right */
.big-strike-line.strike-diag-1 {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Diagonal Top-Right to Btm-Left */
.big-strike-line.strike-diag-2 {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Horizontal Row (Middle) */
.big-strike-line.strike-row {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* Vertical Column (Middle) */
.big-strike-line.strike-col {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* The Trigger State */
.big-strike-line.active {
  opacity: 1;
  /* Width for diagonals needs to be longer to cross the corners */
}
.big-strike-line.strike-diag-1.active, 
.big-strike-line.strike-diag-2.active {
  width: 130%; 
}
.big-strike-line.strike-row.active, 
.big-strike-line.strike-col.active {
  width: 95%; 
}

/* 4. OVERLAY (Glassmorphism) */
.ttt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(149, 130, 162, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 100;
  padding: 30px;
  text-align: center;
  border-radius: 16px;
  color: white;
}

.ttt-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.ttt-overlay h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ttt-overlay p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #f0f0f0;
  max-width: 80%;
}

.close-btn {
  margin-top: 25px;
  padding: 10px 30px;
  background: white;
  color: #9582A2;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.close-btn:hover {
  transform: scale(1.05);
}

/* Mobile: Ensure Grid is 3x3 for the lines to work logically, 
   or keep 2x2 but accept lines might look odd. 
   Recommendation: Force 3x3 on mobile but make text smaller */
@media (max-width: 600px) {
  .ttt-cell { font-size: 0.8rem; padding: 2px; }
  .ttt-board { gap: 8px; }
}

/* Custom Wedding Carousel Styles */
.wt-container {
  max-width: 1000px;
  margin: 40px auto;
  font-family: 'Georgia', 'Times New Roman', serif;
  background-color: #fdfbf7; 
  padding: 50px 40px; 
  border: 1px solid #e0d8c3;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.wt-slide {
  display: none;
  animation: fadeEffect 1.2s; 
}

.wt-slide.active {
  display: block;
}

/* Flexbox Layout */
.wt-slide-inner {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    gap: 50px; 
    text-align: left; 
}

/* Image Styling */
.wt-image-col {
    flex: 0 0 360px; 
}

.wt-image {
  width: 100%; 
  height: auto;
  aspect-ratio: 2/3; 
  object-fit: cover; 
  border-radius: 4px; 
  border: 6px solid #fff; 
  outline: 1px solid #9582A2; 
  box-shadow: 0 8px 20px rgba(0,0,0,0.12); 
}

/* Text Styling */
.wt-text-col {
    flex: 1; 
}

.wt-quote {
  font-size: 1.15rem; 
  line-height: 1.7;
  color: #4a4a4a;
  font-style: italic;
  margin-bottom: 25px;
  position: relative;
}

.wt-quote::before {
  content: "“";
  display: block;
  font-size: 5rem;
  color: #9582A2; 
  line-height: 0.1;
  margin-bottom: 40px; 
  margin-left: -5px; 
  font-family: sans-serif;
  opacity: 0.8;
}

.wt-author {
  font-family: 'Helvetica', 'Arial', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #9582A2; 
  margin-bottom: 5px;
  margin-top: 20px;
}

/* Dots */
.wt-dots {
  text-align: center;
  margin-top: 40px;
  width: 100%;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 6px;
  background-color: #ddd;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.6s ease;
}

.dot.active, .dot:hover {
  background-color: #9582A2; 
  transform: scale(1.2);
}

@keyframes fadeEffect {
  from {opacity: 0.3; transform: translateX(20px);} 
  to {opacity: 1; transform: translateX(0);}
}

/* Mobile Responsiveness */
@media (max-width: 850px) {
    .wt-slide-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .wt-quote::before {
        margin: 0 auto 30px auto; 
    }
    .wt-image-col {
        flex: none;
        width: 80%; 
        max-width: 300px;
    }
}

/* Container Styles */
.wmg-carousel-wrapper {
  max-width: 800px;
  margin: 40px auto;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  position: relative;
  box-sizing: border-box;
}

/* Carousel Track */
.wmg-track-container {
  overflow: hidden;
  padding: 10px 5px; 
  position: relative;
  z-index: 1;
}

.wmg-track {
  display: flex;
  transition: transform 0.6s ease-in-out; 
  width: 100%; 
}

/* Review Card Styles */
.wmg-card {
  min-width: 100%;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wmg-stars {
  color: #FFD700;
  font-size: 1.4rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.wmg-review-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  font-style: italic;
  margin-bottom: 20px;
}

.wmg-author {
  font-weight: bold;
  color: #333;
  font-size: 1rem;
  margin-bottom: 5px;
}

/* Link Styles within Card */
.wmg-author a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px dotted #999;
  transition: color 0.2s;
}
.wmg-author a:hover {
  color: #E72E77;
  border-bottom: 1px solid #E72E77;
}

.wmg-date {
  font-size: 0.85rem;
  color: #888;
}

.wmg-date a {
  color: #E72E77;
  text-decoration: none;
  font-weight: 500;
}
.wmg-date a:hover {
  text-decoration: underline;
}

/* Final Slide 'Read More' Styles */
.wmg-cta-card {
  background: #fafafa;
  border: 2px dashed #E72E77;
}
.wmg-cta-btn {
  display: inline-block;
  background: #E72E77;
  color: #fff;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: background 0.3s;
}
.wmg-cta-btn:hover {
  background: #c21c5b;
}

/* Navigation Buttons */
.wmg-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #ddd;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  color: #555;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10;
  transition: all 0.2s;
}
.wmg-nav-btn:hover { 
  background: #E72E77; 
  color: white; 
  border-color: #E72E77;
}
.wmg-prev { left: -25px; }
.wmg-next { right: -25px; }

/* Mobile Responsive */
@media (max-width: 600px) {
  .wmg-nav-btn { display: none; }
  .wmg-track-container { 
    overflow-x: hidden; 
  }
}

