/* ============================================================
   FlairTips Homepage Redesign Styles
   Clean, light-themed sports predictions layout
   ============================================================ */

/* ------ Color Variables ------ */
:root {
    --ft-bg: #eef2f7;
    --ft-white: #ffffff;
    --ft-navy: #1a3055;
    --ft-navy-light: #2b4a7e;
    --ft-blue: #2b5ea7;
    --ft-blue-hover: #1f4a8a;
    --ft-green: #3da948;
    --ft-green-light: #e6f5e8;
    --ft-gray: #7a8a9e;
    --ft-gray-light: #c5cdd8;
    --ft-border: #dce3ec;
    --ft-card-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --ft-radius: 10px;
    --ft-radius-sm: 6px;
}

/* ------ Page Background ------ */
.ft-homepage {
    background-color: var(--ft-bg);
    min-height: 100vh;
    padding-bottom: 40px;
}

/* ============================================================
   Desktop Navbar Override (light theme)
   ============================================================ */
.ft-navbar-light {
    background: var(--ft-white) !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.ft-navbar-light .logo-title img {
    height: 40px;
    width: auto;
}

.ft-navbar-light .ft-brand-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--ft-navy);
    margin-left: 8px;
    text-decoration: none;
}

.ft-navbar-light .ft-brand-text span {
    color: var(--ft-blue);
}

.ft-navbar-light #primary-menu .nav-link {
    color: var(--ft-navy) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.2s;
}

.ft-navbar-light #primary-menu .nav-link:hover,
.ft-navbar-light #primary-menu .nav-link.active {
    color: var(--ft-blue) !important;
}

.ft-nav-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.ft-nav-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ft-navy);
    color: var(--ft-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
}

.ft-nav-social a:hover {
    background: var(--ft-blue);
}

/* ============================================================
   Filter Bar
   ============================================================ */
.ft-filter-bar {
    background: var(--ft-white);
    border-radius: var(--ft-radius);
    padding: 12px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: var(--ft-card-shadow);
}

.ft-filter-tabs {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ft-filter-tabs li a {
    display: block;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ft-navy);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.ft-filter-tabs li a:hover {
    background: var(--ft-bg);
}

.ft-filter-tabs li a.active {
    border-color: var(--ft-navy);
    background: var(--ft-white);
}

.ft-filter-league-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-sm);
    font-size: 13px;
    color: var(--ft-navy);
    background: var(--ft-white);
    appearance: auto;
    cursor: pointer;
    min-width: 140px;
}

.ft-filter-search {
    margin-left: auto;
    position: relative;
}

.ft-filter-search input {
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-sm);
    font-size: 13px;
    color: var(--ft-navy);
    width: 200px;
    outline: none;
    transition: border-color 0.2s;
}

.ft-filter-search input:focus {
    border-color: var(--ft-blue);
}

.ft-filter-search .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ft-gray);
    font-size: 14px;
    pointer-events: none;
}

/* ============================================================
   Top Picks Section Header
   ============================================================ */
.ft-top-picks-header {
    margin-bottom: 18px;
}

.ft-top-picks-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ft-navy);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ft-top-picks-header .ft-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ft-green-light);
    color: var(--ft-green);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
}

.ft-top-picks-header .ft-badge svg {
    width: 14px;
    height: 14px;
}

/* ============================================================
   League Section (Accordion)
   ============================================================ */
.ft-league-section {
    background: var(--ft-white);
    border-radius: var(--ft-radius);
    margin-bottom: 16px;
    box-shadow: var(--ft-card-shadow);
    overflow: hidden;
}

.ft-league-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid var(--ft-border);
    transition: background 0.15s;
}

.ft-league-header:hover {
    background: #f8fafc;
}

.ft-league-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ft-league-header .ft-chevron {
    transition: transform 0.25s;
    color: var(--ft-gray);
    font-size: 12px;
}

.ft-league-header.collapsed .ft-chevron {
    transform: rotate(-90deg);
}

.ft-league-header .ft-league-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.ft-league-header .ft-league-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ft-navy);
}

.ft-league-header .ft-league-count {
    font-size: 13px;
    color: var(--ft-gray);
    font-weight: 400;
    margin-left: 4px;
}

.ft-league-header .ft-see-all {
    font-size: 13px;
    color: var(--ft-blue);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.ft-league-header .ft-see-all:hover {
    text-decoration: underline;
}

/* ============================================================
   Match Table
   ============================================================ */
.ft-match-table {
    width: 100%;
    border-collapse: collapse;
}

.ft-match-table thead th {
    font-size: 12px;
    font-weight: 600;
    color: var(--ft-gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--ft-border);
    text-align: left;
    white-space: nowrap;
}

.ft-match-table tbody tr {
    border-bottom: 1px solid #f0f3f7;
    transition: background 0.15s;
}

.ft-match-table tbody tr:last-child {
    border-bottom: none;
}

.ft-match-table tbody tr:hover {
    background: #f8fafc;
}

.ft-match-table td {
    padding: 12px 14px;
    font-size: 14px;
    color: var(--ft-navy);
    vertical-align: middle;
}

/* Time column */
.ft-match-table .ft-col-time {
    width: 60px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

/* Teams column */
.ft-match-table .ft-col-teams {
    min-width: 220px;
}

.ft-team-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ft-team-row img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.ft-team-row .ft-team-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--ft-navy);
}

