/* =========================================
   SEO Predictions Page Styles - Enhanced
   Premium Football Analytics Aesthetic
   For: Today's Soccer, Over 1.5, Over 2.5, BTTS, Accumulator
   ========================================= */

/* Page Container */
.seo-page-wrapper {
    padding: 20px;
}

/* Simple Category Header */
.simple-seo-header {
    background: #f1f5f9;
    padding: 32px 36px;
    margin-bottom: 28px;
    border-radius: 4px;
}

.dark-mode .simple-seo-header {
    background: #1e293b;
}

.simple-seo-header h1 {
    font-size: 24px;
    font-weight: 500;
    color: #0f172a;
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
}

.dark-mode .simple-seo-header h1 {
    color: #f8fafc;
}

.simple-seo-header p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

.dark-mode .simple-seo-header p {
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .simple-seo-header {
        padding: 24px;
    }
    .simple-seo-header h1 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    .simple-seo-header p {
        font-size: 14px;
    }
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.dark-mode .section-header {
    border-bottom-color: #334155;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.dark-mode .section-header h2 {
    color: #f1f5f9;
}

.section-header i {
    font-size: 18px;
    color: #22c55e;
}

/* =====================
   ENHANCED PREDICTION TABLE
   ===================== */

.enhanced-table-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 32px;
}

.dark-mode .enhanced-table-wrapper {
    background: #1e293b;
    border-color: #334155;
}

.enhanced-prediction-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.enhanced-prediction-table thead th {
    background: #f8fafc;
    padding: 14px 20px;
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.6px;
    border-bottom: 1px solid #e2e8f0;
}

.dark-mode .enhanced-prediction-table thead th {
    background: #0f172a;
    color: #94a3b8;
    border-bottom-color: #334155;
}

.enhanced-prediction-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.dark-mode .enhanced-prediction-table tbody tr {
    border-bottom-color: #334155;
}

.enhanced-prediction-table tbody tr:hover {
    background: #f8fafc;
}

.dark-mode .enhanced-prediction-table tbody tr:hover {
    background: #0f172a;
}

.enhanced-prediction-table tbody tr:last-child {
    border-bottom: none;
}

.enhanced-prediction-table td {
    padding: 18px 20px;
    vertical-align: middle;
}

/* Match Column */
.col-match {
    width: 32%;
}

.match-wrapper {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.match-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 12px;
    text-align: center;
    min-width: 54px;
    flex-shrink: 0;
}

.dark-mode .match-badge {
    background: #0f172a;
    border-color: #334155;
}

.match-time {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.dark-mode .match-time {
    color: #f1f5f9;
}

.match-league {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 2px;
}

.dark-mode .match-league {
    color: #94a3b8;
}

.match-info {
    flex: 1;
}

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

.team-row:last-child {
    margin-bottom: 0;
}

.team-logo {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dark-mode .team-logo {
    background: #0f172a;
    border-color: #334155;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1px;
}

.team-logo i {
    font-size: 10px;
    color: #94a3b8;
}

.team-name {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
}

.dark-mode .team-name {
    color: #f1f5f9;
}

/* Prediction Column */
.col-pred {
    width: 28%;
}

.pred-badge-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 8px 12px;
    border-radius: 6px;
}

.pred-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #22c55e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.pred-details {
    display: flex;
    flex-direction: column;
}

.pred-label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 1px;
}

.pred-value {
    font-size: 12px;
    font-weight: 500;
    color: #16a34a;
}

/* Confidence Column */
.col-conf {
    width: 20%;
    text-align: center;
}

.probability-ring {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto;
}

.probability-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pc-bg {
    stroke: #e2e8f0;
    stroke-width: 9;
    fill: none;
    opacity: 0.5;
}

.dark-mode .pc-bg {
    stroke: #334155;
}

.pc-progress {
    stroke-width: 9;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
}

.prob-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.prob-value {
    font-size: 14px;
    font-weight: 600;
    color: #22c55e;
    display: block;
}

