/**
 * Frontend Block Styles for Odds - Entain
 * Clean minimal style matching Entain (Sportingbet) design
 */

:root {
    --theme-brand-01: #035c8e;
    --theme-brand-02: #076da7;
    --color-white: #ffffff;
    --color-black: #000000;
}

.oe-odds-selector {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 20px 0;
}

.oe-odds-selector.oe-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Entain (Sportingbet) Clean Style */
.oe-sportingbet-style {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #d1d5db;
}

/* Event Header */
.oe-event-header {
    padding: 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.oe-event-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.oe-event-link:hover .oe-event-name {
    color: var(--theme-brand-01);
}

.oe-event-name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    transition: color 0.2s;
}

/* Header */
.oe-odds-header {
    padding: 16px 20px;
    background: #e8eaed;
    border-radius: 0;
}

.oe-sportingbet-style .oe-odds-header:first-child {
    border-radius: 12px 12px 0 0;
}

.oe-market-title-header {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

/* Content */
.oe-odds-content {
    padding: 16px 20px 20px;
    background: #ffffff;
}

.oe-market-title {
    display: none;
}

/* Odds Grid - vertical list (rows) by default */
.oe-odds-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Columns layout - grid */
.oe-layout-columns .oe-odds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.oe-odds-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}

/* Deeplink styling */
.oe-odds-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.oe-layout-columns .oe-odds-link {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
}

/* Columns layout - vertical card style */
.oe-layout-columns .oe-odds-item {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 5px;
    background: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.oe-odds-item:hover .oe-selection-name {
    color: var(--theme-brand-01);
}

.oe-odds-item.oe-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.oe-odds-item.oe-disabled:hover {
    transform: none;
}

.oe-odds-item.oe-disabled:hover .oe-selection-name {
    color: #2d3748;
}

.oe-selection-name {
    font-size: 14px;
    font-weight: 400;
    color: #2d3748;
    padding: 0;
    background: transparent;
    text-align: left;
    text-transform: none;
    flex: 1;
    transition: color 0.2s;
}

/* Columns layout - centered selection name */
.oe-layout-columns .oe-selection-name {
    text-align: center;
    flex: none;
    padding: 0;
}

.oe-odds-value {
    font-size: 15px;
    font-weight: 400;
    color: #2d3748;
    background: #ffffff;
    padding: 10px 20px;
    text-align: center;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    min-width: 70px;
    transition: all 0.2s;
}

/* Columns layout - full width odds value without border (already has container border) */
.oe-layout-columns .oe-odds-value {
    border: none;
    border-radius: 0;
    font-size: 20px;
    font-weight: 700;
    padding: 0;
    min-width: auto;
    width: 100%;
}

.oe-odds-item:hover .oe-odds-value {
    border: 2px solid color-mix(in srgb, var(--color-white) 34.3%, var(--theme-brand-01));
    box-shadow: 0 2px 4px color-mix(in srgb, var(--color-black) 26%, transparent);
    background: color-mix(in srgb, var(--theme-brand-01) 7%, var(--color-white));
}

/* Columns layout - hover on entire card */
.oe-layout-columns .oe-odds-item:hover {
    border-color: color-mix(in srgb, var(--color-white) 34.3%, var(--theme-brand-01));
    box-shadow: 0 2px 4px color-mix(in srgb, var(--color-black) 26%, transparent);
    background: color-mix(in srgb, var(--theme-brand-01) 7%, var(--color-white));
}

.oe-layout-columns .oe-odds-item:hover .oe-odds-value {
    border: none;
    background: transparent;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .oe-odds-header {
        padding: 16px 20px;
    }
    
    .oe-event-title {
        font-size: 20px;
    }
    
    .oe-odds-content {
        padding: 24px 20px 20px;
    }
    
    .oe-odds-grid {
        gap: 12px;
    }
    
    .oe-selection-name {
        font-size: 15px;
    }
    
    .oe-odds-value {
        font-size: 16px;
        padding: 10px 20px;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .oe-odds-header {
        padding: 12px 16px;
    }
    
    .oe-event-title {
        font-size: 18px;
    }
    
    .oe-odds-content {
        padding: 24px 16px 16px;
    }
    
    .oe-odds-grid {
        gap: 10px;
    }
    
    .oe-selection-name {
        font-size: 14px;
    }
    
    .oe-odds-value {
        font-size: 15px;
        padding: 8px 16px;
        min-width: 60px;
    }
}
