/*
Theme Name: Betting Theme Max
Theme URI: https://example.com/betting-theme-max
Author: Max Semian
Author URI: https://example.com
Description: Custom WordPress theme for betting site
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: betting-theme-max
Tags: custom, betting, responsive
*/

/* === Google Fonts Import === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === CSS Variables are managed by Theme Color Manager plugin === */
/* Variables are injected via wp_head hook with priority 999 */

/* === CSS Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === General Styles === */
body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--tcm-theme-text);
    background-color: var(--tcm-theme-bg);
    margin: 0;
    padding: 0;
}

/* Remove bottom whitespace */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0 !important;
    padding: 0 !important;
}

/* Отступ под фиксированный хедер */
#page {
    padding-top: 70px;
}

.site-content {
    padding-top: 0;
}

/* Breadcrumbs styling */
.breadcrumbs {
    font-size: 14px;
    color: #888;
    padding: 10px 45px;
    background: linear-gradient(90deg, var(--tcm-hero-gradient-start, var(--tcm-hero-gradient-start, #0F172A)) 0%, var(--tcm-hero-gradient-end, var(--tcm-hero-gradient-end, #334155)) 124.56%),
    linear-gradient(0deg, rgba(0, 0, 0, var(--tcm-hero-overlay-opacity, var(--tcm-hero-overlay-opacity, 0.73))), rgba(0, 0, 0, var(--tcm-hero-overlay-opacity, var(--tcm-hero-overlay-opacity, 0.73))));
}

.breadcrumbs a {
    color: var(--tcm-accent);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 5px;
    color: #666;
}

.breadcrumbs .current {
    color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}
p {
    max-width: 1520px;
    padding: 0 40px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

ul {
    max-width: 1520px;
    padding: 0 40px;
    margin-left: auto;
    margin-right: auto;
    list-style-position: inside;
    margin-top: 4px;
    margin-bottom: 24px;
}

ul li {
    padding: 0;
    text-align: left;
    line-height: 1.6;
}

/* Ordered Lists */
ol {
    max-width: 1520px;
    padding: 0 40px;
    margin-left: auto;
    margin-right: auto;
    list-style-position: inside;
    margin-top: 4px;
    margin-bottom: 24px;
}

ol li {
    padding: 0;
    margin-bottom: 0;
    text-align: left;
    line-height: 1.6;
}
.entry-content ol li::marker, .content-area ol li::marker, .widget ol li::marker, ol li::marker {
    margin-right: 16px !important;
}

/* List marker colors are managed by Theme Color Manager plugin */

.container {
    margin: 0 auto;
    padding: 0;
}
.entry-header {
    display: none;
}

/* === Tables === */
.wp-block-table {
    border-radius: 28px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.wp-block-table table {
    border-radius: 28px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #D8D8D8;
    width: 100%;
    min-width: 1480px;
}

/* Table Header Styles */
.wp-block-table table thead tr th {
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0px;
    color: var(--tcm-table-header-text);
    background: var(--tcm-table-header-bg);
    padding: 12px 16px;
    border: 1px solid #D8D8D8;
}

.wp-block-table table thead tr:first-child th:first-child {
    border-top-left-radius: 28px;
}

.wp-block-table table thead tr:first-child th:last-child {
    border-top-right-radius: 28px;
}
.wp-block-heading {
    max-width: 1520px;
    padding: 0 40px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
    margin-bottom: 32px;
}
/* Table Body Styles */

.wp-block-table table tbody td {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0px;
    text-align: center;
    color: var(--tcm-table-odd-text);
    padding: 12px 16px;
    border: 1px solid #D8D8D8;
}

/* Links in tables */
.wp-block-table table a {
    color: var(--tcm-accent);
    text-decoration: none;
    transition: color 0.3s;
}

.wp-block-table table a:hover {
    color: var(--tcm-accent);
    text-decoration: underline;
}

/* Links in content */
.entry-content a,
.site-main a,
article a,
p a,
ul a,
ol a {
    color: var(--tcm-accent);
    text-decoration: none;
    transition: color 0.3s;
}

.entry-content a:hover,
.site-main a:hover,
article a:hover,
p a:hover,
ul a:hover,
ol a:hover {
    color: var(--tcm-accent);
    text-decoration: underline;
}

/* Even rows background */
.wp-block-table table tbody tr:nth-child(even) {
    background: var(--tcm-table-even-bg);
}

.wp-block-table table tbody tr:nth-child(even) td {
    color: var(--tcm-table-even-text);
}

/* Odd rows background */
.wp-block-table table tbody tr:nth-child(odd) {
    background: var(--tcm-table-odd-bg);
}

.wp-block-table table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 28px;
}

.wp-block-table table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 28px;
}

/* === Content === */

.content-area {
    flex: 1;
}

/* Links Styles */
.entry-content a,
.content-area a,
.post-content a,
.page-content a,
article a,
p a {
    color: var(--tcm-accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.entry-content a:hover,
.content-area a:hover,
.post-content a:hover,
.page-content a:hover,
article a:hover,
p a:hover {
    color: var(--tcm-accent-hover);
    text-decoration: underline;
}

/* === Buttons === */
.wp-block-button {
    max-width: fit-content !important;
}

.wp-block-button.has-custom-width {
    max-width: none !important;
    display: flex !important;
}

.wp-block-button.has-custom-width .wp-block-button__link {
    margin: 0 auto;
}

/* Button alignment */
.wp-block-buttons {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5em;
}

.wp-block-buttons.is-content-justification-left,
.wp-block-buttons.is-layout-flex {
    justify-content: flex-start !important;
}

.wp-block-buttons.is-content-justification-center {
    justify-content: center !important;
}

.wp-block-buttons.is-content-justification-right {
    justify-content: flex-end !important;
}

.wp-block-buttons.is-content-justification-space-between {
    justify-content: space-between !important;
}

.wp-block-button .wp-block-button__link,
.wp-block-button__link,
button,
.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 20px !important;
    background: var(--tcm-accent) !important;
    color: var(--tcm-custom-blocks-bg, var(--tcm-custom-blocks-bg, #FFFFFF)) !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: none !important;
    cursor: pointer;
    width: auto !important;
    max-width: 100%;
    white-space: nowrap;
    box-sizing: border-box;
    margin-bottom: 20px !important;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button__link:hover,
button:hover,
.button:hover {
    background: var(--tcm-accent-hover);
    color: var(--tcm-accent) !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === Footer === */
.site-footer {
    background-color: var(--tcm-footer-bg);
    color: var(--tcm-footer-text);
}
.wp-block-table {
    max-width: 1520px;
    padding: 60px 40px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    margin-bottom: 120px;
}

@media (max-width: 1024px) {
    #page {
    padding-top: 60px;
}
}

@media (max-width: 900px) {
    h1, h2 {
        text-align: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 600px) {

    .wp-block-button .wp-block-button__link,
.wp-block-button__link,
button,
.button {
    padding: 12px 16px !important;
    width: 100% !important;
    margin: 0 20px !important;
    margin-bottom: 20px !important;
}
    .wp-block-heading {
        padding: 0 20px;
        font-size: 28px;
    }
    .wp-block-table {
        padding: 0 20px;
        overflow-x: auto;
    }
    .wp-block-table table {
        min-width: 600px;
        width: auto;
    }
    .wp-block-table table thead tr th,
    .wp-block-table table tbody td {
        padding: 8px 10px;
        font-size: 14px;
    }
    p {
        padding: 0 20px;
    }
    ul {
        padding: 0 20px;
    }
    ol {
        padding: 0 20px;
    }
    ul li {
        margin-bottom: 0;
    }
    ol li {
        margin-bottom: 0;
    }
}