/* ==========================================================================
   Component Styles - AI Family Questionnaire
   ========================================================================== */

/* Decision Option Styles - MotherDuck */
.decision-option {
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.decision-option:hover {
    background-color: var(--color-primary);
    color: var(--color-text-primary);
    transform: translateY(-3px) translateX(2px);
    box-shadow: var(--shadow-bold);
}

.decision-option.selected {
    background-color: var(--color-secondary);
    color: var(--color-text-inverse);
    border-color: var(--color-border);
    box-shadow: var(--shadow-bold);
}

.decision-option.selected::before {
    content: "✓";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Progress Dot Styles - MotherDuck */
.progress-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background-color: var(--color-neutral-dark);
    border: 2px solid var(--color-border);
    transition: all 0.2s ease;
}

.progress-dot.active {
    background-color: var(--color-primary);
    border-color: var(--color-border);
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(255, 222, 0, 0.3);
}

.progress-dot.completed {
    background-color: var(--color-success);
    border-color: var(--color-border);
}

.segment-progress {
    background: var(--color-primary);
    border-radius: var(--border-radius-full);
    padding: 0.5rem 1rem;
    border: 2px solid var(--color-border);
    font-family: var(--font-heading);
    font-weight: 700;
}

@media (max-width: 640px) {
    .segment-progress {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }

    /* Reduce option padding on mobile */
    .decision-option {
        padding: 1rem;
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .decision-option.selected::before {
        right: 1rem;
        font-size: 1.25rem;
    }

    /* Optimize clip container for mobile */
    .clip-container {
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Adjust video max height on mobile */
    #video-container video {
        max-height: 50vh;
    }
}

/* Video Container - MotherDuck */
#video-container video {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    background: #000;
    border-radius: var(--border-radius);
    border: var(--border-width) solid var(--color-border);
}

/* Scene Card Styles - MotherDuck */
.scene-card {
    background: white;
    border-radius: var(--border-radius);
    border: var(--border-width) solid var(--color-border);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 6px solid var(--color-neutral-dark);
    box-shadow: var(--shadow-sm);
}

.scene-card.completed {
    border-left-color: var(--color-success);
    background-color: #f0fff6;
}

.scene-card:hover {
    transform: translateY(-3px) translateX(2px);
    box-shadow: var(--shadow-bold);
    background-color: var(--color-primary);
}

.scene-menu-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: var(--border-width) solid var(--color-border);
    background: white;
    font-weight: bold;
}

/* Modal Overlay - MotherDuck */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(56, 56, 56, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}

/* Clip Description Styles - MotherDuck */
.clip-container {
    background: #6fc2ff;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    border: var(--border-width) solid var(--color-border);
    color: var(--color-text-primary);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* Button Styles - MotherDuck */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-primary);
    border: var(--border-width) solid var(--color-border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-bold);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-inverse);
    border: var(--border-width) solid var(--color-border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-bold);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-primary);
    border: var(--border-width) solid var(--color-border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-bold);
}

/* Card Styles - MotherDuck */
.card {
    background: white;
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Badge Styles - MotherDuck */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border: 2px solid var(--color-border);
}

.badge-yellow {
    background-color: var(--color-primary);
    color: var(--color-text-primary);
}

.badge-blue {
    background-color: var(--color-secondary);
    color: var(--color-text-inverse);
}

.badge-green {
    background-color: var(--color-success);
    color: var(--color-text-inverse);
}


