/* MASİAD Anket Sistemi */

/* Animasyonlar */
@keyframes bounce-once {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.animate-bounce-once {
    animation: bounce-once 0.6s ease-in-out 1;
}

@keyframes slide-in-right {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slide-in-left {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.slide-right { animation: slide-in-right 0.3s ease-out; }
.slide-left { animation: slide-in-left 0.3s ease-out; }
.fade-in { animation: fade-in 0.3s ease-out; }

/* Soru tipleri */
.option-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.875rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 0.9375rem;
    line-height: 1.4;
}
.option-card:hover {
    border-color: #9ecaf1;
    background: #f8fbff;
}
.option-card.selected {
    border-color: #1f5fa8;
    background: #e8f2fc;
}
.option-card.selected .option-indicator {
    background: #1f5fa8;
    border-color: #1f5fa8;
}
.option-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.option-indicator {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.option-indicator.checkbox {
    border-radius: 6px;
}
.option-indicator svg {
    width: 12px;
    height: 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
}
.option-card.selected .option-indicator svg {
    opacity: 1;
}

/* Rating Matrix */
.rating-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.rating-row:last-child { border-bottom: none; }
.rating-label { font-size: 0.9375rem; color: #374151; font-weight: 500; }
.rating-buttons {
    display: flex;
    gap: 0.5rem;
}
.rating-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.625rem 0.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    min-width: 0;
}
.rating-btn:hover { border-color: #9ecaf1; }
.rating-btn.selected {
    border-color: #1f5fa8;
    background: #e8f2fc;
}
.rating-btn .number {
    font-size: 1.125rem;
    font-weight: 700;
    color: #6b7280;
}
.rating-btn.selected .number { color: #1f5fa8; }
.rating-btn .label {
    font-size: 0.625rem;
    color: #9ca3af;
    text-align: center;
    line-height: 1.2;
}
.rating-btn.selected .label { color: #1f5fa8; }

/* Diğer input */
.other-input {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s;
}
.other-input:focus { border-color: #1f5fa8; }
.other-input.active { border-color: #1f5fa8; background: #f8fbff; }

/* Seçim sayacı */
.selection-counter {
    text-align: center;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.5rem;
}
.selection-counter.limit-reached { color: #f28b19; font-weight: 600; }

/* Toast */
#toast > div {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
#toast.show > div {
    transform: translateX(0);
}

/* Textarea */
.survey-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.875rem;
    font-size: 0.9375rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}
.survey-textarea:focus { border-color: #1f5fa8; }

/* Survey text input */
.survey-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.875rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.survey-input:focus { border-color: #1f5fa8; }
