@import 'design-system.css';

/* ============================================
   Ramen Club Error Report Styles
   現代日式極簡風格 (Modern Japanese Minimalist)
   ============================================ */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(at 0% 0%, rgba(198, 40, 40, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 179, 0, 0.03) 0px, transparent 50%);
    min-height: 100vh;
    color: var(--text-main);
    line-height: 1.6;
    padding: 20px 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeInUp 0.6s ease-out;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-main);
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Current info section */
.current-info-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.03);
}

.current-info-section h2 {
    color: var(--text-main);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card {
    background: #F8F9FA;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}

.info-card h3 {
    color: var(--text-main);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.info-item label {
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 80px;
    font-size: 14px;
}

.info-item span {
    color: var(--text-main);
    text-align: right;
    flex: 1;
    margin-left: 15px;
    font-weight: 500;
}

/* Report form */
.report-form {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.report-form h2 {
    color: var(--text-main);
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 14px;
}

.required {
    color: var(--danger-color);
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition-fast);
    background: #F9F9F9;
    color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #F0F0F0;
}

.btn-cancel,
.btn-submit {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cancel {
    background: #F0F0F0;
    color: var(--text-secondary);
}

.btn-cancel:hover {
    background: #E0E0E0;
    color: var(--text-main);
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Thank you section */
.thank-you-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.03);
}

.success-card h2 {
    color: var(--success-color);
    margin-bottom: 16px;
    font-size: 24px;
}

.success-card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 16px;
}

.btn-close {
    margin-top: 24px;
    padding: 12px 32px;
    background: var(--info-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-close:hover {
    background: #1565C0;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Loading */
.loading {
    opacity: 0.7;
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #E0E0E0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .current-info-section,
    .report-form {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .info-item span {
        text-align: left;
        margin-left: 0;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