/* Action Column */
.col-action {
    width: 20%;
    text-align: right;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dark-mode .action-btn {
    background: #0f172a;
    color: #94a3b8;
    border-color: #334155;
}

.action-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.dark-mode .action-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.action-btn i {
    font-size: 12px;
}

/* Category-Specific Accent Colors */
.category-today .hero-icon {
    background: rgba(59, 130, 246, 0.2);
}

.category-today .hero-icon i {
    color: #3b82f6;
}

.category-over-1-5 .hero-icon {
    background: rgba(34, 197, 94, 0.2);
}

.category-over-1-5 .hero-icon i {
    color: #22c55e;
}

.category-over-2-5 .hero-icon {
    background: rgba(245, 158, 11, 0.2);
}

.category-over-2-5 .hero-icon i {
    color: #f59e0b;
}

.category-btts .hero-icon {
    background: rgba(168, 85, 247, 0.2);
}

.category-btts .hero-icon i {
    color: #a855f7;
}

.category-accumulator .hero-icon {
    background: rgba(236, 72, 153, 0.2);
}

.category-accumulator .hero-icon i {
    color: #ec4899;
}

/* =====================
   ACCUMULATOR BUILDER
   ===================== */

.acca-section {
    margin-bottom: 32px;
}

.acca-section-header i {
    color: #ec4899;
}

.acca-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -6px 0 18px;
}

.acca-filter-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.dark-mode .acca-filter-btn {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

.acca-filter-btn:hover,
.acca-filter-btn.active {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border-color: transparent;
    color: #ffffff;
}

.acca-slip-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.acca-slip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.dark-mode .acca-slip {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.acca-ticket-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.dark-mode .acca-ticket-heading {
    border-bottom-color: #334155;
}

.acca-ticket-title {
    min-width: 0;
}

.acca-ticket-title > span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
}

.dark-mode .acca-ticket-title > span {
    color: #94a3b8;
}

.acca-ticket-heading h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 900;
}

.dark-mode .acca-ticket-heading h3 {
    color: #f8fafc;
}

.acca-ticket-heading p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.dark-mode .acca-ticket-heading p {
    color: #94a3b8;
}

