
/* --- YouTube Section --- */
.video-header {
  width: 100%;
  text-align: center;
  margin-bottom: 1.5rem;
}

.video-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.4rem 1.25rem;
  border-radius: 10px;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  box-shadow: var(--shadow-1);
}

.youtube-section {
  text-align: center;
  margin: 0 auto;
  max-width: 64rem;
}

.youtube-section .section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.youtube-section .section-title::after {
  content: "";
  display: block;
  width: 80%;
  height: 3px;
  background: var(--accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.video-card {
  background: var(--bg-elev-1);
  border-radius: 1rem;
  box-shadow: var(--shadow-1);
  padding: 1rem;
  margin: 2rem auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 64rem;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 0.75rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
  transition: transform 0.3s ease;
}

.video-wrapper iframe:hover {
  transform: scale(1.02);
}

/* --- About Section --- */
.about-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.about-subtitle {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Slideshow Core */
.slideshow-container {
  max-width: 80%;
  margin: 60px auto 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.slides {
  display: none;
}

.slides.is-active { 
  display: block; 
}

.slides img {
  width: 100%;
}

.fade {
  animation: fadeEffect 0.3s ease-in-out;
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Controls */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  padding: 10px 14px;
  color: #fff;
  font-weight: bold;
  font-size: 3.5rem;
  border: none;
  background: transparent;
  transition: color 0.3s ease, transform 0.2s ease;
  user-select: none;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.prev:hover, .next:hover {
  color: var(--accent-color, #3b82f6);
  transform: scale(1.2);
}

/* Captions */
.caption {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.55); 
  color: #000000;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 6px;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 2px 6px rgb(255, 255, 255,0.3);
}

/* Hide counter if there’s only one slide */
.mySlides:only-child ~ .ts-slide-counter { display: none; }

/* Dots */
.dot-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 1.2rem;
}

/* Actual round dots */
.dot-container .dot {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: var(--line-soft);
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot-container .dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.about-tagline {
  text-align: center;
}

/* Mobile */
@media (max-width: 768px) {

  .slideshow-container .prev,
  .slideshow-container .next {
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: none !important;
  }

  .slideshow-container .prev:hover,
  .slideshow-container .next:hover {
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  /* caption box */
  .caption {
    font-size: 0.8rem;
    line-height: 1.2;
    padding: 0.3rem 0.6rem;
    margin: 0.3rem auto 0;
    max-width: 85%;
    border-radius: 6px;
  }
}

/* Accessibility: reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
  .fade { animation: none !important; }
}

/* --- Section Headers --- */
.floorplan-section,
.cc-section,
.recommended-cc,
.download-lot-section {
  background: var(--text-primary);
  padding: 0.75rem 0;
  border-radius: 10px;
}
[data-theme="dark"] .floorplan-section {
  background: #1c2845;
}

.floorplan-title,
.cc-title,
.recommended-cc-title,
.download-lot-title {
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: .4px;
  padding: 12px;
}

/* --- Floorplan Section --- */
/* Floorplan Container */
#floorplan .floorplan-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, max-content));
  justify-content: center;   /* center cards in container */
  gap: 1.5rem;
  padding: 0 1rem;           /* optional padding for breathing room */
}

/* Images */
#floorplan .floorplan-card picture,
#floorplan .floorplan-card picture img,
#floorplan .floorplan-card .floorplan-img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

/* Caption */
.floorplan-caption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 300px;        /* match image width */
  margin-left: auto;
  margin-right: auto;
}

/* Card hover */
.floorplan-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 0.75rem;
}

.floorplan-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile */
@media (max-width: 768px) {
  #floorplan { margin-top: 2rem; }
  .floorplan-title { font-size: 1.1rem; }
  .floorplan-caption { font-size: 0.9rem; }
}

/* --- CC Included Section --- */
#custom-content table {
  border-radius: 0.5rem; 
  overflow: hidden; 
  border-collapse: separate; 
  border-spacing: 0;
}

/* Make header row corners match sqaure-rounded corners */
#custom-content thead tr:first-child th:first-child {
  border-top-left-radius: 0.5rem;
}
#custom-content thead tr:first-child th:last-child {
  border-top-right-radius: 0.5rem;
}
#custom-content tbody tr:last-child td:first-child {
  border-bottom-left-radius: 0.5rem;
}
#custom-content tbody tr:last-child td:last-child {
  border-bottom-right-radius: 0.5rem;
}

#custom-content table td .cc-img {
  width: 120px;
  height: 120px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  max-width: none;
  flex: 0 0 120px;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.375rem;
  text-transform: capitalize;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.badge:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.badge-modded {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-cep {
  background-color: #fef3c7;
  color: #92400e; 
}

.badge-common {
  background-color: #dbeafe; 
  color: #1e3a8a;
}

/* Row highlight colors */
tr.row-green {
  background-color: #E2F5E0 !important;
}
tr.row-yellow {
  background-color: #F4F5E0 !important;
}

@media (max-width: 768px) {
  #custom-content table,
  #custom-content thead,
  #custom-content tbody,
  #custom-content th,
  #custom-content td,
  #custom-content tr {
    display: block;
    width: 100%;
  }

  #custom-content thead {
    display: none;
  }

  #custom-content tr {
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb; 
    border-radius: 0.5rem;
    padding: 1rem;
    background: #fff;
  }

  #custom-content td {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.5rem 0;
  }

  #custom-content td img {
    margin: 0 auto;
  }

  #custom-content td .badge {
    display: block;
    margin-top: 0.25rem;
  }

  #custom-content td {
    flex-direction: column;
  }
}

/* --- Extra CC/Mods Included Section --- */
#cc-not-included table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#cc-not-included thead {
  background-color: #E2E8F0;
}

#cc-not-included th,
#cc-not-included td {
  padding: 0.75rem 1rem; 
  text-align: left;
  border-bottom: 1px solid #e5e7eb; /* horizontal borders */
  border-right: 1px solid #e5e7eb;  /* vertical borders */
}

#cc-not-included tr:last-child td {
  border-bottom: none;
}

#cc-not-included a {
  color: #2563eb;
  text-decoration: underline;
}

#cc-not-included summary {
  font-weight: 600;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  #cc-not-included table,
  #cc-not-included thead,
  #cc-not-included tbody,
  #cc-not-included th,
  #cc-not-included td,
  #cc-not-included tr {
    display: block;
    width: 100%;
    text-align: center;
  }

  #cc-not-included thead {
    display: none; /* hide table header */
  }

  #cc-not-included tr {
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb; /* light gray border */
    border-radius: 0.75rem;     /* rounded corners */
    padding: 1rem;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* subtle shadow */
    text-align: center;
  }

  #cc-not-included td {
    border: none;
    padding: 0.5rem;
  }

  #cc-not-included td::before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #555;
    text-align: center;
  }
}

/* --- Downloads & Donate Section --- */
/* Ko-fi Container Animation */
.kofi-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kofi-card:hover {
  transform: translateY(-4px) scale(1.02); /* tiny lift + enlarge */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* Wiggle animation for Ko-fi cup */
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-10deg); }
  30% { transform: rotate(10deg); }
  45% { transform: rotate(-7deg); }
  60% { transform: rotate(7deg); }
  75% { transform: rotate(-3deg); }
  90% { transform: rotate(3deg); }
}

.kofi-card img {
  transition: transform 0.3s ease;
}

.kofi-card:hover img {
  animation: wiggle 0.6s ease-in-out;
}

.prose {
  text-align: center;
}

.prose a {
  color: #2563eb;
}










