/* Modern Markets Section Styles */
.all-markets {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.search-bar {
    background: var(--bgDark);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--borderColor);
}

.search-bar .row {
    margin: 0;
}

.search-bar .col {
    padding: 0;
}

.search-bar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0;
    transition: all 0.3s ease;
}

.search-bar a:hover {
    color: var(--primary);
}

.all-markets-questions {
    display: grid;
    gap: 20px;
}

.all-markets-questions .row {
    margin: 0 -10px;
}

.all-markets-questions .col-lg-6 {
    padding: 0 10px;
    margin-bottom: 20px;
}

.accordion {
    border: none;
    margin-bottom: 0 !important;
}

.accordion-item {
    background: var(--white);
    border: 1px solid var(--borderColor);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    background: var(--white);
    border: none;
    border-bottom: 1px solid var(--borderColor);
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: var(--bgDark);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--borderColor);
}

.accordion-button::after {
    transition: transform 0.3s ease;
}

.accordion-button a {
    display: none;
}

.market-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.market-teams-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

.market-team-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--white);
    padding: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.market-vs-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray);
}

.accordion-collapse {
    border: none;
}

.accordion-body {
    padding: 20px;
    background: var(--white);
}

.accordion-body .row {
    margin: 0 -6px;
}

.accordion-body .col-md-6 {
    padding: 0 6px;
    margin-bottom: 12px;
}

.accordion-body button {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--borderColor);
    border-radius: 6px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
}

.accordion-body button:hover {
    border-color: var(--primary);
    background: var(--bgLight);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.accordion-body button.odd-btn-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bgDark);
    box-shadow: 0 3px 10px rgba(253, 214, 15, 0.3);
}

.accordion-body button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bgLight);
}

.accordion-body button.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--borderColor);
    background: var(--bgLight);
}

.accordion-body button i.fa-lock-alt {
    margin-right: 8px;
    font-size: 12px;
}

.accordion-body button .float-end {
    font-size: 16px;
    font-weight: 700;
    color: var(--bgDark);
}

.accordion-body button.odd-btn-active .float-end {
    color: var(--bgDark);
}

.accordion-body button.downgrade {
    background: var(--bgLight);
    border-color: var(--borderColor);
    color: var(--gray);
    cursor: default;
}

/* Dark Mode Styles */
.dark-mode .search-bar {
    background: var(--bgDark2);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .accordion-item {
    background: var(--bgDark2);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .accordion-button {
    background: var(--bgDark2);
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .accordion-button:not(.collapsed) {
    background: var(--bgDark);
    color: var(--white);
}

.dark-mode .accordion-body {
    background: var(--bgDark2);
}

.dark-mode .accordion-body button {
    background: var(--bgDark);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.dark-mode .accordion-body button:hover {
    background: rgba(253, 214, 15, 0.1);
    border-color: var(--primary);
}

.dark-mode .accordion-body button.odd-btn-active {
    background: var(--primary);
    color: var(--bgDark);
}

.dark-mode .accordion-body button.odd-btn-active .float-end {
    color: var(--bgDark);
}

.dark-mode .accordion-body button.disabled {
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .accordion-body button.downgrade {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

.dark-mode .accordion-body button .float-end {
    color: var(--white);
}

.dark-mode .accordion-body button.odd-btn-active .float-end {
    color: var(--bgDark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-bar {
        padding: 15px;
        margin-bottom: 20px;
    }

    .search-bar a {
        font-size: 16px;
    }

    .accordion-button {
        padding: 12px 15px;
        font-size: 14px;
    }

    .accordion-body {
        padding: 15px;
    }

    .accordion-body button {
        padding: 12px 14px;
        font-size: 13px;
    }

    .accordion-body button .float-end {
        font-size: 16px;
    }
}