.ft-team-vs {
    font-size: 11px;
    color: var(--ft-blue);
    font-weight: 700;
    padding-left: 30px;
    margin: 2px 0;
}

.ft-team-chevron {
    color: var(--ft-blue);
    font-size: 10px;
    margin-left: 4px;
}

/* Prediction column */
.ft-match-table .ft-col-prediction {
    font-size: 13px;
    color: var(--ft-gray);
    min-width: 120px;
}

/* Odds column */
.ft-match-table .ft-col-odds {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

/* Trust column */
.ft-match-table .ft-col-trust {
    width: 140px;
}

.ft-trust-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ft-trust-bar-track {
    flex: 1;
    height: 8px;
    background: #e8ecf0;
    border-radius: 4px;
    overflow: hidden;
    min-width: 60px;
}

.ft-trust-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--ft-green);
    transition: width 0.4s ease;
}

.ft-trust-bar-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ft-navy);
    white-space: nowrap;
    min-width: 36px;
    text-align: right;
}

/* ============================================================
   Collapsed League Row (no table, just header)
   ============================================================ */
.ft-league-section.ft-collapsed .ft-league-body {
    display: none;
}

.ft-league-section.ft-collapsed .ft-league-header {
    border-bottom: none;
}

/* ============================================================
   View All Predictions Link
   ============================================================ */
.ft-view-all {
    text-align: center;
    padding: 18px 0 8px;
}

.ft-view-all a {
    color: var(--ft-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ft-view-all a:hover {
    text-decoration: underline;
}

/* ============================================================
   Info Cards
   ============================================================ */
.ft-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.ft-info-card {
    background: var(--ft-white);
    border-radius: var(--ft-radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--ft-card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ft-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.ft-info-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    position: relative;
}

.ft-info-card-icon.icon-trust {
    background: #e3f2fd;
    color: var(--ft-blue);
}

.ft-info-card-icon.icon-tips {
    background: #fff8e1;
    color: #f9a825;
}

.ft-info-card-icon.icon-newsletter {
    background: #e8f5e9;
    color: var(--ft-green);
}

.ft-info-card-icon::after {
    content: '';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    opacity: 0.3;
}

.ft-info-card-icon.icon-trust::after {
    background: var(--ft-blue);
}

.ft-info-card-icon.icon-tips::after {
    background: #f9a825;
}

.ft-info-card-icon.icon-newsletter::after {
    background: var(--ft-green);
}

.ft-info-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ft-navy);
    margin: 0 0 8px;
}

.ft-info-card p {
    font-size: 13px;
    color: var(--ft-gray);
    margin: 0 0 16px;
    line-height: 1.5;
}

.ft-info-card .ft-btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: var(--ft-radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.ft-btn-outline {
    border: 2px solid var(--ft-navy);
    color: var(--ft-navy);
    background: transparent;
}

.ft-btn-outline:hover {
    background: var(--ft-navy);
    color: var(--ft-white);
}

.ft-btn-red {
    background: #e53935;
    color: var(--ft-white);
    border: 2px solid #e53935;
}

.ft-btn-red:hover {
    background: #c62828;
    border-color: #c62828;
}

.ft-btn-green {
    background: var(--ft-green);
    color: var(--ft-white);
    border: 2px solid var(--ft-green);
}

.ft-btn-green:hover {
    background: #2e8b37;
    border-color: #2e8b37;
}

/* ============================================================
   Match Status Badges
   ============================================================ */
.ft-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ft-status-upcoming {
    background: #e3f2fd;
    color: var(--ft-blue);
}

.ft-status-ongoing {
    background: #fff3e0;
    color: #e65100;
}

.ft-status-finished {
    background: var(--ft-green-light);
    color: var(--ft-green);
}

.ft-score-badge {
    font-weight: 700;
    font-size: 14px;
    color: var(--ft-navy);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    .ft-filter-bar {
        padding: 10px 14px;
        gap: 8px;
    }

    .ft-filter-tabs li a {
        padding: 6px 12px;
        font-size: 12px;
    }

    .ft-filter-search {
        margin-left: 0;
        width: 100%;
    }

    .ft-filter-search input {
        width: 100%;
    }

    .ft-info-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ft-nav-social {
        display: none;
    }
}

@media (max-width: 767px) {
    .ft-homepage .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ft-filter-tabs {
        flex-wrap: wrap;
    }

    .ft-league-header {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .ft-match-table .ft-col-prediction,
    .ft-match-table .ft-col-odds {
        display: none;
    }

    .ft-match-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .ft-match-table thead th {
        padding: 8px;
        font-size: 11px;
    }

    .ft-team-row img {
        width: 18px;
        height: 18px;
    }

    .ft-top-picks-header h2 {
        font-size: 18px;
    }
}

/* Hide desktop-only elements on mobile */
@media (max-width: 991px) {
    .ft-desktop-only {
        display: none !important;
    }
}
