/* ========================================================================
   ACBC — Adaptive Choice-Based Conjoint Styles
   Complements existing VASAAPPS CA glassmorphism theme
   ======================================================================== */

/* Phase Indicator */
.vc-acbc-phases {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 0 28px 0;
    padding: 16px 0;
}
.vc-acbc-phase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.vc-acbc-phase-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    background: #e5e7eb;
    color: #9ca3af;
    border: 2px solid #e5e7eb;
    transition: all 0.4s ease;
}
.vc-acbc-phase-dot.active {
    background: linear-gradient(135deg, #3a7c7c, #2d5f5f);
    color: #fff;
    border-color: #3a7c7c;
    box-shadow: 0 0 12px rgba(58, 124, 124, 0.4);
}
.vc-acbc-phase-dot.completed {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}
.vc-acbc-phase-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
    max-width: 100px;
    text-align: center;
}
.vc-acbc-phase-label.active {
    color: #3a7c7c;
    font-weight: 700;
}
.vc-acbc-phase-line {
    width: 40px;
    height: 2px;
    background: #e5e7eb;
    margin: 0 8px;
    margin-bottom: 22px;
    transition: background 0.4s ease;
}
.vc-acbc-phase-line.completed {
    background: #10b981;
}

/* Common */
.vc-acbc-container {
    animation: vcACBCfadeIn 0.4s ease;
}
@keyframes vcACBCfadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.vc-acbc-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px 0;
}
.vc-acbc-subtitle {
    text-align: center;
    font-size: 14px;
    color: #7a9494;
    margin: 0 0 24px 0;
}

/* ── BYO Phase ── */
.vc-acbc-byo-container {
    max-width: 600px;
    margin: 0 auto;
}
.vc-acbc-byo-attr-header {
    text-align: center;
    margin-bottom: 18px;
}
.vc-acbc-byo-step {
    display: inline-block;
    background: #f1f5f9;
    color: #3a7c7c;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
}
.vc-acbc-byo-attr-header h4 {
    font-size: 18px;
    color: #4a6363;
    margin: 0;
}
.vc-acbc-byo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.vc-acbc-byo-card {
    position: relative;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}
.vc-acbc-byo-card:hover {
    border-color: #3a7c7c;
    box-shadow: 0 4px 12px rgba(58, 124, 124, 0.15);
    transform: translateY(-2px);
}
.vc-acbc-byo-card.selected {
    border-color: #3a7c7c;
    background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
    box-shadow: 0 4px 16px rgba(58, 124, 124, 0.25);
}
.vc-acbc-byo-card-text {
    font-size: 15px;
    font-weight: 600;
    color: #4a6363;
}
.vc-acbc-byo-card-check {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #3a7c7c;
    color: #fff;
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.vc-acbc-byo-card.selected .vc-acbc-byo-card-check {
    display: flex;
}
.vc-acbc-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

/* ── Screening Phase ── */
.vc-acbc-screening-container {
    max-width: 550px;
    margin: 0 auto;
}
.vc-acbc-screening-progress {
    text-align: center;
    margin-bottom: 20px;
    font-size: 13px;
    color: #7a9494;
    font-weight: 600;
}
.vc-acbc-concept-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.vc-acbc-concept-attrs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vc-acbc-concept-attr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    position: relative;
}
.vc-acbc-concept-attr.ideal {
    background: rgba(58, 124, 124, 0.06);
    border-color: rgba(58, 124, 124, 0.2);
}
.vc-acbc-concept-attr-name {
    font-size: 13px;
    color: #7a9494;
    font-weight: 500;
}
.vc-acbc-concept-attr-val {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.vc-acbc-ideal-badge {
    font-size: 10px;
    color: #3a7c7c;
    font-weight: 600;
    position: absolute;
    right: 14px;
    top: -6px;
    background: #fff;
    padding: 0 6px;
    border-radius: 4px;
}
.vc-acbc-screening-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
}
.vc-acbc-btn-accept {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}
.vc-acbc-btn-accept:hover { box-shadow: 0 4px 14px rgba(16,185,129,0.35); transform: translateY(-1px); }
.vc-acbc-btn-reject {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}
.vc-acbc-btn-reject:hover { box-shadow: 0 4px 14px rgba(239,68,68,0.35); transform: translateY(-1px); }

