/**
 * Hint System Styles
 * 三级梯度提示系统样式
 */

/* ==================== Hint Button ==================== */

.hint-button-container {
    display: inline-block;
}

.hint-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.hint-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.hint-btn:active:not(.disabled) {
    transform: translateY(0);
}

.hint-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.hint-btn.loading {
    pointer-events: none;
}

.hint-icon {
    font-size: 16px;
}

.hint-text {
    min-width: 40px;
    text-align: center;
}

.hint-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: hint-spin 0.8s linear infinite;
}

@keyframes hint-spin {
    to { transform: rotate(360deg); }
}


/* ==================== Hint Card ==================== */

.hint-cards-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    z-index: 1000;
    max-width: 360px;
}

.hint-card-container {
    animation: hint-card-enter 0.3s ease-out;
}

.hint-card-container.hint-card-exit {
    animation: hint-card-exit 0.3s ease-in forwards;
}

@keyframes hint-card-enter {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hint-card-exit {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.hint-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.hint-card:hover {
    transform: scale(1.02);
}

.hint-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hint-level-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.hint-level-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.hint-card-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.hint-card-close:hover {
    opacity: 1;
}

.hint-card-content {
    padding: 16px;
}

.hint-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.hint-card-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px 12px;
    font-size: 12px;
    color: #666;
}

.hint-description {
    font-style: italic;
}

/* Level-specific colors */
.hint-card.hint-level-1 .hint-card-header {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.hint-card.hint-level-2 .hint-card-header {
    background: linear-gradient(135deg, #FF9800 0%, #E65100 100%);
}

.hint-card.hint-level-3 .hint-card-header {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
}


/* ==================== Report Modal ==================== */

.report-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.report-modal-overlay.show {
    opacity: 1;
}

.report-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.report-modal-overlay.show .report-modal {
    transform: scale(1);
}

.report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.report-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.report-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.report-modal-close:hover {
    color: #333;
}

.report-modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn-cancel {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel:hover {
    background: #eee;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success state */
.report-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-success h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #333;
}

.report-success p {
    margin: 0;
    color: #666;
}


/* ==================== Report Button ==================== */

.report-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.report-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.report-icon {
    font-size: 14px;
}
