/*
Theme Name: KickTheBookies Child
Template: colormag
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

/* ============================================================
   BASE RESET FOR HOMEPAGE
   ============================================================ */
.ktb-homepage {
  background: #1a1a1a;
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ktb-homepage * {
  box-sizing: border-box;
}

.ktb-homepage a {
  text-decoration: none;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.ktb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   SECTION HEADERS (shared pattern)
   ============================================================ */
.ktb-section-header {
  margin-bottom: 20px;
}

.ktb-section-header--spaced {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ktb-section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.ktb-section-label::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.ktb-section-seeall {
  font-size: 13px;
  font-weight: 700;
  color: #D4A037;
  transition: opacity 0.15s ease;
}

.ktb-section-seeall:hover {
  opacity: 0.8;
}

/* ============================================================
   SECTION 1 — TWO-AUDIENCE FORK
   ============================================================ */
.ktb-fork-section {
  padding: 40px 0 0;
}

.ktb-fork-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.ktb-fork-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ktb-fork-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ktb-fork-card:hover {
  transform: translateY(-2px);
}

.ktb-fork-inner {
  padding: 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.ktb-fork-racing {
  background: #2E2E2E;
  border: 1px solid rgba(212, 160, 55, 0.25);
}

.ktb-fork-racing::before {
  content: '🏇';
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 56px;
  opacity: 0.1;
  line-height: 1;
}

.ktb-fork-football {
  background: #1c2a1c;
  border: 1px solid rgba(100, 185, 100, 0.2);
}

.ktb-fork-football::before {
  content: '⚽';
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 56px;
  opacity: 0.1;
  line-height: 1;
}

.ktb-fork-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 160, 55, 0.15);
  color: #D4A037;
  border: 1px solid rgba(212, 160, 55, 0.3);
}

.ktb-fork-badge--green {
  background: rgba(100, 185, 100, 0.12);
  color: #6dbf6d;
  border-color: rgba(100, 185, 100, 0.28);
}

.ktb-fork-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #D4A037;
  margin: 0 0 8px;
}

.ktb-fork-eyebrow--green {
  color: #6dbf6d;
}

.ktb-fork-title {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin: 0 0 16px;
}

.ktb-fork-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ktb-fork-link {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(212, 160, 55, 0.12);
  color: #D4A037;
  border: 1px solid rgba(212, 160, 55, 0.28);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ktb-fork-link:hover {
  background: rgba(212, 160, 55, 0.22);
  border-color: rgba(212, 160, 55, 0.5);
}

.ktb-fork-link--green {
  background: rgba(100, 185, 100, 0.1);
  color: #6dbf6d;
  border-color: rgba(100, 185, 100, 0.25);
}

.ktb-fork-link--green:hover {
  background: rgba(100, 185, 100, 0.2);
  border-color: rgba(100, 185, 100, 0.45);
}

/* ============================================================
   SECTION 2 — HORSE RACING PRODUCT CARDS
   ============================================================ */
.ktb-products-section {
  padding: 48px 0 0;
}

.ktb-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ktb-product-card {
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ktb-product-card:hover {
  border-color: rgba(212, 160, 55, 0.3);
  transform: translateY(-2px);
}

.ktb-product-card--featured {
  border-color: rgba(212, 160, 55, 0.2);
}

.ktb-product-card-link {
  display: block;
  color: inherit;
}

.ktb-product-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #2E2E2E;
  position: relative;
}

.ktb-product-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(36, 36, 36, 0.85));
}

.ktb-product-body {
  padding: 18px 18px 20px;
}

.ktb-product-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #D4A037;
  margin-bottom: 8px;
}

.ktb-product-title {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.25px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.ktb-product-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
  margin: 0 0 14px;
}

.ktb-product-cta {
  font-size: 13px;
  font-weight: 700;
  color: #D4A037;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ktb-product-card:hover .ktb-product-cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   SECTION 3 — FOOTBALL
   ============================================================ */
.ktb-football-section {
  padding: 48px 0 0;
}

.ktb-comp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.ktb-comp-pill {
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ktb-comp-pill:hover {
  border-color: rgba(212, 160, 55, 0.3);
  color: #fff;
  background: #2a2a2a;
}

.ktb-comp-pill--featured {
  border-color: rgba(212, 160, 55, 0.2);
  color: #D4A037;
}

.ktb-comp-pill--all {
  border-style: dashed;
  color: rgba(255, 255, 255, 0.4);
}

.ktb-comp-flag {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.ktb-comp-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ktb-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ktb-article-card {
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ktb-article-card:hover {
  border-color: rgba(212, 160, 55, 0.25);
  transform: translateY(-2px);
}

.ktb-article-card-link {
  display: block;
  color: inherit;
}

.ktb-article-img {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: #333;
}

.ktb-article-body {
  padding: 14px;
}

.ktb-article-cat {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #D4A037;
  margin-bottom: 6px;
}

.ktb-article-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 0 0 8px;
}

.ktb-article-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  display: block;
}

/* ============================================================
   SECTION 4 — TOOLS STRIP
   ============================================================ */
.ktb-tools-section {
  padding: 48px 0 0;
}

.ktb-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ktb-tool-card {
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.ktb-tool-card:hover {
  border-color: rgba(212, 160, 55, 0.25);
  transform: translateY(-2px);
}

.ktb-tool-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 12px;
}

.ktb-tool-title {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.15px;
}

.ktb-tool-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}

.ktb-tool-link {
  font-size: 12px;
  font-weight: 700;
  color: #D4A037;
}

.ktb-tool-card:hover .ktb-tool-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   SECTION 5 — TRUST BAR
   ============================================================ */
.ktb-trust-section {
  padding: 40px 0 48px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ktb-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ktb-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.ktb-trust-icon {
  font-size: 14px;
  color: #D4A037;
  margin-bottom: 4px;
}

.ktb-trust-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.ktb-trust-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
}

.ktb-trust-sub a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   RESPONSIVE — TABLET (max 900px)
   ============================================================ */
@media (max-width: 900px) {
  .ktb-products-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ktb-products-grid .ktb-product-card:last-child {
    grid-column: 1 / -1;
  }

  .ktb-comp-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ktb-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ktb-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 640px)
   ============================================================ */
@media (max-width: 640px) {
  .ktb-container {
    padding: 0 16px;
  }

  .ktb-fork-section {
    padding: 28px 0 0;
  }

  .ktb-fork-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ktb-fork-inner {
    min-height: 200px;
  }

  .ktb-fork-title {
    font-size: 22px;
  }

  .ktb-products-section,
  .ktb-football-section,
  .ktb-tools-section {
    padding-top: 36px;
  }

  .ktb-products-grid {
    grid-template-columns: 1fr;
  }

  .ktb-products-grid .ktb-product-card:last-child {
    grid-column: auto;
  }

  .ktb-comp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ktb-articles-grid {
    grid-template-columns: 1fr;
  }

  .ktb-tools-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ktb-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .ktb-fork-label {
    font-size: 10px;
  }

  .ktb-product-img {
    height: 140px;
  }
}