/* ── Rules Confirmation ── */
.vc-acbc-rules-box {
    max-width: 500px;
    margin: 0 auto;
}
.vc-acbc-rules-section {
    margin-bottom: 20px;
}
.vc-acbc-rules-heading {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px 0;
}
.vc-acbc-reject-color { color: #dc2626; }
.vc-acbc-accept-color { color: #10b981; }
.vc-acbc-rule-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #e5e7eb;
}
.vc-acbc-rule-item:hover {
    background: #f1f5f9;
}
.vc-acbc-rule-check {
    width: 18px;
    height: 18px;
    accent-color: #3a7c7c;
}

/* ── Tournament Phase ── */
.vc-acbc-tournament-container {
    max-width: 700px;
    margin: 0 auto;
}
.vc-acbc-tournament-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #7a9494;
    font-weight: 600;
}
.vc-acbc-match-area {
    transition: opacity 0.4s ease;
}
.vc-acbc-matchup {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}
.vc-acbc-vs {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 900;
    color: #d1d5db;
    letter-spacing: 2px;
}
.vc-acbc-tourn-card {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.vc-acbc-tourn-card:hover {
    border-color: #3a7c7c;
    box-shadow: 0 6px 20px rgba(58, 124, 124, 0.15);
    transform: translateY(-3px);
}
.vc-acbc-tourn-card.winner {
    border-color: #10b981;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.3);
}
.vc-acbc-tourn-card.loser {
    border-color: #e5e7eb;
}
.vc-acbc-tourn-card-header {
    background: linear-gradient(135deg, #3a7c7c, #2d5f5f);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.vc-acbc-tourn-card-body {
    padding: 14px;
    flex: 1;
}
.vc-acbc-tourn-attr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
}
.vc-acbc-tourn-attr:last-child {
    border-bottom: none;
}
.vc-acbc-tourn-attr-name {
    font-size: 12px;
    color: #7a9494;
    font-weight: 500;
}
.vc-acbc-tourn-attr-val {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}
.vc-acbc-choose-btn {
    display: block;
    width: calc(100% - 24px);
    margin: 0 12px 12px 12px;
    padding: 10px;
    background: linear-gradient(135deg, #3a7c7c, #2d5f5f) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}
.vc-acbc-choose-btn:hover {
    box-shadow: 0 4px 12px rgba(58, 124, 124, 0.35);
    transform: translateY(-1px);
}

/* ── Completion ── */
.vc-acbc-complete {
    text-align: center;
    padding: 30px 20px;
}
.vc-acbc-complete-icon {
    font-size: 52px;
    margin-bottom: 12px;
}
.vc-acbc-complete h3 {
    font-size: 24px;
    color: #10b981;
    margin: 0 0 8px 0;
}
.vc-acbc-complete p {
    color: #7a9494;
    font-size: 15px;
}
.vc-acbc-final-ranking {
    margin-top: 24px;
}
.vc-acbc-final-ranking h4 {
    color: #4a6363;
    font-size: 16px;
    margin: 0 0 12px 0;
}
.vc-acbc-winner-card {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102,126,234,0.06), rgba(16,185,129,0.06));
    border: 2px solid #10b981;
    border-radius: 14px;
    padding: 16px 24px;
    text-align: left;
    min-width: 250px;
}
.vc-acbc-winner-badge {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 10px;
}

/* ── Mobile Responsive ── */
@media (max-width: 600px) {
    .vc-acbc-phases {
        flex-wrap: wrap;
        gap: 4px;
    }
    .vc-acbc-phase-line {
        width: 20px;
    }
    .vc-acbc-phase-label {
        font-size: 9px;
        max-width: 70px;
    }
    .vc-acbc-byo-cards {
        grid-template-columns: 1fr 1fr;
    }
    .vc-acbc-matchup {
        flex-direction: column;
        align-items: center;
    }
    .vc-acbc-tourn-card {
        min-width: 260px;
        max-width: 100%;
    }
    .vc-acbc-vs {
        margin: 8px 0;
    }
    .vc-acbc-screening-buttons {
        flex-direction: column;
    }
    .vc-acbc-btn-accept,
    .vc-acbc-btn-reject {
        width: 100% !important;
        min-width: 0 !important;
    }
}
