/** * Skin Analysis Interactive - Styles * تصميم تجربة تحليل البشرة التفاعلية */ /* =================================== Variables & Reset =================================== */ :root { --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%); --dark-bg: #1a1a1a; --dark-bg-2: #2d2d2d; --glass-bg: rgba(255, 255, 255, 0.1); --glass-border: rgba(255, 255, 255, 0.2); --text-primary: #ffffff; --text-secondary: rgba(255, 255, 255, 0.7); --accent-blue: #667eea; --accent-purple: #764ba2; --success: #10b981; --warning: #f59e0b; --danger: #ef4444; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; direction: rtl; } /* =================================== Loading Screen =================================== */ .loading-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary-gradient); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.5s ease, visibility 0.5s ease; } .loading-screen.hidden { opacity: 0; visibility: hidden; } .loading-content { text-align: center; } .loading-spinner { width: 60px; height: 60px; border: 4px solid rgba(255, 255, 255, 0.3); border-top-color: white; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; } @keyframes spin { to { transform: rotate(360deg); } } .loading-content h2 { font-size: 24px; margin-bottom: 10px; } .loading-content p { font-size: 16px; color: var(--text-secondary); } /* =================================== Main Container =================================== */ .analysis-container { max-width: 500px; margin: 0 auto; min-height: 100vh; position: relative; overflow: hidden; } /* =================================== Screens =================================== */ .screen { position: absolute; top: 0; left: 0; width: 100%; min-height: 100vh; opacity: 0; visibility: hidden; transform: translateX(100%); transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); } .screen.active { opacity: 1; visibility: visible; transform: translateX(0); position: relative; } .screen.exit-left { transform: translateX(-100%); } .screen.exit-right { transform: translateX(100%); } .screen-content { padding: 40px 20px; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; } /* =================================== Face Container =================================== */ .face-container { position: relative; width: 300px; height: 400px; margin: 0 auto 30px; border-radius: 20px; overflow: hidden; } .face-container.blurred { filter: blur(8px); opacity: 0.3; } .face-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.5) 100%); pointer-events: none; } .face-svg { width: 100%; height: 100%; } /* Detection Points */ .detection-point { animation: pulse 2s ease-in-out infinite; } @keyframes pulse { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.2); } } /* =================================== Screen 1: Detection =================================== */ .detection-result { text-align: center; margin: 30px 0; padding: 30px 20px; background: var(--glass-bg); backdrop-filter: blur(10px); border-radius: 20px; border: 1px solid var(--glass-border); } .result-title { font-size: 32px; font-weight: 700; margin-bottom: 15px; background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .result-subtitle { font-size: 16px; color: var(--text-secondary); line-height: 1.6; } /* =================================== Screen 2: Symptoms =================================== */ .symptoms-container { flex: 1; display: flex; flex-direction: column; } .symptoms-title { font-size: 36px; font-weight: 700; text-align: center; margin-bottom: 30px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); } .symptoms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 30px; } .symptom-card { background: var(--glass-bg); backdrop-filter: blur(10px); border: 2px solid var(--glass-border); border-radius: 15px; padding: 20px; text-align: center; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; } .symptom-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary-gradient); opacity: 0; transition: opacity 0.3s ease; } .symptom-card:hover { transform: translateY(-5px); border-color: var(--accent-blue); box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3); } .symptom-card.selected { border-color: var(--accent-blue); background: rgba(102, 126, 234, 0.2); } .symptom-card.selected::before { opacity: 0.1; } .symptom-icon { font-size: 32px; margin-bottom: 10px; position: relative; z-index: 1; } .symptom-name { font-size: 14px; font-weight: 600; position: relative; z-index: 1; } .symptom-checkbox { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; border: 2px solid var(--glass-border); border-radius: 50%; background: transparent; transition: all 0.3s ease; z-index: 2; } .symptom-card.selected .symptom-checkbox { background: var(--accent-blue); border-color: var(--accent-blue); } .symptom-card.selected .symptom-checkbox::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 12px; } /* =================================== Screen 3: Results =================================== */ .results-container { flex: 1; display: flex; flex-direction: column; gap: 30px; } /* Score Display */ .score-display { text-align: center; padding: 30px; background: var(--glass-bg); backdrop-filter: blur(10px); border-radius: 20px; border: 1px solid var(--glass-border); } .score-circle { display: inline-flex; align-items: baseline; justify-content: center; margin-bottom: 20px; } .score-number { font-size: 72px; font-weight: 700; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; } .score-percent { font-size: 36px; font-weight: 600; color: var(--text-secondary); margin-right: 5px; } .score-labels { display: flex; justify-content: space-between; padding: 0 20px; font-size: 14px; color: var(--text-secondary); } /* Date Section */ .date-section, .clinics-section { background: var(--glass-bg); backdrop-filter: blur(10px); border-radius: 20px; border: 1px solid var(--glass-border); padding: 20px; } .section-title { font-size: 20px; font-weight: 600; margin-bottom: 15px; } .date-buttons { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; } .date-buttons::-webkit-scrollbar { height: 4px; } .date-buttons::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 2px; } .date-btn { flex-shrink: 0; padding: 12px 20px; background: rgba(255, 255, 255, 0.05); border: 2px solid var(--glass-border); border-radius: 12px; color: var(--text-primary); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; } .date-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--accent-blue); } .date-btn.selected { background: var(--accent-blue); border-color: var(--accent-blue); } /* Clinics List */ .clinics-list { display: flex; flex-direction: column; gap: 15px; } .clinic-card { display: flex; gap: 15px; padding: 15px; background: rgba(255, 255, 255, 0.05); border-radius: 15px; border: 1px solid var(--glass-border); transition: all 0.3s ease; cursor: pointer; } .clinic-card:hover { background: rgba(255, 255, 255, 0.08); transform: translateX(-5px); } .clinic-image { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; flex-shrink: 0; } .clinic-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; } .clinic-name { font-size: 16px; font-weight: 600; margin-bottom: 5px; } .clinic-rating { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--warning); margin-bottom: 5px; } .clinic-distance { font-size: 12px; color: var(--text-secondary); } .clinic-actions { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; } .clinic-book-btn { padding: 8px 16px; background: var(--success); border: none; border-radius: 8px; color: white; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; } .clinic-book-btn:hover { background: #059669; transform: scale(1.05); } .clinic-arrow { color: var(--text-secondary); font-size: 18px; } /* =================================== Progress Indicator =================================== */ .progress-indicator { text-align: center; margin: 20px 0; } .progress-text { display: inline-block; padding: 8px 20px; background: var(--glass-bg); backdrop-filter: blur(10px); border-radius: 20px; border: 1px solid var(--glass-border); font-size: 14px; font-weight: 600; } /* =================================== Navigation Buttons =================================== */ .navigation-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 20px; } .btn { padding: 15px 30px; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn-primary { background: var(--primary-gradient); color: white; box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); } .btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6); } .btn-secondary { background: rgba(255, 255, 255, 0.1); color: white; border: 2px solid var(--glass-border); } .btn-secondary:hover { background: rgba(255, 255, 255, 0.15); } .btn-success { background: var(--success); color: white; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); } .btn-success:hover { background: #059669; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6); } .btn-text { background: transparent; color: var(--text-secondary); padding: 10px 20px; } .btn-text:hover { color: var(--text-primary); } /* =================================== Responsive Design =================================== */ @media (max-width: 480px) { .screen-content { padding: 20px 15px; } .face-container { width: 250px; height: 333px; } .result-title { font-size: 24px; } .symptoms-title { font-size: 28px; } .symptoms-grid { gap: 10px; } .symptom-card { padding: 15px; } .score-number { font-size: 56px; } .score-percent { font-size: 28px; } } /* =================================== Animations =================================== */ @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .fade-in { animation: fadeIn 0.5s ease forwards; } @keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } } .slide-in-right { animation: slideInRight 0.5s ease forwards; }