/* ================================================
   FEEDBACK SCREEN STYLES
   ================================================ */

/* Feedback Page Layout */
.feedback-page {
    max-width: 640px;
    margin: 0 auto;
    animation: feedbackFadeIn 0.3s ease;
}

@keyframes feedbackFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page Introduction */
.feedback-intro {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 94, 169, 0.08), rgba(0, 94, 169, 0.02));
    border-radius: 12px;
    border: 1px solid rgba(0, 94, 169, 0.15);
}

.feedback-intro-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feedback-intro-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 8px 0;
}

.feedback-intro-text p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Success Card */
.feedback-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border: 1px solid rgba(76, 175, 80, 0.25);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    animation: feedbackFadeIn 0.3s ease;
    margin-bottom: 24px;
}

.success-icon-container {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon-emoji {
    font-size: 2.5rem;
    animation: feedbackSuccessPulse 2s infinite;
}

@keyframes feedbackSuccessPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.feedback-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 12px 0;
}

.feedback-success p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 24px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.feedback-success .secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Feedback Form Card */
.feedback-form-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eaeef3;
    margin-bottom: 24px;
}

/* Type Toggle */
.feedback-type-toggle {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: #f5f7fb;
    border-radius: 10px;
    margin-bottom: 20px;
}

.feedback-type-toggle .type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #777;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-type-toggle .type-btn:hover:not(.active) {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.5);
}

.feedback-type-toggle .type-btn.active[data-type="feature"] {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
    color: #f59e0b;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.feedback-type-toggle .type-btn.active[data-type="bug"] {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(244, 67, 54, 0.1));
    color: #ef4444;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

/* Type Description */
.feedback-type-description {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(255, 193, 7, 0.03));
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.feedback-type-description.bug-mode {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.08), rgba(244, 67, 54, 0.03));
    border-color: rgba(244, 67, 54, 0.2);
}

.type-desc-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feedback-type-description p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Form Fields */
.feedback-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feedback-field-group {
    display: flex;
    flex-direction: column;
}

.feedback-field-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.optional-label {
    font-weight: 400;
    color: #999;
    font-size: 0.8rem;
    margin-left: 4px;
}

.required-hint {
    font-weight: 400;
    color: #999;
    font-size: 0.75rem;
}

/* Select Field */
.feedback-select-wrapper {
    position: relative;
}

.feedback-select {
    width: 100%;
    padding: 12px 40px 12px 14px;
    background: #f9fafc;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: var(--dark);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.feedback-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 94, 169, 0.1);
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.7rem;
    pointer-events: none;
}

/* Input Field */
.feedback-input {
    width: 100%;
    padding: 12px 14px;
    background: #f9fafc;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: var(--dark);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

.feedback-input::placeholder {
    color: #aaa;
}

.feedback-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 94, 169, 0.1);
    background: white;
}

.feedback-input.valid,
.feedback-textarea.valid {
    border-color: #4CAF50;
}

.feedback-input.invalid,
.feedback-textarea.invalid {
    border-color: #ef4444;
}

/* Textarea Field */
.feedback-textarea {
    width: 100%;
    padding: 12px 14px;
    background: #f9fafc;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: var(--dark);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.feedback-textarea::placeholder {
    color: #aaa;
}

.feedback-textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 94, 169, 0.1);
    background: white;
}

.feedback-field-group .field-hint {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #999;
}

.feedback-field-group .field-hint.char-count {
    text-align: right;
    font-family: monospace;
    font-size: 0.75rem;
}

/* Submit Button */
.feedback-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    margin-top: 8px;
}

.feedback-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.feedback-submit-btn.bug-mode {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.feedback-submit-btn.bug-mode:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

.feedback-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Tips Section */
.feedback-tips-section {
    margin-top: 24px;
}

.feedback-tips-section .tips-card {
    background: white;
    border: 1px solid #eaeef3;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feedback-tips-section .tips-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-tips-section .tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-tips-section .tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.feedback-tips-section .tips-list li span {
    color: #4CAF50;
    font-weight: bold;
    flex-shrink: 0;
}

.feedback-tips-section .ideas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.feedback-tips-section .idea-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f9fafc;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #666;
    transition: all 0.2s;
}

.feedback-tips-section .idea-item:hover {
    background: #f0f2f5;
    color: var(--secondary);
}

.feedback-tips-section .idea-item span {
    font-size: 1rem;
}

/* Toast Notification */
.feedback-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.feedback-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.feedback-toast.error {
    background: #ef4444;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .feedback-page {
        padding: 0 4px;
    }

    .feedback-intro {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .feedback-intro-icon {
        margin: 0 auto;
    }

    .feedback-form-card {
        padding: 20px 16px;
    }

    .feedback-type-toggle .type-btn span:last-child {
        font-size: 0.8rem;
    }

    .feedback-tips-section .ideas-grid {
        grid-template-columns: 1fr;
    }

    .feedback-toast {
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(100px);
    }

    .feedback-toast.show {
        transform: translateX(0) translateY(0);
    }
}

@media (max-width: 480px) {
    .feedback-form-card {
        padding: 16px 12px;
    }

    .feedback-type-toggle .type-btn {
        padding: 10px 12px;
        flex-direction: column;
        gap: 4px;
    }

    .feedback-type-description {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .feedback-submit-btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

