/* Bookmakers Comparison Table Styles */

.bookmakers-comparison-table {
    font-family: 'Manrope', sans-serif;
    background: #FFFFFF;
    border-radius: 25px;
    padding: 36px;
    margin: 24px 0;
}

/* Header with Number and Title */
.comparison-table-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.comparison-table__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: #F8F8F8;
    border: 1px solid #E6E6E6;
    border-radius: 50%;
    color: #908F8F;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    flex-shrink: 0;
}

.comparison-table-title {
    font-size: 36px;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: #34363D;
    margin: 0;
    line-height: 100%;
}

/* Table Wrapper */
.comparison-table-wrapper {
    overflow-x: auto;
}

/* Table Styles */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #FFFFFF;
}

.comparison-table thead th {
    background: #F4F5F6;
    color: #34363D;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    padding: 24px 30px;
    text-align: left;
    height: 56px;
}

.comparison-table thead th:first-child {
    padding-left: 24px;
}

.comparison-table thead th:last-child {
    padding-right: 24px;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #E6E6E6;
    transition: background-color 0.2s ease;
}

.comparison-table tbody tr:nth-child(even) {
    background: #F4F5F6;
}

.comparison-table tbody tr:hover {
    background: #F9F9F9;
}

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

.comparison-table tbody td {
    padding: 20px 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    font-family: 'Manrope', sans-serif;
    color: #34363D;
    vertical-align: middle;
    text-align: left;
}

/* Bookmaker Name Cell */
.bookmaker-name-cell {
    font-weight: 600;
}

.bookmaker-logo {
    max-width: 120px;
    height: auto;
    display: block;
}

.bookmaker-title {
    font-size: 18px;
    font-weight: 600;
    color: #34363D;
}

/* Attribute Cell */
.attribute-cell {
    text-align: center;
}

.attribute-cell a {
    color: #5DB24C;
    text-decoration: none;
    transition: color 0.2s ease;
}

.attribute-cell a:hover {
    color: #4a9639;
    text-decoration: underline;
}

/* Icons */
.check-icon,
.cross-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

/* Error State */
.comparison-table-error {
    padding: 20px;
    background: #f0f6fc;
    border: 2px dashed #0783be;
    border-radius: 8px;
    text-align: center;
    color: #0783be;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 1400px) {
    .bookmakers-comparison-table {
        padding: 16px;
    }
    
    .comparison-table-title {
        font-size: 28px;
    }
    
    .comparison-table thead th {
        font-size: 16px;
        padding: 14px 20px;
    }
    
    .comparison-table tbody td {
        font-size: 14px;
        padding: 14px 20px;
    }
}

@media (max-width: 992px) {
    .bookmakers-comparison-table {
        padding: 20px;
    }
    
    .comparison-table-header {
        margin-bottom: 24px;
    }
    
    .comparison-table__number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 20px;
    }
    
    .comparison-table-title {
        font-size: 24px;
    }
    
    .comparison-table thead th {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .comparison-table tbody td {
        font-size: 13px;
        padding: 14px 16px;
    }
    
    .bookmaker-logo {
        max-width: 100px;
    }
}

@media (max-width: 768px) {
    .bookmakers-comparison-table {
        border-radius: 20px;
    }
    
    .comparison-table-header {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .comparison-table__number {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 18px;
    }
    
    .comparison-table-title {
        font-size: 20px;
    }
    
    /* Конвертируем таблицу в блоки на мобильных */
    .comparison-table-wrapper {
        overflow-x: visible;
    }
    
    .comparison-table {
        display: block;
    }
    
    .comparison-table thead {
        display: none;
    }
    
    .comparison-table tbody {
        display: block;
    }
    
    .comparison-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 2px solid #E6E6E6;
        padding: 16px;
        background: #FFFFFF;
    }
    
    .comparison-table tbody tr:hover {
        background: #FFFFFF;
    }
    
    .comparison-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        text-align: right;
    }
    
    .comparison-table tbody td:last-child {
        border-bottom: none;
    }
    
    .comparison-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #34363D;
        font-family: 'Manrope', sans-serif;
        font-size: 14px;
        text-align: left;
    }
    
    .bookmaker-name-cell {
        padding-top: 0;
        margin-bottom: 10px;
        padding-bottom: 16px !important;
    }
    
    .bookmaker-name-cell::before {
        display: none !important;
    }
    
    .bookmaker-logo {
        max-width: 80px;
    }
    
    .attribute-cell {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .bookmakers-comparison-table {
        margin: 20px 0;
    }
    
    .comparison-table-header {
        display: block;
        text-align: center;
        margin-bottom: 16px;
    }
    
    .comparison-table__number {
        margin: 0 auto 12px;
    }
    
    .comparison-table-title {
        font-size: 18px;
        margin-top: 0;
    }
    
    .comparison-table tbody tr {
        padding: 24px;
        margin-bottom: 10px;
        border-radius: 12px;
        background: #F8F8F8;
        border: none;
    }
    
    .bookmaker-name-cell {
        display: flex;
        justify-content: center;
        text-align: center;
    }
    
    .bookmaker-name-cell::before {
        display: none !important;
    }
    
    .bookmaker-logo {
        max-width: 120px;
    }
}
