/* TheSpread Sports Odds Feed Styles */
.thespread-odds-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.thespread-odds-header {
    padding: 15px 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}
.thespread-odds-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}
.thespread-odds-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.thespread-search,
.thespread-date-filter {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}
.thespread-search:focus,
.thespread-date-filter:focus {
    outline: none;
    border-color: #4a90e2;
}
.thespread-odds-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.thespread-odds-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 630px;
}
.thespread-odds-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}
.thespread-odds-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.thespread-odds-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}
.thespread-away-row {
    background: #fafafa;
}
.thespread-home-row {
    background: #fff;
}
.thespread-away-row:hover,
.thespread-home-row:hover {
    background: #f5f5f5;
}
.thespread-date-cell {
    border-right: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
}
.thespread-date {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.thespread-time {
    font-size: 12px;
    color: #666;
}
.thespread-team-cell {
    font-weight: 500;
}
.thespread-team-name {
    display: inline-block;
}
.thespread-spread-cell,
.thespread-moneyline-cell,
.thespread-total-cell {
    white-space: nowrap;
}
.thespread-date-col {
    width: 100px;
}
.thespread-matchup-col {
    width: 200px;
}
.thespread-spread-col {
    width: 115px;
}
.thespread-moneyline-col {
    width: 95px;
}
.thespread-total-col {
    width: 120px;
}
.thespread-odds-no-games,
.thespread-odds-error {
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}
.thespread-odds-error {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Futures/Outrights Styles */
.thespread-futures-grid {
    display: grid;
    gap: 20px;
    margin-top: 10px;
}

.thespread-futures-columns-1 {
    grid-template-columns: 1fr;
}

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

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

.thespread-futures-column {
    min-width: 0;
}

.thespread-futures-table {
    min-width: auto !important;
}

.thespread-competitor-col {
    width: auto;
}

.thespread-odds-col {
    width: 100px;
    text-align: right;
}

.thespread-futures-row:hover {
    background: #f5f5f5;
}

/* Mobile Card Layout - Hidden by default */
.thespread-mobile-cards {
    display: none;
}

/* Mobile Card Styles */
.thespread-game-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    overflow: hidden;
}

.thespread-game-card-header {
    background: #f8f9fa;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e0e0e0;
    gap: 8px;
}

.thespread-game-datetime {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.thespread-game-date-mobile {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    line-height: 1.2;
}

.thespread-game-time-mobile {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

.thespread-game-card-body {
    padding: 0;
}

.thespread-team-row-mobile {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.thespread-team-row-mobile:last-child {
    border-bottom: none;
}

.thespread-away-team-mobile {
    background: #fafafa;
}

.thespread-home-team-mobile {
    background: #fff;
}

.thespread-team-info-mobile {
    margin-bottom: 10px;
}

.thespread-team-name-mobile {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    display: block;
}

.thespread-odds-grid-mobile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.thespread-odd-item-mobile {
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.thespread-odd-label-mobile {
    display: block;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.thespread-odd-value-mobile {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .thespread-futures-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    /* Hide desktop table on mobile */
    .thespread-odds-table-wrapper {
        display: none;
    }
    
    /* Show mobile cards */
    .thespread-mobile-cards {
        display: block;
    }
    
    /* Adjust container padding */
    .thespread-odds-container {
        margin: 10px;
    }
    
    .thespread-odds-header h2 {
        font-size: 20px;
    }
    
    /* Full width search and filters on mobile */
    .thespread-search,
    .thespread-date-filter {
        width: 100%;
        min-width: auto;
    }
    
    /* Stack futures columns on mobile */
    .thespread-futures-columns-2,
    .thespread-futures-columns-3 {
        grid-template-columns: 1fr;
    }
    
    /* Adjust odds grid for moneyline-only sports */
    .thespread-moneyline-only .thespread-odds-grid-mobile {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    /* Extra small screens - adjust card padding */
    .thespread-team-row-mobile {
        padding: 12px;
    }
    
    .thespread-game-card-header {
        padding: 10px 12px;
    }
    
    .thespread-game-date-mobile,
    .thespread-game-time-mobile {
        font-size: 13px;
    }
    
    .thespread-team-name-mobile {
        font-size: 14px;
    }
    
    .thespread-odds-grid-mobile {
        gap: 8px;
    }
    
    .thespread-odd-item-mobile {
        padding: 6px;
    }
    
    .thespread-odd-label-mobile {
        font-size: 10px;
    }
    
    .thespread-odd-value-mobile {
        font-size: 12px;
    }
}

/* CTA Button Styles */
.thespread-cta-button {
    display: inline-block;
    padding: 6px 12px;
    background: #d32f2f;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.thespread-cta-button:hover {
    background: #b71c1c;
    color: #fff !important;
    text-decoration: none !important;
}

.thespread-cta-cell {
    text-align: center;
    padding-top: 8px;
}

/* Auto-Refresh Last Updated Indicator */
.thespread-last-updated {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.thespread-update-time {
    font-weight: 600;
    color: #333;
}

/* Preview Shortcode Styles */
.thespread-odds-preview {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    background: #fff;
}

.thespread-preview-header {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.thespread-preview-content {
    max-height: 400px;
    overflow-y: auto;
}

.thespread-preview-content .thespread-odds-table {
    min-width: auto;
    font-size: 13px;
}

.thespread-preview-content .thespread-odds-table th,
.thespread-preview-content .thespread-odds-table td {
    padding: 8px 10px;
}

.thespread-preview-link {
    display: block;
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.thespread-preview-link:hover {
    background: #e9ecef;
    color: #b71c1c;
    text-decoration: none;
}

/* Widget Styles */
.thespread-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.thespread-widget-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 10px;
    gap: 5px;
}

.thespread-widget-tab {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
}

.thespread-widget-tab:hover {
    color: #333;
    background: #f8f9fa;
}

.thespread-widget-tab.active {
    border-bottom-color: #d32f2f;
    color: #d32f2f;
}

.thespread-widget-tab-content {
    margin-bottom: 10px;
}

.thespread-widget .thespread-odds-preview {
    margin: 0;
    border: none;
    border-radius: 0;
}

.thespread-widget .thespread-preview-header {
    display: none;
}

.thespread-widget .thespread-preview-content {
    max-height: 500px;
}

.thespread-widget .thespread-odds-table {
    font-size: 11px;
}

.thespread-widget .thespread-odds-table th,
.thespread-widget .thespread-odds-table td {
    padding: 6px 8px;
}

.thespread-widget .thespread-preview-link {
    font-size: 13px;
    padding: 10px;
}

/* Widget Card Layout (Sidebar-optimized) */
.thespread-widget-cards {
    font-size: 11px;
}

.thespread-widget-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}

.thespread-widget-card-header {
    background: #f8f9fa;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 11px;
}

.thespread-widget-date {
    font-weight: 600;
    color: #333;
    font-size: 11px;
}

.thespread-widget-time {
    font-size: 10px;
    color: #666;
}

.thespread-widget-cta {
    margin-left: auto;
    font-size: 8px !important;
    padding: 3px 6px !important;
    white-space: nowrap;
}

.thespread-widget-card-body {
    padding: 0;
}

.thespread-widget-team-row {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.thespread-widget-team-row:last-child {
    border-bottom: none;
}

.thespread-widget-away {
    background: #fafafa;
}

.thespread-widget-home {
    background: #fff;
}

.thespread-widget-team-info {
    margin-bottom: 6px;
}

.thespread-widget-team-name {
    font-weight: 600;
    font-size: 12px;
    color: #333;
    display: block;
}

.thespread-widget-odds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.thespread-widget-odd-item {
    text-align: center;
    padding: 5px 2px;
    background: #f8f9fa;
    border-radius: 3px;
}

.thespread-widget-odd-label {
    display: block;
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
    font-weight: 600;
}

.thespread-widget-odd-value {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #333;
}

.thespread-widget-link {
    display: block;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    border-radius: 4px;
    transition: background 0.2s;
}

.thespread-widget-link:hover {
    background: #e9ecef;
    color: #b71c1c;
    text-decoration: none;
}

/* Moneyline-only sports adjustment */
.thespread-moneyline-only .thespread-widget-odds-grid {
    grid-template-columns: 1fr;
}

/* Print Styles */
@media print {
    .thespread-odds-filters {
        display: none;
    }
    
    .thespread-odds-table-wrapper {
        box-shadow: none;
    }
    
    .thespread-mobile-cards {
        display: none;
    }
    
    .thespread-odds-table-wrapper {
        display: block !important;
    }
}

/* CTA Button Styles */
.thespread-cta-button {
    display: inline-block;
    padding: 6px 12px;
    background: #d32f2f;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    white-space: nowrap;
}

.thespread-cta-button:hover {
    background: #b71c1c;
    color: #fff !important;
    text-decoration: none;
}

.thespread-cta-cell {
    text-align: center;
    padding-top: 8px;
}

.thespread-cta-button-mobile {
    font-size: 10px !important;
    padding: 6px 10px !important;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

/* Last Updated Timestamp */
.thespread-last-updated {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.thespread-last-updated-time {
    font-weight: 600;
    color: #333;
}

/* Preview Shortcode Styles */
.thespread-odds-preview {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    background: #fff;
}

.thespread-preview-header {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.thespread-preview-content {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
}

.thespread-preview-mobile {
    display: none;
}

.thespread-preview-desktop {
    display: block;
}

.thespread-preview-table {
    min-width: 600px !important;
}

/* Responsive preview for mobile */
@media screen and (max-width: 767px) {
    .thespread-preview-desktop {
        display: none;
    }
    
    .thespread-preview-mobile {
        display: block;
    }
    
    .thespread-preview-content {
        overflow-x: hidden;
    }
}

.thespread-preview-link {
    display: block;
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.thespread-preview-link:hover {
    background: #e9ecef;
    color: #b71c1c;
    text-decoration: none;
}

/* Widget Styles */
.thespread-widget-tabs-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.thespread-widget-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.thespread-widget-tab {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
    user-select: none;
}

.thespread-widget-tab:hover {
    color: #333;
    background: #f8f9fa;
}

.thespread-widget-tab.active {
    border-bottom-color: #d32f2f;
    color: #d32f2f;
}

.thespread-widget-tab-content {
    display: none;
}

/* Widget specific preview overrides */
.widget .thespread-odds-preview {
    margin: 0;
}

.widget .thespread-preview-header {
    font-size: 14px;
    padding: 10px 12px;
}

.widget .thespread-preview-content {
    max-height: 500px;
}

.widget .thespread-preview-table {
    font-size: 12px;
}

.widget .thespread-preview-table th,
.widget .thespread-preview-table td {
    padding: 8px;
}

.widget .thespread-preview-link {
    font-size: 13px;
    padding: 10px;
}

/* Mobile optimizations for widgets */
@media screen and (max-width: 767px) {
    .thespread-widget-tab {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .widget .thespread-preview-table {
        font-size: 11px;
    }
    
    .widget .thespread-preview-table th,
    .widget .thespread-preview-table td {
        padding: 6px;
    }
}