/* Challenge Comparison Tool */

.cc-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin-bottom: 24px;
}

/* Selector Card */
.cc-selector-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    backdrop-filter: blur(4px);
}

.cc-label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 500;
}

.cc-search-wrap {
    position: relative;
}

.cc-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.cc-search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.cc-search-input:focus {
    border-color: rgba(122, 149, 248, 0.6);
}

.cc-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: #2a2550;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cc-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    transition: background 0.15s;
}

.cc-dropdown-item:hover {
    background: rgba(122, 149, 248, 0.2);
}

.cc-dropdown-item img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
    background: #fff;
}

.cc-dropdown-empty {
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    text-align: center;
}

.cc-selected-firm {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(122, 149, 248, 0.15);
    border: 1px solid rgba(122, 149, 248, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.cc-selected-firm img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: contain;
    background: #fff;
}

.cc-selected-firm span {
    flex: 1;
}

.cc-remove-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.cc-remove-btn:hover {
    color: #ff6b6b;
}

.cc-compare-btn {
    background: linear-gradient(135deg, #7A95F8 0%, #6453CA 100%);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.cc-compare-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cc-compare-btn i {
    margin-right: 6px;
}

/* Results */
.cc-results-container {
    margin-top: 8px;
    padding-bottom: 60px;
}

/* Comparison Table */
.cc-table-wrap {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow-x: auto;
    backdrop-filter: blur(4px);
}

.cc-table {
    width: 100%;
    border-collapse: collapse;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.cc-table thead th {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: bottom;
}

.cc-label-col {
    width: 180px;
    min-width: 140px;
}

.cc-firm-col {
    min-width: 200px;
}

.cc-firm-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cc-firm-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 4px;
}

.cc-firm-name {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.cc-firm-name:hover {
    color: #7A95F8;
    text-decoration: underline;
}

.cc-score-badge {
    display: inline-block;
    background: linear-gradient(135deg, #7A95F8, #6453CA);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.cc-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
    text-align: center;
}

.cc-label-cell {
    text-align: left !important;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.cc-section-row td {
    background: rgba(122, 149, 248, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    text-align: left;
}

.cc-highlight {
    background: rgba(65, 182, 24, 0.1);
}

.cc-best-tag {
    display: inline-block;
    background: #41b618;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    text-transform: uppercase;
}

.cc-yes {
    color: #41b618;
    font-weight: 600;
}

.cc-no {
    color: rgba(255, 255, 255, 0.35);
}

.cc-note {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.cc-muted {
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
}

.cc-stars {
    color: #f5c518;
    font-weight: 600;
}

.cc-flag {
    width: 20px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

.cc-pros-list,
.cc-cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.cc-pros-list li::before {
    content: "✓ ";
    color: #41b618;
    font-weight: 700;
}

.cc-cons-list li::before {
    content: "✗ ";
    color: #ff6b6b;
    font-weight: 700;
}

.cc-pros-list li,
.cc-cons-list li {
    padding: 2px 0;
    font-size: 13px;
    line-height: 1.4;
}

/* Offers */
.cc-offer {
    margin-bottom: 8px;
    text-align: left;
}

.cc-offer-desc {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.cc-promo-code {
    display: inline-block;
    background: rgba(122, 149, 248, 0.2);
    border: 1px dashed rgba(122, 149, 248, 0.5);
    padding: 3px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    cursor: pointer;
    color: #7A95F8;
    transition: background 0.2s;
}

.cc-promo-code:hover {
    background: rgba(122, 149, 248, 0.35);
}

/* Challenge Detail Cards */
.cc-section-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.cc-challenge-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.cc-challenge-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cc-challenge-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
}

.cc-challenge-card-header h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.cc-challenge-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.cc-detail-table {
    width: 100%;
    border-collapse: collapse;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.cc-detail-table thead th {
    padding: 10px 12px;
    text-align: left;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cc-detail-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.cc-before-price {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    margin-right: 4px;
}

.cc-actual-price {
    font-weight: 700;
    font-size: 15px;
}

.cc-no-challenges {
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 20px;
}

/* CTA Row */
.cc-cta-row {
    display: flex;
    gap: 20px;
    margin-top: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.cc-cta-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    backdrop-filter: blur(4px);
}

.cc-cta-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 4px;
    margin-bottom: 12px;
}

.cc-cta-card h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
}

.cc-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #7A95F8 0%, #6453CA 100%);
    color: #fff;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.cc-cta-btn:hover {
    color: #fff;
    opacity: 0.9;
    transform: translateY(-1px);
    text-decoration: none;
}

.cc-detail-link {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    text-decoration: none;
}

.cc-detail-link:hover {
    color: #7A95F8;
}

/* Empty State */
.cc-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.cc-empty-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
}

.cc-empty-state h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}

.cc-empty-state p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Suggestions */
.cc-suggestions {
    text-align: center;
    margin-top: 24px;
}

.cc-suggestions-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.cc-suggestion-chips {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cc-chip {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.cc-chip:hover {
    background: rgba(122, 149, 248, 0.15);
    border-color: rgba(122, 149, 248, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cc-selector-card {
        padding: 16px;
    }

    .cc-table-wrap {
        border-radius: 8px;
    }

    .cc-label-col {
        width: 110px;
        min-width: 110px;
    }

    .cc-firm-col {
        min-width: 150px;
    }

    .cc-table tbody td,
    .cc-table thead th {
        padding: 10px 10px;
        font-size: 13px;
    }

    .cc-cta-row {
        flex-direction: column;
        align-items: center;
    }

    .cc-cta-card {
        max-width: 100%;
        width: 100%;
    }

    .cc-challenge-card {
        padding: 14px;
    }

    .cc-section-title {
        font-size: 17px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cc-firm-logo {
        width: 36px;
        height: 36px;
    }

    .cc-firm-name {
        font-size: 13px;
    }

    .cc-label-col {
        width: 90px;
        min-width: 90px;
    }
}
