/* assets/css/quiz-styles.css */

.bb-quiz-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
    width: 100%;
    position: relative; 
}

.bb-quiz-container * {
    box-sizing: border-box;
}

/* 2 Theme's styling */
.bb-quiz-container.theme-original {
    background: #1e293b;
    border-radius: 20px;
}

.bb-quiz-container.theme-new {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    border-radius: 12px;
}

.theme-new .bb-progress-bar {
    background: white;
}

.theme-new .bb-broker-link {
    background: white;
    color: #1d4ed8 !important;
}

.theme-new .bb-broker-name {
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
 }

.theme-new .bb-top-brokers-badge {
   background: white;
   color: #1d4ed8;
   border: none;
   font-weight: 600;
   padding: 0.6rem 1rem;
}

.theme-new .bb-top-brokers-badge svg {
   stroke: #1d4ed8;
}

.theme-new .bb-profile-badge {
   background: rgba(255, 255, 255, 0.9);
   border: none;
   color: #1d4ed8;
   font-weight: 600;
   padding: 0.6rem 1rem;
}

/* Restart button fixes met hogere specificiteit */
.bb-quiz-container .bb-restart-button {
    display: inline-block;
    width: auto;
    min-width: 200px;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.bb-quiz-container .bb-restart-button:hover {
    background: rgba(255, 255, 255, .15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bb-broker-links {
    display: grid; /* Verander naar grid in plaats van flex */
    gap: 1rem;
    width: 100%;
}

.bb-top-section {
    padding: 2rem 0;
    color: #fff;
    margin-bottom: 2rem;
    width: 100%;
}

.bb-profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Verwijder alle text-decoration van broker links */
.bb-broker-link,
.bb-broker-link:hover,
.bb-broker-link:focus,
.bb-broker-link:active {
    text-decoration: none !important;
}

/* Extra specifieke regel om externe styling te overrulen */
.entry-content .bb-broker-link,
.content-area .bb-broker-link,
.site-main .bb-broker-link {
    text-decoration: none !important;
}

/* Top broker bevestigingen */
.bb-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: rgb(34, 197, 94);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.bb-result-content {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.bb-broker-link {
    width: 100%;
    max-width: 100%;
}

.bb-profile-badge svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    fill-opacity: 0.2;
}

.bb-top-brokers-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2A3441;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.bb-top-brokers-badge svg {
    width: 14px;
    height: 14px;
    stroke: #6EC1E4;
}

/* Profile section styling */
.bb-profile-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bb-profile-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.bb-quiz-title {
    margin: 0px!important;
}

.bb-question-title {
    margin: 0.5rem 0 0.5rem 0!important;
}

.bb-quiz-title {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.4;
}

/* Progress bar styling */
.bb-progress {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    margin: 1rem 0;
    border-radius: 2px;
}

.bb-progress-bar {
    height: 100%;
    background: #6EC1E4;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Button styling */
.bb-start-button,
.bb-restart-button {
    display: inline-block;
    width: auto;
    min-width: 200px;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.bb-quiz-container button:not(.bb-broker-toggle):focus, 
.bb-quiz-container button:not(.bb-broker-toggle):hover {
    color: #fff!important;
    background-color: #435066!important;
    border: 1px solid #fff!important;
}

.bb-start-button:hover,
.bb-restart-button:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Question styling */
.bb-question {
    display: none;
    margin: 2rem 0;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-question.active {
    display: block;
}

.bb-question-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.4;
}

.bb-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bb-option {
    display: block;
    width: 100%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    color: #fff !important;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    line-height: 1.4;
    font-weight: 400;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.bb-option:focus {
    outline: none;
    background: rgba(255, 255, 255, .1);
}

/* Result styling */
.bb-result {
    display: none;
    margin: 2rem 0;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-result-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.bb-result-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

.bb-broker-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bb-beste-match {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(110, 193, 228, 0.1);
    border: 1px solid rgba(110, 193, 228, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    color: #6EC1E4;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0px 0px 10px 0px;
}

/* Broker section styling */
.bb-broker-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bb-brokers-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bb-brokers-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.bb-broker-description {
    display: none;
    background: #2d3748;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
    margin-top: 1rem;
}

/* Voeg een toggle button toe */
.bb-broker-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: #6EC1E4;
    font-size: 0.85rem;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.bb-broker-toggle:hover {
    text-decoration: underline;
}

/* Voor de arrow rotatie animatie */
.bb-broker-toggle svg {
    transition: transform 0.2s ease;
}

.bb-broker-toggle.active svg {
    transform: rotate(180deg);
    background-color: none!important;
}

/* Description open state */
.bb-broker-description.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Voeg wrapper styling toe */
.bb-broker-link-wrapper {
    width: 100%;
    min-width: 0;
}

.bb-broker-link-wrapper:nth-child(1) .bb-broker-link {
    background: rgba(110, 193, 228, 0.15);
    border-color: rgba(110, 193, 228, 0.3);
}

.bb-broker-link-wrapper:nth-child(2) .bb-broker-link {
    background: rgba(255, 255, 255, 0.1);
}

.bb-broker-link-wrapper:nth-child(3) .bb-broker-link {
    background: rgba(255, 255, 255, 0.07);
}

.bb-broker-link {
    display: grid;
    grid-template-columns: 1fr auto; /* In plaats van flex */
    align-items: flex-start;
    width: 100%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-broker-info {
    min-width: 0;
    width: 100%;
}

.bb-broker-name {
    font-weight: 500;
    font-size: 1.1rem;
}

.bb-broker-match {
    font-size: 0.9rem;
    color: #6EC1E4;
}

.bb-broker-arrow {
    font-size: 1.25rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
    margin-left: 1rem;
}

.bb-broker-link:hover {
    background: rgba(255, 255, 255, .15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bb-broker-link:hover .bb-broker-arrow {
    transform: translateX(4px);
}

.bb-answers-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bb-answers-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.bb-answers-grid {
    display: grid;
    gap: 1rem;
}

.bb-answer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.bb-answer-category {
    font-weight: 500;
    color: #6EC1E4;
    min-width: 120px;
}

.bb-answer-value {
    color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styling */
@media (max-width: 768px) {

    .bb-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .bb-profile-badge,
    .bb-top-brokers-badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        font-size: 15px;
    }

    .bb-broker-description {
        display: none;
    }

    .bb-quiz-container {
        padding: 1rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .bb-top-section {
        padding: 1rem 0;
    }
    
    .bb-quiz-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .bb-question-title {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 1.25rem;
    }
    
    .bb-option {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        background: rgba(255, 255, 255, .12);
        border-color: rgba(255, 255, 255, .25);
    }
    
    .bb-broker-link {
        font-size: 0.95rem;
        background: rgba(255, 255, 255, .12);
        border-color: rgba(255, 255, 255, .25);
    }
    
    .bb-result-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .bb-result-text {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    .bb-quiz-container .bb-broker-description {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .bb-quiz-container .bb-restart-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .bb-progress {
        margin: 1.25rem 0;
    }
    
    .bb-start-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .bb-broker-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .bb-quiz-container {
        padding: 1rem;
        border-radius: 8px;
        margin: 0.25rem;
    }
    
    .bb-top-section {
        padding: 0.75rem 0;
    }
    
    .bb-quiz-title {
        font-size: 1.25rem;
    }
    
    .bb-option {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .bb-broker-link,
    .bb-option {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .bb-broker-links {
        gap: 0.75rem;
    }
    
    .bb-broker-link {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .bb-result-title {
        font-size: 1.25rem;
    }
    
    .bb-result-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .bb-progress {
        margin: 1rem 0;
    }
}

/* Improved touch targets for mobile */
@media (hover: none) {
    .bb-option,
    .bb-broker-link,
    .bb-start-button {
        min-height: 3.5rem;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    }
    
    .bb-option:active,
    .bb-broker-link:active,
    .bb-start-button:active {
        background: rgba(255, 255, 255, .2);
        transform: translateY(1px);
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .bb-option,
    .bb-broker-link,
    .bb-start-button {
        border: 2px solid rgba(255, 255, 255, .4);
        color: #ffffff !important;
        background: rgba(0, 0, 0, .3);
    }
}

/* Dark mode optimalisatie */
@media (prefers-color-scheme: dark) {
    .bb-option,
    .bb-broker-link,
    .bb-start-button {
        background: rgba(255, 255, 255, .1);
        color: #ffffff !important;
    }
}