/**
 * Universal Feedback System Styles
 * Pitch Arcade - Feedback Modal, Buttons, and FAB
 */

/* ============================================
   FEEDBACK MODAL
   ============================================ */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-in;
}

.feedback-modal.hidden {
    display: none;
}

.feedback-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.feedback-modal-content {
    position: relative;
    background: #11171B;
    border: 2px solid #2C2C2F;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.feedback-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.feedback-modal-close {
    background: transparent;
    border: none;
    color: #94A1B2;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.feedback-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.feedback-modal-description {
    color: #94A1B2;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Form Elements */
.feedback-form-group {
    margin-bottom: 1.5rem;
}

.feedback-label {
    display: block;
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.feedback-select,
.feedback-textarea {
    width: 100%;
    padding: 0.75rem;
    background: #1A1F24;
    border: 1px solid #2C2C2F;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
}

.feedback-select:focus,
.feedback-textarea:focus {
    outline: none;
    border-color: #7F5AF0;
    box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.1);
}

.feedback-textarea {
    resize: vertical;
    min-height: 100px;
}

.feedback-textarea::placeholder {
    color: #6B7280;
}

.feedback-label-hint {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: #6B7280;
    margin-top: 0.25rem;
}

.feedback-file-input {
    width: 100%;
    padding: 0.75rem;
    background: #1A1F24;
    border: 1px solid #2C2C2F;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-file-input:hover {
    border-color: #7F5AF0;
}

.feedback-file-input:focus {
    outline: none;
    border-color: #7F5AF0;
    box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.1);
}

.feedback-file-input::file-selector-button {
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    background: #7F5AF0;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.feedback-file-input::file-selector-button:hover {
    background: #9B59B6;
}

.screenshot-preview {
    margin-top: 1rem;
    position: relative;
    border: 2px solid #2C2C2F;
    border-radius: 8px;
    overflow: hidden;
    background: #1A1F24;
}

.screenshot-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

.screenshot-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}

.screenshot-remove:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.05);
}

.feedback-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.feedback-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.feedback-btn-primary {
    background: linear-gradient(135deg, #7F5AF0 0%, #9B59B6 100%);
    color: #FFFFFF;
}

.feedback-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 90, 240, 0.4);
}

.feedback-btn-secondary {
    background: #1A1F24;
    color: #94A1B2;
    border: 1px solid #2C2C2F;
}

.feedback-btn-secondary:hover {
    background: #252F35;
    color: #FFFFFF;
}

.feedback-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   FEEDBACK FLOATING ACTION BUTTON (FAB)
   ============================================ */
#feedback-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #2C2C2F;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#feedback-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: #7F5AF0;
    background: linear-gradient(135deg, #2C2C2F 0%, #1f2937 100%);
}

#feedback-fab:active {
    transform: translateY(0);
}

/* ============================================
   FEEDBACK BUTTONS (Like/Dislike)
   ============================================ */
.committee-feedback,
.persona-feedback {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(26, 31, 36, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(44, 44, 47, 0.5);
}

.feedback-label-row {
    margin-bottom: 0.75rem;
}

.feedback-label-text {
    color: #94A1B2;
    font-size: 0.9rem;
    font-weight: 500;
}

.feedback-buttons-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.fb-btn {
    background: #1A1F24;
    border: 2px solid #2C2C2F;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.fb-btn:hover:not(:disabled) {
    transform: scale(1.1);
    border-color: currentColor;
}

.fb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fb-btn.like {
    color: #2CB67D;
}

.fb-btn.like:hover:not(:disabled) {
    background: rgba(44, 182, 125, 0.1);
    border-color: #2CB67D;
}

.fb-btn.like.active {
    background: rgba(44, 182, 125, 0.2);
    border-color: #2CB67D;
    box-shadow: 0 0 0 3px rgba(44, 182, 125, 0.1);
}

.fb-btn.dislike {
    color: #EF4444;
}

.fb-btn.dislike:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.1);
    border-color: #EF4444;
}

.fb-btn.dislike.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.fb-comment {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #0f0f0f;
    color: #FFFFFF;
    border: 1px solid #2C2C2F;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s;
}

.fb-comment:focus {
    outline: none;
    border-color: #7F5AF0;
    box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.1);
}

.fb-comment::placeholder {
    color: #6B7280;
}

.fb-save {
    margin-top: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    border: 1px solid #2C2C2F;
    background: #1A1F24;
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.fb-save:hover:not(:disabled) {
    border-color: #7F5AF0;
    box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.1);
}

.fb-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.feedback-toast {
    position: fixed;
    bottom: 100px;
    right: 24px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #FFFFFF;
    font-weight: 500;
    z-index: 10001;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
}

.feedback-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.feedback-toast-success {
    background: linear-gradient(135deg, #2CB67D 0%, #1e8e5e 100%);
    border: 1px solid #2CB67D;
}

.feedback-toast-error {
    background: linear-gradient(135deg, #EF4444 0%, #dc2626 100%);
    border: 1px solid #EF4444;
}

/* ============================================
   FEEDBACK STATISTICS
   ============================================ */
.feedback-stats-container {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(127, 90, 240, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(127, 90, 240, 0.3);
}

.feedback-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.feedback-stats-label {
    color: #94A1B2;
    font-weight: 500;
}

.feedback-stats-value {
    color: #FFFFFF;
    font-weight: 600;
}

.feedback-stats-percentage {
    color: #2CB67D;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 640px) {
    .feedback-modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .feedback-modal-title {
        font-size: 1.25rem;
    }
    
    #feedback-fab {
        bottom: 16px;
        right: 16px;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .feedback-toast {
        right: 16px;
        left: 16px;
        max-width: none;
    }
}
