/* ==========================================================================
   CSS Variables — matched to Spread II theme colors
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #c7286f;
  --color-primary-dark: #940c48;
  --color-accent: #c7286f;
  --color-accent-hover: #940c48;
  --color-success: #10b981;
  --color-cta: #f68a1f;
  --color-cta-hover: #d4700c;
  --color-warning: #f68a1f;

  /* Text */
  --color-text: #444;
  --color-text-heading: #333;
  --color-text-dark: #111;
  --color-text-light: #777;
  --color-text-muted: #999;

  /* Backgrounds */
  --bg-white: #fff;
  --bg-light: #f9fafb;
  --bg-lighter: #f3f4f6;

  /* Borders */
  --border-default: #e5e5e5;
  --border-light: #f3f4f6;
  --border-darker: #ccc;

  /* Radius */
  --border-radius: 4px;
  --border-radius-sm: 3px;
  --border-radius-md: 8px;
  --border-radius-lg: 10px;
  --border-radius-xl: 14px;
  --border-radius-round: 50%;

  /* Shadow */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition-fast: 0.2s ease;

  /* Font */
  --font-size-base: 16px;
  --line-height-base: 1.6;
}

/* ==========================================================================
   Tips (single-tip.php)
   ========================================================================== */

.tips_table {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tip-match {
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.tip-match:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.tip_match-thumbnail img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.tip_match-info {
  padding: 20px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

/* ==========================================================================
   Free Tips Table ([free_tips] shortcode)
   ========================================================================== */

.free-tips-wrapper {
  margin: 30px 0;
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.free-tips-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-heading, #333);
  margin: 0 0 8px;
}

.free-tips-updated {
  font-size: 13px;
  color: var(--color-text-light, #6b7280);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.free-tips-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-default, #e5e7eb);
  border-radius: 8px;
  background: var(--bg-white, #fff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.free-tips-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.free-tips-table thead {
  background: var(--bg-lighter, #f3f4f6);
}

.free-tips-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light, #6b7280);
  border-bottom: 2px solid var(--border-default, #e5e7eb);
  white-space: nowrap;
}

.free-tips-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light, #f3f4f6);
  vertical-align: middle;
  color: var(--color-text, #374151);
}

.free-tips-table tbody tr:last-child td {
  border-bottom: none;
}

.free-tips-table tbody tr:hover {
  background: var(--bg-light, #f9fafb);
}

.ft-col-sport {
  white-space: nowrap;
  font-weight: 600;
  color: var(--color-text-dark, #111827);
}

.ft-col-league {
  max-width: 200px;
}

.ft-col-time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ft-col-time i {
  margin-right: 5px;
}

.ft-col-match {
  font-weight: 600;
  color: var(--color-text-dark, #111827);
  min-width: 180px;
}

.ft-tip-badge {
  display: inline-block;
  background: var(--color-accent, #c7286f);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

.ft-tip-badge--disabled {
  background: var(--bg-lighter, #e5e7eb);
  color: var(--color-text-light, #9ca3af);
}

.ft-col-odds {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-dark, #111827);
  font-size: 15px;
}

.free-tips-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-light, #6b7280);
  font-size: 16px;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .free-tips-heading {
    font-size: 20px;
  }

  .free-tips-table thead {
    display: none;
  }

  .free-tips-table,
  .free-tips-table tbody,
  .free-tips-table tr,
  .free-tips-table td {
    display: block;
  }

  .free-tips-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-default, #e5e7eb);
  }

  .free-tips-table td {
    padding: 6px 16px;
    border: none;
    text-align: right;
  }

  .free-tips-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.03em;
    color: var(--color-text-light, #6b7280);
  }

  .ft-col-time {
    justify-content: flex-end;
  }

  .ft-col-match {
    min-width: 0;
  }
}

/* ==========================================================================
   Tips Table — Clickable Rows
   ========================================================================== */

.free-tips-table tbody tr.ft-row-link {
  cursor: pointer;
  transition: background var(--transition-fast);
}

.free-tips-table tbody tr.ft-row-link:hover {
  background: var(--bg-lighter, #f3f4f6);
}

.free-tips-table tbody tr.ft-row-link td a {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.free-tips-table tbody tr.ft-row-link td a:hover {
  color: inherit;
}

/* Tips table shortcode — make <a> tip-match look like div */
a.tip-match {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ==========================================================================
   Tips Table — In-Table Bookmaker Ad Rows
   ========================================================================== */

.ft-row-ad td {
  padding: 0 !important;
  border-bottom: 1px solid var(--border-default, #e5e7eb);
}

.ft-ad-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: linear-gradient(90deg, var(--bg-lighter, #f3f4f6) 0%, var(--bg-white, #fff) 100%);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-fast, 0.2s ease);
  border-left: 3px solid var(--color-accent, #c7286f);
}

.ft-ad-inner:hover {
  background: var(--bg-lighter, #f3f4f6);
}

.ft-ad-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent, #c7286f);
  white-space: nowrap;
}

.ft-ad-label i {
  font-size: 10px;
}

.ft-ad-logo {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.ft-ad-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius-sm, 4px);
}

.ft-ad-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-heading, #1f2937);
  white-space: nowrap;
}

.ft-ad-bonus {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--color-text-light, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.ft-ad-bonus i {
  color: var(--color-accent, #c7286f);
  font-size: 12px;
}

.ft-ad-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent, #c7286f);
  white-space: nowrap;
}

.ft-ad-rating i {
  font-size: 11px;
}

.ft-ad-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--color-accent, #c7286f);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 5px;
  white-space: nowrap;
  transition: background var(--transition-fast, 0.2s ease);
}

.ft-ad-inner:hover .ft-ad-btn {
  background: var(--color-accent-hover, #940c48);
}

.ft-ad-btn i {
  font-size: 11px;
}

@media (max-width: 768px) {
  .ft-ad-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }

  .ft-ad-bonus {
    max-width: 100%;
  }

  .ft-ad-btn {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}

/* ==========================================================================
   Single Tip — Hero Card
   ========================================================================== */

.single-tip-article {
  background: var(--bg-white, #fff);
  border-radius: var(--border-radius-lg, 12px);
  border: 1px solid var(--border-default, #e5e7eb);
  overflow: hidden;
}

.tip-hero {
  background: linear-gradient(135deg, #c7286f 0%, #940c48 100%);
  color: #fff;
  padding: 40px 48px;
  text-align: center;
}

.tip-hero__header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.tip-hero__sport,
.tip-hero__league {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.tip-hero__sport i,
.tip-hero__league i {
  font-size: 14px;
}

.tip-hero__league::before {
  content: '•';
  margin-right: 0;
  opacity: 0.5;
}

.tip-hero__matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.tip-hero__team {
  flex: 1;
  max-width: 280px;
}

.tip-hero__team-name {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tip-hero__vs {
  font-size: 16px;
  font-weight: 700;
  opacity: 0.5;
  padding: 8px 14px;
  border-radius: var(--border-radius, 8px);
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.tip-hero__details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.tip-hero__detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  opacity: 0.9;
}

.tip-hero__detail i {
  font-size: 14px;
  opacity: 0.7;
}

.tip-hero__label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.tip-hero__prediction-badge {
  display: inline-block;
  background: var(--color-accent, #c7286f);
  color: #fff;
  padding: 6px 18px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.tip-hero__odds-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-success, #10b981);
}

/* ==========================================================================
   Single Tip — Content Area
   ========================================================================== */

.tip-content {
  padding: 40px 48px;
}

.tip-content__title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-text-heading, #1f2937);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.tip-content .entry-content {
  font-size: var(--font-size-base, 16px);
  line-height: var(--line-height-base, 1.75);
  color: var(--color-text, #374151);
}

.tip-content .entry-content p {
  margin-bottom: 16px;
}

/* Author box inside tip */
.single-tip-article .author-box {
  margin: 0;
  border-top: 1px solid var(--border-default, #e5e7eb);
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

/* ==========================================================================
   Single Tip — Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .tip-hero {
    padding: 28px 20px;
  }

  .tip-hero__matchup {
    flex-direction: column;
    gap: 12px;
  }

  .tip-hero__team-name {
    font-size: 20px;
  }

  .tip-hero__vs {
    font-size: 14px;
    padding: 6px 12px;
  }

  .tip-hero__details {
    flex-direction: column;
    gap: 12px;
  }

  .tip-content {
    padding: 24px 20px;
  }

  .tip-content__title {
    font-size: 22px;
  }
}

/* ==========================================================================
   Bookmaker Ad Cards (used in free_tips table & single-tip)
   ========================================================================== */

.tip-bookmakers {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-default, #e5e7eb);
}

.tip-bookmakers__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-heading, #1f2937);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tip-bookmakers__title i {
  color: var(--color-accent, #c7286f);
  font-size: 16px;
}

.tip-bookmakers__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.tip-bk-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--bg-white, #fff);
  border: 1px solid var(--border-default, #e5e7eb);
  border-radius: var(--border-radius, 8px);
  transition: box-shadow var(--transition-fast, 0.2s ease), transform var(--transition-fast, 0.2s ease);
}

.tip-bk-card:hover {
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.06));
  transform: translateY(-2px);
}

.tip-bk-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tip-bk-card__logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

.tip-bk-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius-sm, 4px);
}

.tip-bk-card__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tip-bk-card__name {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-heading, #1f2937);
}

.tip-bk-card__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent, #c7286f);
}

.tip-bk-card__rating i {
  font-size: 11px;
}

.tip-bk-card__rating span {
  margin-left: 2px;
}

.tip-bk-card__bonus {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-lighter, #f3f4f6);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text, #374151);
}

.tip-bk-card__bonus i {
  color: var(--color-accent, #c7286f);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

.tip-bk-card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.tip-bk-card__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: background var(--transition-fast, 0.2s ease);
  white-space: nowrap;
}

.tip-bk-card__btn--primary {
  background: var(--color-accent, #c7286f);
  color: #fff;
}

.tip-bk-card__btn--primary:hover {
  background: var(--color-accent-hover, #940c48);
  color: #fff;
}

.tip-bk-card__btn--primary i {
  font-size: 12px;
}

.tip-bk-card__btn--secondary {
  background: transparent;
  color: var(--color-text-light, #6b7280);
  border: 1px solid var(--border-default, #e5e7eb);
}

.tip-bk-card__btn--secondary:hover {
  background: var(--bg-lighter, #f3f4f6);
  color: var(--color-text, #374151);
}

/* ==========================================================================
   Tips Archive Grid (archive-tip.php)
   ========================================================================== */

.tips-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.tip-archive-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  background: var(--bg-white, #fff);
  border: 1px solid var(--border-default, #e5e7eb);
  border-radius: var(--border-radius, 8px);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition-fast, 0.2s ease), transform var(--transition-fast, 0.2s ease);
}

.tip-archive-card:hover {
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.08));
  transform: translateY(-2px);
}

.tip-archive-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light, #6b7280);
}

.tip-archive-card__sport {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--color-text-dark, #111827);
}

.tip-archive-card__league {
  opacity: 0.8;
}

.tip-archive-card__matchup {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tip-archive-card__team {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-heading, #1f2937);
}

.tip-archive-card__vs {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-light, #6b7280);
  text-transform: uppercase;
}

.tip-archive-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light, #f3f4f6);
  font-size: 13px;
}

.tip-archive-card__time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-light, #6b7280);
}

.tip-archive-card__prediction {
  display: inline-block;
  background: var(--color-accent, #c7286f);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
}

.tip-archive-card__odds {
  font-weight: 700;
  color: var(--color-text-dark, #111827);
  margin-left: auto;
}

@media (max-width: 768px) {
  .tips-archive-grid {
    grid-template-columns: 1fr;
  }
}

/* Bookmakers inside free-tips-wrapper — slightly different bg */
.free-tips-wrapper .tip-bookmakers {
  border-top: none;
  margin-top: 20px;
  padding-top: 0;
}

.free-tips-wrapper .tip-bk-card {
  background: var(--bg-light, #f9fafb);
}

@media (max-width: 768px) {
  .tip-bookmakers__list {
    grid-template-columns: 1fr;
  }

  .tip-bk-card__actions {
    flex-direction: column;
  }
}

/* ==========================================================================
   Single Tip — Meta (date + author)
   ========================================================================== */

.tip-content__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #777;
}

.tip-content__meta i {
  margin-right: 4px;
}

/* ==========================================================================
   Archive Header
   ========================================================================== */

.archive-header {
  margin-bottom: 24px;
}

.archive-header__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.archive-header__title i {
  color: #c7286f;
}

.archive-header__desc {
  color: #777;
  font-size: 15px;
}

/* ==========================================================================
   Gdje gledati — Watch Table (single-tip)
   ========================================================================== */

.tip-watch {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
}

.tip-watch__title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tip-watch__title i {
  color: #c7286f;
}

.tip-watch__match {
  font-weight: 400;
  font-size: 14px;
  color: #777;
  margin-left: 6px;
}

.tip-watch__table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

.tip-watch__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.tip-watch__table thead {
  background: #f3f4f6;
}

.tip-watch__table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #777;
  border-bottom: 2px solid #e5e5e5;
}

.tip-watch__table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.tip-watch__table tbody tr:last-child td {
  border-bottom: none;
}

.tip-watch__table tbody tr:hover {
  background: #f9fafb;
}

.tip-watch__bk-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tip-watch__logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.tip-watch__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 3px;
}

.tip-watch__bk-name {
  font-weight: 700;
  color: #333;
}

.tip-watch__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #c7286f;
}

.tip-watch__rating i {
  font-size: 10px;
}

.tip-watch__bonus i {
  color: #c7286f;
  margin-right: 6px;
}

.tip-watch__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--color-accent);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.tip-watch__btn:hover {
  background: var(--color-accent-hover);
  color: #fff !important;
}

.tip-watch__btn i {
  font-size: 12px;
}

@media (max-width: 768px) {
  .tip-watch__table thead {
    display: none;
  }

  .tip-watch__table,
  .tip-watch__table tbody,
  .tip-watch__table tr,
  .tip-watch__table td {
    display: block;
  }

  .tip-watch__table tr {
    padding: 14px 0;
    border-bottom: 1px solid #e5e5e5;
  }

  .tip-watch__table td {
    padding: 8px 16px;
    border: none;
  }

  .tip-watch__cta {
    text-align: center;
  }

  .tip-watch__btn {
    width: 100%;
    justify-content: center;
  }
}