.acca-risk {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.acca-risk-low { background: #10b981; }
.acca-risk-balanced { background: #3b82f6; }
.acca-risk-high { background: #f97316; }

.acca-ticket-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 18px 16px;
    padding: 13px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.dark-mode .acca-ticket-summary {
    border-color: #334155;
    background: #0f172a;
}

.acca-ticket-summary > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.acca-ticket-summary span {
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.acca-ticket-summary b {
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
}

.dark-mode .acca-ticket-summary span {
    color: #94a3b8;
}

.dark-mode .acca-ticket-summary b {
    color: #f8fafc;
}

.acca-leg-list {
    display: grid;
    gap: 10px;
    padding: 0 18px 18px;
}

.acca-leg {
    min-width: 0;
    display: block;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.dark-mode .acca-leg {
    border-color: #334155;
    background: #111827;
}

.acca-leg:hover {
    border-color: rgba(236, 72, 153, 0.5);
    background: #f8fafc;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.dark-mode .acca-leg:hover {
    background: #111827;
}

.acca-leg-meta {
    min-width: 0;
    padding: 9px 12px 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 9px;
    font-weight: 500;
}

.acca-leg-meta span,
.acca-leg-meta time {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acca-leg-meta time {
    flex: 0 0 auto;
}

.dark-mode .acca-leg-meta {
    color: #94a3b8;
}

.acca-leg-match {
    min-width: 0;
    padding: 7px 12px 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
}

.acca-leg-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
}

.dark-mode .acca-leg-team {
    color: #f8fafc;
}

.acca-leg-team.home {
    justify-content: flex-end;
    text-align: right;
}

.acca-leg-team strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acca-leg-logo {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    color: #94a3b8;
}

.dark-mode .acca-leg-logo {
    border-color: #334155;
    background: #1e293b;
}

.acca-leg-logo img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.acca-leg-logo i {
    font-size: 11px;
}

.acca-leg-vs {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.acca-leg-odd {
    color: #db2777;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.dark-mode .acca-leg-odd {
    color: #f472b6;
}

.acca-leg-pick {
    min-width: 0;
    margin: 0 12px;
    padding: 9px 0 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
}

.dark-mode .acca-leg-pick {
    border-top-color: #334155;
}

.acca-leg-pick > span {
    min-width: 0;
    flex: 1;
}

.acca-leg-pick small,
.acca-leg-pick strong {
    display: block;
}

.acca-leg-pick small {
    color: #64748b;
    font-size: 9px;
    font-weight: 600;
}

.acca-leg-pick strong {
    margin-top: 2px;
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.dark-mode .acca-leg-pick small {
    color: #94a3b8;
}

.dark-mode .acca-leg-pick strong {
    color: #f8fafc;
}

.acca-leg-insight {
    flex: 0 0 auto;
    text-align: right;
}

.acca-leg-insight span,
.acca-leg-insight small {
    display: block;
    white-space: nowrap;
}

.acca-leg-insight span {
    color: #10b981;
    font-size: 10px;
    font-weight: 900;
}

.acca-leg-insight small {
    margin-top: 2px;
    color: #64748b;
    font-size: 8px;
    font-weight: 600;
}

.dark-mode .acca-leg-insight small {
    color: #94a3b8;
}

.acca-leg-pick em {
    max-width: 150px;
    color: #f97316;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    text-align: right;
}

.pred-odds {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.dark-mode .pred-odds {
    color: #94a3b8;
}

/* Smart Picks category accent colours */
.category-top-predictions .hero-icon {
    background: rgba(251, 191, 36, 0.2);
}
.category-top-predictions .hero-icon i {
    color: #fbbf24;
}

.category-high-confidence .hero-icon {
    background: rgba(16, 185, 129, 0.2);
}
.category-high-confidence .hero-icon i {
    color: #10b981;
}

.category-value-odds .hero-icon {
    background: rgba(99, 102, 241, 0.2);
}
.category-value-odds .hero-icon i {
    color: #6366f1;
}

.category-ai-rated .hero-icon {
    background: rgba(14, 165, 233, 0.2);
}
.category-ai-rated .hero-icon i {
    color: #0ea5e9;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 32px;
}

.dark-mode .empty-state {
    background: #1e293b;
}

.empty-state i {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    color: #64748b;
    margin: 0 0 8px 0;
}

.empty-state p {
    color: #94a3b8;
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Info Sections */
.info-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.dark-mode .info-section {
    background: #1e293b;
}

.info-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dark-mode .info-section h3 {
    color: #f1f5f9;
}

.info-section h3 i {
    color: #22c55e;
}

.info-section p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 12px 0;
}

.dark-mode .info-section p {
    color: #94a3b8;
}

.info-section p:last-child {
    margin-bottom: 0;
}

.info-section strong {
    color: #1e293b;
}

.dark-mode .info-section strong {
    color: #f1f5f9;
}

/* Strategy List */
.strategy-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.strategy-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.dark-mode .strategy-list li {
    border-bottom-color: #334155;
}

.strategy-list li:last-child {
    border-bottom: none;
}

.strategy-list li i {
    color: #22c55e;
    margin-top: 2px;
    font-size: 14px;
}

.strategy-list li span {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.dark-mode .strategy-list li span {
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .acca-filter-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .acca-filter-row::-webkit-scrollbar {
        display: none;
    }

    .acca-filter-btn {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 11px;
    }

    .acca-slip-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .acca-ticket-heading {
        padding: 15px 14px 12px;
    }

    .acca-ticket-heading h3 {
        font-size: 15px;
    }

    .acca-ticket-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 12px 14px 14px;
        padding: 11px 12px;
    }

    .acca-leg-list {
        gap: 9px;
        padding: 0 14px 14px;
    }

    .acca-leg-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        padding: 9px 10px 5px;
    }

    .acca-leg-match {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 6px;
        padding: 7px 10px 9px;
    }

    .acca-leg-team {
        align-items: center;
        flex-direction: column;
        gap: 4px;
        font-size: 11px;
        text-align: center;
    }

    .acca-leg-team.home {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
    }

    .acca-leg-team.away {
        justify-content: center;
    }

    .acca-leg-team strong {
        width: 100%;
        text-align: center;
    }

    .acca-leg-logo {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .acca-leg-logo img {
        width: 24px;
        height: 24px;
    }

    .acca-leg-odd {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .acca-leg-pick {
        margin-right: 10px;
        margin-left: 10px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .acca-leg-pick > span {
        flex: 1 1 150px;
    }

    .acca-leg-insight {
        margin-left: auto;
    }

    .acca-leg-pick em {
        flex: 1 0 100%;
        max-width: none;
        text-align: left;
    }

    .enhanced-table-wrapper {
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .enhanced-prediction-table thead {
        display: none;
    }
    
    .enhanced-prediction-table tbody tr {
        display: block;
        padding: 16px;
        margin-bottom: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #ffffff;
    }

    .dark-mode .enhanced-prediction-table tbody tr {
        background: #1e293b;
        border-color: #334155;
    }
    
    .enhanced-prediction-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .dark-mode .enhanced-prediction-table td {
        border-bottom-color: #334155;
    }
    
    .enhanced-prediction-table td:last-child {
        border-bottom: none;
    }

    .enhanced-prediction-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: #1e293b;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
    }

    .dark-mode .enhanced-prediction-table td::before {
        color: #f1f5f9;
    }

    .col-match, .col-pred, .col-conf, .col-action {
        width: 100%;
    }

    .col-action {
        text-align: left;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .category-hero {
        padding: 20px;
    }

    .category-hero h1 {
        font-size: 22px;
    }

    .category-hero .stats-row {
        flex-wrap: wrap;
        gap: 16px;
    }
}
