/* ============================================
   SELECTABLE CARD COMPONENT
   Reusable interactive card component for forms and selections
   ============================================ */

/* Base Card */
.selectable-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    position: relative;
}


/* Ensure labels inside selectable cards also show pointer cursor */
.selectable-card label,
.selectable-card .stretched-link {
    cursor: pointer;
}

.selectable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--jackbot-green);
}

/* Selected State */
.selectable-card--selected {
    border-color: var(--jackbot-green);
    background: rgba(76, 215, 165, 0.05);
    box-shadow: 0 4px 12px rgba(76, 215, 165, 0.2);
}

/* Checkmark Overlay for Selected Cards */
.selectable-card--selected::after {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: var(--jackbot-green);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

/* Icon Container */
.selectable-card__icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.selectable-card:hover .selectable-card__icon {
    background: var(--jackbot-green);
}

.selectable-card:hover .selectable-card__icon i {
    color: #ffffff;
}

.selectable-card--selected .selectable-card__icon {
    background: var(--jackbot-green);
}

.selectable-card--selected .selectable-card__icon i {
    color: #ffffff;
}

.selectable-card__icon i {
    color: #6c757d;
    transition: color 0.2s ease;
}

/* Typography */
.selectable-card__title {
    color: #212529;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0;
}

.selectable-card__description {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ============================================
   CARD VARIATIONS
   ============================================ */

/* Goal Card Variation - with icon beside title */
.selectable-card--goal .selectable-card__icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
}

/* Choice Card Variation - centered icon */
.selectable-card--choice {
    min-height: 200px;
}

.selectable-card--choice .card-body {
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.selectable-card--choice .selectable-card__icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    margin-bottom: 20px;
}

.selectable-card--choice .selectable-card__icon i {
    width: 100%;
    display: block;
}

.selectable-card--choice:hover .selectable-card__icon {
    background: var(--jackbot-green);
}

.selectable-card--choice:hover .selectable-card__icon i {
    color: #ffffff;
}

/* Portfolio Card Variation */
.selectable-card--portfolio {
    min-height: 280px;
}

.selectable-card--portfolio .card-body {
    padding: 24px;
}

.selectable-card--portfolio .selectable-card__icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    background: rgba(76, 215, 165, 0.1);
    margin-bottom: 16px;
}

.selectable-card--portfolio:hover .selectable-card__icon {
    background: var(--jackbot-green);
}

.selectable-card--portfolio:hover .selectable-card__icon i {
    color: #ffffff;
}

/* ============================================
   CARD CONTENT ELEMENTS
   ============================================ */

/* Risk Level Indicators */
.selectable-card__risk {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    align-items: center;
}

.selectable-card__risk-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-right: 4px;
    font-weight: 500;
}

.selectable-card__risk-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.selectable-card__risk-dot--filled {
    background: #ff6b6b;
}

.selectable-card__risk-dot--empty {
    background: #e9ecef;
}

/* Badge Container */
.selectable-card__badges {
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 12px;
    padding: 8px;
}

.selectable-card__badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
    background: var(--jackbot-green) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .selectable-card__icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
    
    .selectable-card__title {
        font-size: 1rem;
    }
    
    .selectable-card--choice .selectable-card__icon {
        width: 56px;
        height: 56px;
        line-height: 56px;
    }
    
    .selectable-card--portfolio {
        min-height: auto;
    }
}
