/** * Component Styles - Reusable UI component styles * Buttons, cards, modals, forms, and other interactive elements */ /* Import unified component styles */ @import url('./components-ui.css'); /* ============================================================================= UNIFIED DRS SPECIFIC STYLES ============================================================================= */ .drs-main-card { margin: 16px 0; min-height: 200px; } .drs-progress { margin-bottom: 20px; } .drs-actions { display: flex; gap: 12px; margin-top: 16px; justify-content: space-between; align-items: center; } .drs-instruction { font-size: 16px; font-weight: 600; color: #374151; margin-bottom: 16px; padding: 12px; background: #f8fafc; border-radius: 8px; border-left: 4px solid #3b82f6; } .drs-text-content, .drs-audio-content, .drs-image-content, .drs-grammar-content { padding: 8px 0; } .drs-text-passage { background: #f9fafb; padding: 16px; border-radius: 8px; margin-bottom: 16px; line-height: 1.6; color: #374151; } .drs-question { font-size: 16px; font-weight: 500; color: #111827; margin: 16px 0 12px 0; } .drs-options { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; } .drs-option { display: flex; align-items: center; gap: 8px; padding: 10px; border: 2px solid #e5e7eb; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; } .drs-option:hover { border-color: #3b82f6; background: #eff6ff; } .drs-option input { margin: 0; } .drs-audio-player { text-align: center; margin: 16px 0; } .drs-audio-player audio { width: 100%; max-width: 400px; } .drs-image-container { text-align: center; margin: 16px 0; } .drs-image { max-width: 100%; max-height: 300px; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); } .drs-sentence { font-size: 18px; line-height: 1.6; margin: 16px 0; padding: 16px; background: #f8fafc; border-radius: 8px; } .drs-blank { border: none; border-bottom: 2px solid #3b82f6; background: transparent; padding: 2px 8px; margin: 0 4px; min-width: 80px; text-align: center; font-size: inherit; color: #3b82f6; font-weight: 600; } .drs-blank:focus { outline: none; border-bottom-color: #1d4ed8; background: #eff6ff; } .drs-explanation { background: #f0f9ff; padding: 12px; border-radius: 8px; margin-top: 12px; border-left: 4px solid #0ea5e9; font-size: 14px; color: #0c4a6e; } .drs-hint-panel, .drs-result-panel { margin-top: 16px; } @media (max-width: 768px) { .drs-actions { flex-direction: column; gap: 8px; } .drs-actions > * { width: 100%; } .drs-instruction { font-size: 14px; padding: 10px; } .drs-sentence { font-size: 16px; padding: 12px; } } :root { --primary-color: #3b82f6; --accent-color: #8b5cf6; --gradient-start: #f8fafc; --gradient-end: #e2e8f0; --success-color: #10b981; --warning-color: #f59e0b; --danger-color: #ef4444; --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); } /* Coming Soon Containers */ .coming-soon-container { text-align: center; padding: 3rem 2rem; background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%); border-radius: 12px; margin: 2rem 0; border: 1px solid var(--border-light); } .coming-soon-icon { font-size: 4rem; margin-bottom: 1rem; } .coming-soon-container h3 { color: var(--primary-color); margin-bottom: 1rem; font-size: 1.5rem; } .coming-soon-container p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 1.1rem; } .coming-soon-details { background: rgba(255, 255, 255, 0.1); padding: 1.5rem; border-radius: 8px; margin-top: 2rem; backdrop-filter: blur(10px); } .coming-soon-details ul { text-align: left; max-width: 400px; margin: 1rem auto; list-style-type: none; padding: 0; } .coming-soon-details li { padding: 0.5rem 0; color: var(--text-primary); border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .coming-soon-details li:last-child { border-bottom: none; } .coming-soon-details code { background: rgba(0, 0, 0, 0.2); padding: 0.2rem 0.5rem; border-radius: 4px; font-family: 'Courier New', monospace; color: var(--accent-color); } /* Games Grid and Cards */ .games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin: 2rem 0; } .game-card { background: linear-gradient(135deg, var(--card-background) 0%, rgba(255, 255, 255, 0.05) 100%); border: 1px solid var(--border-light); border-radius: 12px; padding: 1.5rem; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; } .game-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); border-color: var(--primary-color); } .game-card.low-compatibility { opacity: 0.7; border-color: #ff6b6b; } .game-icon { font-size: 3rem; text-align: center; margin-bottom: 1rem; } .game-info h3 { color: var(--primary-color); margin-bottom: 0.5rem; font-size: 1.2rem; } .game-description { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.9rem; line-height: 1.4; } .game-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .difficulty-badge { padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; } .difficulty-beginner { background: #4ade80; color: #065f46; } .difficulty-intermediate { background: #fbbf24; color: #92400e; } .difficulty-advanced { background: #f87171; color: #991b1b; } .compatibility-score { font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 8px; } .compatibility-score.high { background: #dcfce7; color: #166534; } .compatibility-score.medium { background: #fef3c7; color: #92400e; } .compatibility-score.low { background: #fee2e2; color: #991b1b; } .compatibility-details { font-size: 0.8rem; color: var(--text-muted); font-style: italic; } .games-subtitle { color: var(--text-secondary); margin-bottom: 0.5rem; font-size: 0.9rem; } .no-games-container { text-align: center; padding: 3rem 2rem; background: var(--card-background); border-radius: 12px; margin: 2rem 0; } .no-games-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; } .no-games-container h3 { color: var(--text-primary); margin-bottom: 1rem; } .suggestions { text-align: left; max-width: 400px; margin: 1.5rem auto 0; } .suggestions ul { margin: 0.5rem 0; padding-left: 1.5rem; } .suggestions li { color: var(--text-secondary); margin: 0.25rem 0; } /* Memory Game Styles */ .memory-game { max-width: 800px; margin: 0.5rem auto; padding: 1rem; background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%); border-radius: 20px; box-shadow: var(--shadow-xl); position: relative; overflow: hidden; } .memory-game::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--success-color)); border-radius: 24px 24px 0 0; } .game-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding: 1rem 1.5rem; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: var(--shadow-lg); position: relative; } .game-header::before { content: '🎮'; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 1.5rem; background: white; padding: 0 1rem; border-radius: 50px; box-shadow: var(--shadow-md); } .game-stats { display: flex; gap: 2rem; } .stat { text-align: center; position: relative; padding: 0.5rem; } .stat-label { display: block; font-size: 0.75rem; color: #64748b; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; } .stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--primary-color); } .cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; max-width: 600px; margin-left: auto; margin-right: auto; padding: 1rem; background: rgba(255, 255, 255, 0.5); border-radius: 16px; backdrop-filter: blur(5px); } .memory-card { width: 120px; height: 120px; perspective: 1000px; cursor: pointer; position: relative; margin: 0; padding: 0; border: none; outline: none; } .card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; border-radius: 8px; margin: 0; padding: 0; } .memory-card.flipped .card-inner { transform: rotateY(180deg); } .memory-card.matched { animation: successPulse 0.8s ease-in-out; } .memory-card.matched .card-inner { transform: rotateY(180deg); background: linear-gradient(135deg, #10b981, #34d399); border-radius: 8px; } .memory-card.matched .card-back { background: linear-gradient(135deg, #10b981, #34d399); color: white; border-color: #059669; font-weight: bold; } .memory-card.removing { animation: cardDisappear 0.6s ease-in-out forwards; pointer-events: none; opacity: 0; visibility: hidden; transform: scale(0); } @keyframes successPulse { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.1); } 50% { transform: scale(1.15) rotate(5deg); } 75% { transform: scale(1.1) rotate(-5deg); } } @keyframes cardDisappear { 0% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(1.2) rotate(10deg); opacity: 0.8; } 100% { transform: scale(0) rotate(45deg); opacity: 0; visibility: hidden; } } .card-front, .card-back { position: absolute; top: 0; left: 0; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 600; text-align: center; padding: 8px; box-sizing: border-box; margin: 0; } .card-front { background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%); color: white; font-size: 1.5rem; z-index: 2; } .card-back { background: white; color: #1e293b; transform: rotateY(180deg); font-size: 0.8rem; line-height: 1.2; z-index: 1; border: 1px solid #e2e8f0; } .memory-card:hover .card-front { background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%); } /* Victory Popup - Generic for all games */ .victory-popup { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; z-index: 1000; animation: victoryFadeIn 0.5s ease-out; } .victory-content { background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); border-radius: 24px; padding: 3rem 2.5rem; max-width: 500px; width: 90%; text-align: center; box-shadow: var(--shadow-xl); border: 2px solid rgba(255, 255, 255, 0.2); position: relative; animation: victorySlideIn 0.6s ease-out 0.2s both; } .victory-content::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7); border-radius: 24px 24px 0 0; } .victory-title { font-size: 2.5rem; font-weight: 700; color: #1e293b; margin: 0 0 1rem 0; background: linear-gradient(135deg, var(--success-color), #34d399); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; } .victory-emoji { font-size: 4rem; margin-bottom: 1rem; display: block; animation: victoryBounce 1s ease-in-out infinite; } .victory-scores { margin: 2rem 0; padding: 1.5rem; background: rgba(16, 185, 129, 0.1); border-radius: 16px; border: 1px solid rgba(16, 185, 129, 0.2); } .score-item { display: flex; justify-content: space-between; align-items: center; margin: 0.75rem 0; font-size: 1.1rem; } .score-label { font-weight: 600; color: #374151; } .score-value { font-weight: 700; color: var(--success-color); } .score-value.new-best { color: #f59e0b; animation: newBestGlow 1s ease-in-out infinite; } .victory-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; justify-content: center; } .victory-btn { flex: 1; min-width: 140px; padding: 1rem 1.5rem; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem; } .victory-btn-primary { background: linear-gradient(135deg, var(--success-color), #34d399); color: white; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); } .victory-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); } .victory-btn-secondary { background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); color: white; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); } .victory-btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); } .victory-btn-tertiary { background: #f1f5f9; color: #475569; border: 2px solid #e2e8f0; } .victory-btn-tertiary:hover { background: #e2e8f0; transform: translateY(-1px); } @keyframes victoryFadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes victorySlideIn { from { opacity: 0; transform: scale(0.8) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } } @keyframes victoryBounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } } @keyframes newBestGlow { 0%, 100% { text-shadow: 0 0 5px rgba(245, 158, 11, 0.5); } 50% { text-shadow: 0 0 20px rgba(245, 158, 11, 0.8), 0 0 30px rgba(245, 158, 11, 0.4); } } .game-message { text-align: center; padding: 1.5rem 2rem; border-radius: 16px; margin: 2rem 0; font-weight: 600; font-size: 1.1rem; backdrop-filter: blur(10px); border: 2px solid rgba(255, 255, 255, 0.2); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; } .game-message::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 16px 16px 0 0; } .game-message.success { background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%); color: var(--success-color); border-color: rgba(16, 185, 129, 0.3); } .game-message.success::before { background: linear-gradient(90deg, var(--success-color), #34d399); } .game-message.info { background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%); color: var(--primary-color); border-color: rgba(59, 130, 246, 0.3); } .game-message.info::before { background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); } .game-error { text-align: center; padding: 2rem; background: #fee2e2; border: 1px solid #fecaca; border-radius: 12px; margin: 2rem 0; } .error-icon { font-size: 3rem; margin-bottom: 1rem; } .game-error h3 { color: #dc2626; margin-bottom: 1rem; } .game-error p { color: #991b1b; margin-bottom: 1.5rem; } .game-loading { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); font-size: 0.9rem; } .loading-spinner { animation: spin 1s linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .game-container { min-height: 600px; } .game-area { background: var(--card-background); border-radius: 12px; padding: 1rem; min-height: 500px; } /* Buttons */ .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 500; text-decoration: none; border: none; border-radius: 0.375rem; cursor: pointer; transition: all 0.2s ease-in-out; min-height: 44px; /* Touch-friendly minimum */ gap: 0.5rem; } .btn:disabled { opacity: 0.6; cursor: not-allowed; } /* Button Variants */ .btn-primary { background-color: #3182ce; color: white; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .btn-primary:hover:not(:disabled) { background-color: #2c5282; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3); } .btn-secondary { background-color: #edf2f7; color: #4a5568; border: 1px solid #e2e8f0; } .btn-secondary:hover:not(:disabled) { background-color: #e2e8f0; border-color: #cbd5e0; } .btn-success { background-color: #38a169; color: white; } .btn-success:hover:not(:disabled) { background-color: #2f855a; } .btn-danger { background-color: #e53e3e; color: white; } .btn-danger:hover:not(:disabled) { background-color: #c53030; } /* Button Sizes */ .btn-sm { padding: 0.5rem 1rem; font-size: 0.75rem; min-height: 36px; } .btn-lg { padding: 1rem 2rem; font-size: 1rem; min-height: 52px; } /* Cards */ .card { background: white; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); border: 1px solid #e2e8f0; overflow: hidden; transition: all 0.2s ease-in-out; } .card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transform: translateY(-2px); } .card-header { padding: 1rem; border-bottom: 1px solid #e2e8f0; background-color: #f7fafc; } .card-body { padding: 1rem; } .card-footer { padding: 1rem; border-top: 1px solid #e2e8f0; background-color: #f7fafc; } /* Grid Layout */ .grid { display: grid; gap: 1rem; } .grid-cols-1 { grid-template-columns: repeat(1, 1fr); } .grid-cols-2 { grid-template-columns: repeat(2, 1fr); } .grid-cols-3 { grid-template-columns: repeat(3, 1fr); } .grid-cols-4 { grid-template-columns: repeat(4, 1fr); } @media (max-width: 768px) { .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; } } /* Modal */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; } .modal { background: white; border-radius: 0.5rem; box-shadow: 0 20px 25px rgba(0, 0, 0, 0.25); max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; animation: modalSlideIn 0.3s ease-out; } .modal-header { padding: 1.5rem; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; } .modal-title { font-size: 1.125rem; font-weight: 600; margin: 0; } .modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #718096; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 0.25rem; } .modal-close:hover { background-color: #f7fafc; color: #2d3748; } .modal-body { padding: 1.5rem; } .modal-footer { padding: 1.5rem; border-top: 1px solid #e2e8f0; display: flex; gap: 0.5rem; justify-content: flex-end; } @keyframes modalSlideIn { from { opacity: 0; transform: translateY(-20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } } /* Forms */ .form-group { margin-bottom: 1rem; } .form-label { display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.25rem; } .form-input { width: 100%; padding: 0.75rem; font-size: 0.875rem; border: 1px solid #d1d5db; border-radius: 0.375rem; background-color: white; transition: border-color 0.2s, box-shadow 0.2s; } .form-input:focus { outline: none; border-color: #3182ce; box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1); } .form-input:invalid { border-color: #e53e3e; } .form-textarea { resize: vertical; min-height: 100px; } .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e"); background-position: right 0.5rem center; background-repeat: no-repeat; background-size: 1.5em 1.5em; padding-right: 2.5rem; } /* Progress Bar */ .progress { width: 100%; height: 0.5rem; background-color: #e2e8f0; border-radius: 0.25rem; overflow: hidden; } .progress-bar { height: 100%; background-color: #3182ce; border-radius: 0.25rem; transition: width 0.3s ease; } .progress-bar.success { background-color: #38a169; } .progress-bar.warning { background-color: #d69e2e; } .progress-bar.danger { background-color: #e53e3e; } /* Badges */ .badge { display: inline-flex; align-items: center; padding: 0.25rem 0.5rem; font-size: 0.75rem; font-weight: 500; border-radius: 0.25rem; text-transform: uppercase; letter-spacing: 0.025em; } .badge-primary { background-color: #dbeafe; color: #1e40af; } .badge-success { background-color: #d1fae5; color: #065f46; } .badge-warning { background-color: #fef3c7; color: #92400e; } .badge-danger { background-color: #fee2e2; color: #991b1b; } /* Tooltips */ .tooltip { position: relative; display: inline-block; cursor: help; } .tooltip:hover::after { content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background-color: #1a202c; color: white; padding: 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; white-space: nowrap; z-index: 1000; margin-bottom: 0.25rem; } .tooltip:hover::before { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: #1a202c; z-index: 1000; } /* Alerts */ .alert { padding: 1rem; border-radius: 0.375rem; margin-bottom: 1rem; border: 1px solid transparent; } .alert-info { background-color: #dbeafe; border-color: #bfdbfe; color: #1e40af; } .alert-success { background-color: #d1fae5; border-color: #a7f3d0; color: #065f46; } .alert-warning { background-color: #fef3c7; border-color: #fde68a; color: #92400e; } .alert-danger { background-color: #fee2e2; border-color: #fecaca; color: #991b1b; } /* Utility Classes */ .text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; } .hidden { display: none !important; } .visible { display: block !important; } .mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-4 { margin-top: 1rem; } .mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; } .p-1 { padding: 0.25rem; } .p-2 { padding: 0.5rem; } .p-4 { padding: 1rem; } .w-full { width: 100%; } .h-full { height: 100%; } .flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 0.5rem; } .gap-4 { gap: 1rem; } /* Animations */ .fade-in { animation: fadeIn 0.3s ease-in; } .slide-up { animation: slideUp 0.3s ease-out; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Hero Section Styles */ .hero-container { position: relative; min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 2rem; overflow: hidden; } .hero-background { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.12) 100%); z-index: -1; } .hero-background::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%); animation: float 6s ease-in-out infinite; } @keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } } .hero-content { text-align: center; max-width: 600px; animation: slideUp 0.8s ease-out; } .hero-icon { font-size: 4rem; margin-bottom: 1rem; animation: bounce 2s infinite; } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } } .hero-title { font-size: 3.5rem; font-weight: 700; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 1rem; line-height: 1.1; } .hero-subtitle { font-size: 1.25rem; color: #6b7280; margin-bottom: 1rem; font-weight: 500; } .hero-description { font-size: 1rem; color: #9ca3af; margin-bottom: 2.5rem; line-height: 1.6; } .action-buttons { display: flex; gap: 1rem; justify-content: center; margin-bottom: 3rem; flex-wrap: wrap; } .action-buttons .btn { padding: 1rem 2rem; font-size: 1rem; min-width: 200px; border-radius: 50px; transition: all 0.3s ease; position: relative; overflow: hidden; } .action-buttons .btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255, 255, 255, 0.1); border-radius: 50%; transform: translate(-50%, -50%); transition: all 0.3s ease; } .action-buttons .btn:hover::before { width: 300px; height: 300px; } .action-buttons .btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3); } .action-buttons .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4); } .action-buttons .btn-secondary { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); color: #4a5568; } .action-buttons .btn-secondary:hover { background: rgba(255, 255, 255, 1); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1); } .secondary-buttons { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; } .secondary-buttons .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; min-width: 140px; border-radius: 25px; transition: all 0.3s ease; } .btn-outline { background: transparent; border: 2px solid rgba(255, 255, 255, 0.3); color: #6b7280; backdrop-filter: blur(10px); } .btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(102, 126, 234, 0.5); color: #667eea; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2); } .btn-icon { font-size: 1.2em; margin-right: 0.5rem; } .btn-text { font-weight: 600; } .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin-top: 2rem; } .feature { text-align: center; padding: 1.5rem; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(15px); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.5); transition: all 0.3s ease; box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15); } .feature:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); } .feature-icon { font-size: 2.5rem; margin-bottom: 1rem; } .feature-text { font-weight: 600; color: #4a5568; font-size: 0.9rem; } @media (max-width: 768px) { .hero-title { font-size: 2.5rem; } .hero-container { min-height: 70vh; padding: 1rem; } .action-buttons { flex-direction: column; align-items: center; } .action-buttons .btn { min-width: 250px; } .secondary-buttons { flex-direction: column; align-items: center; } .secondary-buttons .btn { min-width: 200px; } } /* Books Page Styles */ .books-container { padding: 2rem 0; } .books-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; } .books-header h2 { margin: 0; color: #2d3748; font-size: 2rem; font-weight: 700; } .language-selector { display: flex; align-items: center; gap: 0.75rem; } .language-selector label { font-weight: 600; color: #4a5568; font-size: 0.9rem; } .books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; } .book-card { background: rgba(255, 255, 255, 0.9); border-radius: 16px; padding: 1.5rem; box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.5); transition: all 0.3s ease; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; } .book-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(31, 38, 135, 0.25); border-color: rgba(102, 126, 234, 0.3); } .book-cover { width: 120px; height: 160px; margin: 0 auto 1rem auto; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); } .book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; } .book-card:hover .book-cover img { transform: scale(1.05); } .book-cover-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: white; border-radius: 8px; } .book-difficulty { display: inline-block; background: rgba(102, 126, 234, 0.1); color: #4c51bf; padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; margin-top: 0.5rem; } /* Tooltip Styles */ .tooltip { position: relative; display: inline-block; } .tooltip-content { position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); border: 1px solid rgba(102, 126, 234, 0.2); border-radius: 12px; padding: 1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(102, 126, 234, 0.1); z-index: 1000; opacity: 1; visibility: visible; transition: all 0.3s ease; min-width: 280px; max-width: 350px; pointer-events: none; } .tooltip:hover .tooltip-content { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-5px); } .tooltip-content::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: rgba(255, 255, 255, 0.98); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); } .tooltip-header { font-size: 0.9rem; font-weight: 700; color: #2d3748; margin-bottom: 0.75rem; text-align: center; border-bottom: 1px solid rgba(102, 126, 234, 0.15); padding-bottom: 0.5rem; } .tooltip-stats { margin-bottom: 0.75rem; } .stat-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; font-size: 0.8rem; } .stat-label { color: #4a5568; font-weight: 500; } .stat-value { color: #2d3748; font-weight: 600; background: rgba(102, 126, 234, 0.1); padding: 0.15rem 0.4rem; border-radius: 6px; font-size: 0.75rem; } .tooltip-categories { border-top: 1px solid rgba(102, 126, 234, 0.15); padding-top: 0.75rem; } .categories-header { font-size: 0.8rem; font-weight: 600; color: #4a5568; margin-bottom: 0.4rem; } .categories-list { font-size: 0.75rem; color: #2d3748; line-height: 1.4; } /* Tooltip Sections */ .tooltip-section { margin: 10px 0; padding: 8px 0; border-top: 1px solid rgba(102, 126, 234, 0.1); } .section-header { font-size: 0.7rem; font-weight: 600; color: #4a90e2; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; } .section-content { font-size: 0.7rem; color: #666; line-height: 1.3; } /* Tooltip Tags */ .tooltip-tags { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(102, 126, 234, 0.1); } .tooltip-tags .tag { display: inline-block; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 2px 6px; border-radius: 8px; font-size: 0.6rem; font-weight: 500; margin: 2px 2px 0 0; text-transform: lowercase; } /* Version Badge */ .tooltip-header .version { background: rgba(102, 126, 234, 0.2); color: #4a90e2; padding: 1px 6px; border-radius: 8px; font-size: 0.6rem; font-weight: 500; margin-left: 8px; vertical-align: middle; } .chapter-card { position: relative; } .chapter-card:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px rgba(102, 126, 234, 0.25); border-color: rgba(102, 126, 234, 0.4); } .book-info h3 { margin: 0 0 0.5rem 0; color: #2d3748; font-size: 1.1rem; font-weight: 600; } .book-language { margin: 0 0 0.5rem 0; color: #667eea; font-size: 0.85rem; font-weight: 500; background: rgba(102, 126, 234, 0.1); padding: 0.25rem 0.5rem; border-radius: 12px; display: inline-block; } .book-description { margin: 0; color: #6b7280; font-size: 0.9rem; line-height: 1.4; } @media (max-width: 768px) { .books-header { flex-direction: column; align-items: stretch; text-align: center; } .language-selector { justify-content: center; } .books-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; } } /* Data Sync Modal Styles */ .sync-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 10000; animation: fadeIn 0.3s ease-out; } .sync-modal-content { background: white; border-radius: 16px; width: 90%; max-width: 700px; max-height: 90vh; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(102, 126, 234, 0.1); animation: slideIn 0.3s ease-out; } .sync-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; border-bottom: 1px solid #eee; background: linear-gradient(135deg, #667eea, #764ba2); color: white; } .sync-modal-header h3 { margin: 0; font-size: 1.4rem; } .close-btn { background: none; border: none; font-size: 2rem; color: white; cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background-color 0.3s ease; } .close-btn:hover { background-color: rgba(255, 255, 255, 0.2); } .sync-tabs { display: flex; background: #f8f9fa; border-bottom: 1px solid #eee; } .sync-tab { flex: 1; padding: 1rem; border: none; background: transparent; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; border-bottom: 3px solid transparent; } .sync-tab:hover { background: rgba(102, 126, 234, 0.1); } .sync-tab.active { background: white; border-bottom-color: #667eea; font-weight: 600; } .sync-tab-content { padding: 2rem; max-height: 60vh; overflow-y: auto; } .import-options { display: grid; gap: 2rem; margin-top: 1.5rem; } .import-option { padding: 1.5rem; border: 2px dashed #ddd; border-radius: 12px; transition: all 0.3s ease; } .import-option:hover { border-color: #667eea; background: rgba(102, 126, 234, 0.05); } .import-option h5 { margin: 0 0 1rem 0; color: #333; font-size: 1.1rem; } .current-progress-info { background: #f8f9fa; padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem; } .current-progress-info ul { margin: 0.5rem 0; padding-left: 1.5rem; } .current-progress-info li { margin-bottom: 0.5rem; } .export-note { background: rgba(102, 126, 234, 0.1); padding: 1rem 1.5rem; border-radius: 8px; margin-top: 1.5rem; border-left: 4px solid #667eea; } .status-overview { background: #f8f9fa; padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem; } .saved-files-list h5 { margin-bottom: 1rem; color: #333; } .saved-file-item { background: white; border: 1px solid #eee; border-radius: 8px; padding: 1rem; margin-bottom: 0.5rem; } .file-info { display: flex; flex-direction: column; gap: 0.5rem; } .file-meta { font-size: 0.9em; color: #666; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideIn { from { opacity: 0; transform: translateY(-30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } } @media (max-width: 768px) { .sync-modal-content { width: 95%; margin: 0 1rem; } .sync-modal-header { padding: 1rem 1.5rem; } .sync-tab-content { padding: 1.5rem; } .import-options { gap: 1.5rem; } } /* Chapters Page Styles */ .chapters-container { padding: 2rem 0; } .chapters-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; } .chapters-header h2 { margin: 0; color: #2d3748; font-size: 1.8rem; font-weight: 700; } .chapters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; } .chapter-card { background: rgba(255, 255, 255, 0.9); border-radius: 16px; padding: 1.5rem; box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.5); transition: all 0.3s ease; cursor: pointer; display: flex; align-items: center; gap: 1rem; } .chapter-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(31, 38, 135, 0.25); border-color: rgba(102, 126, 234, 0.3); } .chapter-number { width: 60px; height: 60px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; flex-shrink: 0; box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); } .chapter-info { flex: 1; min-width: 0; } .chapter-info h3 { margin: 0 0 0.5rem 0; color: #2d3748; font-size: 1.1rem; font-weight: 600; line-height: 1.3; } .chapter-description { margin: 0 0 1rem 0; color: #6b7280; font-size: 0.9rem; line-height: 1.4; } .chapter-meta { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; } .difficulty-badge { padding: 0.25rem 0.5rem; border-radius: 12px; font-size: 0.75rem; font-weight: 500; text-transform: capitalize; } .difficulty-beginner { background: rgba(34, 197, 94, 0.1); color: #059669; } .difficulty-intermediate { background: rgba(245, 158, 11, 0.1); color: #d97706; } .difficulty-advanced { background: rgba(239, 68, 68, 0.1); color: #dc2626; } .language-badge { padding: 0.25rem 0.5rem; border-radius: 12px; font-size: 0.75rem; font-weight: 500; background: rgba(102, 126, 234, 0.1); color: #667eea; } .chapter-progress { display: flex; align-items: center; gap: 0.75rem; } .chapter-progress .progress { flex: 1; height: 6px; background-color: #e5e7eb; border-radius: 3px; overflow: hidden; } .progress-text { font-size: 0.8rem; color: #9ca3af; font-weight: 500; white-space: nowrap; } @media (max-width: 768px) { .chapters-header { flex-direction: column; align-items: stretch; gap: 1rem; } .chapters-grid { grid-template-columns: 1fr; gap: 1rem; } .chapter-card { flex-direction: column; text-align: center; gap: 1rem; } .chapter-number { width: 50px; height: 50px; font-size: 1.2rem; } } /* Games Page Styles */ .games-container { padding: 2rem 0; } .games-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; } .games-header h2 { margin: 0; color: #2d3748; font-size: 1.8rem; font-weight: 700; } .games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; } .game-card { background: rgba(255, 255, 255, 0.9); border-radius: 16px; padding: 1.5rem; box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.5); transition: all 0.3s ease; cursor: pointer; display: flex; align-items: center; gap: 1rem; } .game-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(31, 38, 135, 0.25); border-color: rgba(102, 126, 234, 0.3); } .game-icon { font-size: 3rem; flex-shrink: 0; } .game-info { flex: 1; min-width: 0; } .game-info h3 { margin: 0 0 0.5rem 0; color: #2d3748; font-size: 1.1rem; font-weight: 600; line-height: 1.3; } .game-description { margin: 0 0 1rem 0; color: #6b7280; font-size: 0.9rem; line-height: 1.4; } .game-meta { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; } .play-count { font-size: 0.8rem; color: #9ca3af; font-weight: 500; } /* Game Container Styles */ .game-container { padding: 1rem 0; } .game-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; } .game-header h2 { margin: 0; color: #2d3748; font-size: 1.5rem; font-weight: 700; } .game-area { min-height: 400px; background: rgba(255, 255, 255, 0.9); border-radius: 16px; padding: 1rem; box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.5); } @media (max-width: 768px) { .games-header { flex-direction: column; align-items: stretch; gap: 1rem; } .games-grid { grid-template-columns: 1fr; gap: 1rem; } .game-card { flex-direction: column; text-align: center; gap: 1rem; } .game-header { flex-direction: column; align-items: stretch; gap: 1rem; } } /* Dynamic Revision System Styles */ .dynamic-revision-container { max-width: 1200px; margin: 0 auto; padding: 20px; } .revision-header { text-align: center; margin-bottom: 30px; } .revision-header h2 { color: var(--primary-color); margin-bottom: 10px; } .revision-subtitle { color: var(--text-secondary); font-size: 1.1rem; } .revision-controls { background: var(--card-background); border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .dropdown-container { display: flex; gap: 20px; margin-bottom: 20px; } .dropdown-group { flex: 1; } .dropdown-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-primary); } .revision-start { text-align: center; } .btn-disabled { opacity: 0.5; cursor: not-allowed !important; background-color: #cccccc !important; } .revision-viewport { background: var(--card-background); border-radius: 12px; padding: 40px; min-height: 400px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .viewport-placeholder { text-align: center; color: var(--text-secondary); } .placeholder-icon { font-size: 4rem; margin-bottom: 20px; } .exercise-types-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 30px; } .exercise-type { padding: 15px; background: rgba(var(--primary-color-rgb), 0.1); border-radius: 8px; font-weight: 500; } .chapter-preview { text-align: center; } .preview-header { margin-bottom: 30px; } .preview-header h3 { color: var(--primary-color); margin-bottom: 10px; } .exercise-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; } .exercise-preview-card { background: rgba(var(--primary-color-rgb), 0.05); border: 2px solid rgba(var(--primary-color-rgb), 0.1); border-radius: 12px; padding: 20px; text-align: center; transition: transform 0.2s; } .exercise-preview-card:hover { transform: translateY(-2px); border-color: rgba(var(--primary-color-rgb), 0.3); } .exercise-icon { font-size: 2rem; margin-bottom: 10px; } .exercise-preview-card h4 { color: var(--primary-color); margin-bottom: 8px; } .exercise-preview-card p { color: var(--text-secondary); font-size: 0.9rem; } .revision-active { text-align: center; } .revision-status { background: rgba(var(--success-color-rgb, 34, 197, 94), 0.1); border-radius: 8px; padding: 20px; margin-bottom: 30px; } .revision-status h3 { color: var(--success-color, #22c55e); margin-bottom: 15px; } .revision-placeholder { padding: 40px; border: 2px dashed var(--border-color); border-radius: 12px; color: var(--text-secondary); } .revision-placeholder .loading-spinner { font-size: 3rem; margin-bottom: 20px; animation: pulse 2s ease-in-out infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } @media (max-width: 768px) { .dropdown-container { flex-direction: column; } .exercise-preview-grid { grid-template-columns: 1fr; } } /* Chapter statistics styling */ .chapter-stats { display: flex; gap: 15px; justify-content: center; margin: 15px 0; flex-wrap: wrap; } .stat { background: rgba(var(--primary-color-rgb), 0.1); padding: 8px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; color: var(--primary-color); } @media (max-width: 768px) { .chapter-stats { flex-direction: column; align-items: center; } } /* DRS Progress and Mastery UI */ .chapter-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .chapter-badges { display: flex; gap: 0.5rem; align-items: center; } .completion-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; background: var(--success-color); color: white; border-radius: 20px; font-size: 0.875rem; font-weight: 500; box-shadow: var(--shadow-sm); } .mastery-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: white; border-radius: 20px; font-size: 0.875rem; font-weight: 500; box-shadow: var(--shadow-sm); animation: mastery-glow 2s ease-in-out infinite alternate; } @keyframes mastery-glow { 0% { box-shadow: var(--shadow-sm); } 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.4), var(--shadow-sm); } } .chapter-actions { display: flex; gap: 1rem; margin-top: 1rem; justify-content: center; } .chapter-actions .btn { transition: all 0.2s ease; } .chapter-actions .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } .btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; border: none; } .btn-warning:hover { background: linear-gradient(135deg, #d97706, #b45309); } @media (max-width: 768px) { .chapter-title-row { flex-direction: column; text-align: center; gap: 0.5rem; } .chapter-badges { justify-content: center; } .chapter-actions { flex-direction: column; align-items: center; } } /* ============================================================================= DYNAMIC REVISION - EXERCISE TYPE & DIFFICULTY SELECTION ============================================================================= */ .exercise-type-selection { margin: 24px 0; } .exercise-type-selection h4 { margin: 0 0 16px 0; color: #374151; font-size: 16px; font-weight: 600; } .exercise-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; } .exercise-type-btn { display: flex; flex-direction: column; align-items: center; padding: 16px 12px; border: 2px solid #e5e7eb; border-radius: 12px; background: white; cursor: pointer; transition: all 0.2s ease; font-size: 14px; color: #6b7280; } .exercise-type-btn:hover { border-color: #3b82f6; background: #eff6ff; color: #1e40af; } .exercise-type-btn.active { border-color: #10b981; background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); color: #065f46; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2); } .exercise-type-btn .type-icon { font-size: 24px; margin-bottom: 8px; } .exercise-type-btn .type-name { font-weight: 500; } .difficulty-selection { margin: 24px 0; } .difficulty-selection h4 { margin: 0 0 16px 0; color: #374151; font-size: 16px; font-weight: 600; } .difficulty-buttons { display: flex; gap: 8px; justify-content: center; } .difficulty-btn { padding: 8px 20px; border: 2px solid #e5e7eb; border-radius: 8px; background: white; cursor: pointer; font-size: 14px; font-weight: 500; color: #6b7280; transition: all 0.2s ease; min-width: 80px; } .difficulty-btn:hover { border-color: #9ca3af; background: #f9fafb; color: #374151; } .difficulty-btn.active { border-color: #3b82f6; background: #3b82f6; color: white; box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3); } @media (max-width: 768px) { .exercise-types { grid-template-columns: repeat(2, 1fr); } .difficulty-buttons { flex-wrap: wrap; } .difficulty-btn { flex: 1; min-width: 70px; } } /* ============================================================================= SMART GUIDE INTERFACE STYLES ============================================================================= */ .smart-guide-active { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border-radius: 16px; padding: 24px; margin: 16px 0; border: 2px solid #0ea5e9; box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1); } .guide-header { margin-bottom: 24px; } .guide-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .guide-title h3 { margin: 0; color: #0c4a6e; font-size: 1.5em; display: flex; align-items: center; gap: 8px; } .guide-status { padding: 12px 16px; background: rgba(14, 165, 233, 0.1); border-radius: 8px; border-left: 4px solid #0ea5e9; color: #0c4a6e; font-weight: 500; font-size: 14px; } .guide-controls { margin-bottom: 24px; } .session-progress { background: white; padding: 16px; border-radius: 12px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } .progress-bar-container { background: #e5e7eb; height: 12px; border-radius: 6px; overflow: hidden; margin-bottom: 8px; } .progress-bar { background: linear-gradient(90deg, #0ea5e9 0%, #06b6d4 100%); height: 100%; transition: width 0.6s ease; border-radius: 6px; } .progress-text { font-size: 14px; font-weight: 500; color: #374151; text-align: center; } .current-exercise-info { background: white; padding: 20px; border-radius: 12px; margin-bottom: 24px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); border: 1px solid #e5e7eb; } .current-exercise-info h4 { margin: 0 0 16px 0; color: #111827; font-size: 1.1em; } .exercise-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; } .exercise-detail { padding: 8px 12px; background: #f8fafc; border-radius: 6px; font-size: 14px; } .exercise-detail strong { color: #374151; } .reasoning-box { background: #fef3c7; padding: 16px; border-radius: 8px; border-left: 4px solid #f59e0b; font-size: 14px; color: #78350f; line-height: 1.5; } .reasoning-box strong { display: block; margin-bottom: 8px; color: #92400e; } .guide-insights { background: white; padding: 24px; border-radius: 12px; margin-top: 24px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); border: 1px solid #e5e7eb; } .guide-insights h4 { margin: 0 0 20px 0; color: #111827; text-align: center; font-size: 1.2em; } .insights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 24px; } .insight-card { background: #f8fafc; padding: 16px; border-radius: 8px; border: 1px solid #e5e7eb; } .insight-card h5 { margin: 0 0 12px 0; color: #374151; font-size: 1em; display: flex; align-items: center; gap: 8px; } .insight-card ul { margin: 0; padding-left: 16px; list-style-type: disc; } .insight-card li { margin-bottom: 6px; font-size: 14px; color: #6b7280; } .insights-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; } .revision-start { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 20px 0; } /* Button spacing for revision start section */ .revision-start .btn { min-width: 200px; } /* Manual mode collapsible section */ .manual-mode { margin-top: 16px; } .manual-controls { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px; } .manual-controls summary { cursor: pointer; padding: 8px 12px; font-size: 14px; color: #6b7280; font-weight: 500; border-radius: 6px; transition: background 0.2s ease; } .manual-controls summary:hover { background: #e5e7eb; } .manual-content { padding: 16px 12px 8px 12px; } .manual-content h5 { font-size: 14px; color: #374151; margin: 0 0 8px 0; } /* Smart Guide specific animations - REMOVED annoying hover animation */ /* Progress bar animation */ @keyframes progressPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); } 50% { box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1); } } .progress-bar { animation: progressPulse 2s infinite; } /* Smart Guide responsive design */ @media (max-width: 768px) { .smart-guide-active { padding: 16px; margin: 12px 0; } .guide-title { flex-direction: column; align-items: stretch; gap: 12px; } .guide-title h3 { font-size: 1.3em; } .insights-grid { grid-template-columns: 1fr; } .insights-actions { flex-direction: column; } .revision-start { flex-direction: column; } .revision-start .btn { width: 100%; min-width: unset; } } @media (max-width: 480px) { .exercise-details { grid-template-columns: 1fr; } .guide-status { font-size: 13px; padding: 10px 12px; } .current-exercise-info { padding: 16px; } } /* Vocabulary Knowledge Modal */ .vocabulary-knowledge-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99999 !important; display: flex; align-items: center; justify-content: center; } .vocabulary-knowledge-modal .modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); } .vocabulary-knowledge-modal .modal-content { position: relative; background: white; border-radius: 12px; padding: 24px; max-width: 600px; max-height: 80vh; width: 90%; overflow-y: auto; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); } .vocabulary-knowledge-modal .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #f1f5f9; } .vocabulary-knowledge-modal .modal-header h2 { margin: 0; color: #1e293b; font-size: 24px; } .vocabulary-knowledge-modal .modal-close { background: none; border: none; font-size: 24px; color: #64748b; cursor: pointer; padding: 4px; border-radius: 6px; transition: all 0.2s ease; } .vocabulary-knowledge-modal .modal-close:hover { background: #f1f5f9; color: #1e293b; } .vocabulary-knowledge-modal .knowledge-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 32px; } .vocabulary-knowledge-modal .stat-card { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: white; padding: 20px; border-radius: 12px; text-align: center; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); } .vocabulary-knowledge-modal .stat-number { font-size: 32px; font-weight: bold; margin-bottom: 4px; display: block; } .vocabulary-knowledge-modal .stat-label { font-size: 14px; opacity: 0.9; } .vocabulary-knowledge-modal .mastered-words h3 { margin: 0 0 16px 0; color: #1e293b; font-size: 18px; } .vocabulary-knowledge-modal .words-grid { display: flex; flex-wrap: wrap; gap: 8px; } .vocabulary-knowledge-modal .mastered-word { background: #10b981; color: white; padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: 500; display: inline-block; } .vocabulary-knowledge-modal .no-words { color: #64748b; font-style: italic; text-align: center; padding: 40px 20px; margin: 0; } .vocabulary-knowledge-modal .learning-details { margin-bottom: 32px; } .vocabulary-knowledge-modal .learning-details h3 { margin: 0 0 16px 0; color: #1e293b; font-size: 18px; } .vocabulary-knowledge-modal .progress-sections { display: flex; flex-direction: column; gap: 16px; } .vocabulary-knowledge-modal .progress-section { background: #f8fafc; padding: 16px; border-radius: 8px; border-left: 4px solid #3b82f6; } .vocabulary-knowledge-modal .progress-section h4 { margin: 0 0 8px 0; color: #1e293b; font-size: 16px; } .vocabulary-knowledge-modal .progress-bar { background: #e2e8f0; height: 8px; border-radius: 4px; overflow: hidden; margin-bottom: 8px; } .vocabulary-knowledge-modal .progress-fill { background: linear-gradient(90deg, #10b981, #059669); height: 100%; transition: width 0.3s ease; } .vocabulary-knowledge-modal .progress-section span { font-size: 14px; color: #64748b; font-weight: 500; } .guide-actions { display: flex; gap: 8px; align-items: center; } @media (max-width: 640px) { .vocabulary-knowledge-modal .modal-content { padding: 20px; margin: 16px; max-height: calc(100vh - 32px); } .vocabulary-knowledge-modal .knowledge-stats { grid-template-columns: 1fr; gap: 12px; } .vocabulary-knowledge-modal .stat-card { padding: 16px; } .vocabulary-knowledge-modal .stat-number { font-size: 24px; } .guide-actions { flex-direction: column; width: 100%; } .guide-actions .btn { width: 100%; margin: 0; } } /* Word Discovery Module */ .word-discovery { max-width: 800px; margin: 0 auto; padding: 20px; background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); } .word-discovery .discovery-header { text-align: center; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 2px solid #e2e8f0; } .word-discovery .discovery-header h2 { margin: 0 0 16px 0; color: #1e293b; font-size: 28px; } .word-discovery .progress-info { display: flex; flex-direction: column; align-items: center; gap: 8px; } .word-discovery .progress-bar { width: 100%; max-width: 300px; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; } .word-discovery .progress-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #1d4ed8); transition: width 0.3s ease; } .word-discovery .word-card { background: #f8fafc; border-radius: 16px; padding: 32px; margin: 24px 0; text-align: center; border: 3px solid #e2e8f0; min-height: 400px; display: flex; flex-direction: column; justify-content: center; } .word-discovery .word-main { margin-bottom: 32px; } .word-discovery .word-text { font-size: 48px; font-weight: bold; color: #1e293b; margin: 0 0 16px 0; text-transform: lowercase; } .word-discovery .word-pronunciation { font-size: 18px; color: #64748b; font-style: italic; margin-bottom: 8px; } .word-discovery .word-details { display: grid; gap: 24px; text-align: left; } .word-discovery .word-meaning, .word-discovery .word-type, .word-discovery .word-example { background: white; padding: 16px; border-radius: 8px; border-left: 4px solid #3b82f6; } .word-discovery .word-meaning h3, .word-discovery .word-type h3, .word-discovery .word-example h3 { margin: 0 0 8px 0; color: #3b82f6; font-size: 16px; font-weight: 600; } .word-discovery .word-meaning p, .word-discovery .word-example p { margin: 0; font-size: 16px; line-height: 1.5; color: #374151; } .word-discovery .type-badge { background: #dbeafe; color: #1d4ed8; padding: 4px 12px; border-radius: 16px; font-size: 14px; font-weight: 500; } .word-discovery .discovery-controls { display: flex; justify-content: space-between; align-items: center; margin: 32px 0 16px 0; gap: 16px; } .word-discovery .discovery-info { text-align: center; color: #64748b; font-size: 14px; margin-top: 16px; } .word-discovery .discovery-complete { text-align: center; padding: 40px 20px; } .word-discovery .discovery-complete h2 { color: #059669; margin-bottom: 16px; } .word-discovery .discovered-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0; } .word-discovery .discovered-word { background: #10b981; color: white; padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: 500; } @media (max-width: 768px) { .word-discovery { padding: 16px; margin: 16px; } .word-discovery .word-text { font-size: 36px; } .word-discovery .word-card { padding: 24px 16px; min-height: 350px; } .word-discovery .discovery-controls { flex-direction: column; gap: 12px; } .word-discovery .discovery-controls .btn { width: 100%; } }