﻿.site-main { padding: 40px 0; } .grid { display: grid; gap: 24px; } .grid.cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } .card { border: 1px solid var(--border); border-radius: 12px; padding: 24px; background: #fff; transition: all 0.3s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.1); position: relative; overflow: hidden; } .card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-primary); transform: scaleX(0); transition: transform 0.3s ease; } .card:hover::before { transform: scaleX(1); } .card:hover { box-shadow: 0 8px 25px rgba(59,130,246,0.15); transform: translateY(-4px); border-color: var(--primary-light); } .card-icon { font-size: 32px; margin-bottom: 16px; display: block; text-align: center; animation: pulse 2s ease-in-out infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } } @keyframes cardIconBounce { 0%, 20%, 50%, 80%, 100% { transform: scale(1); } 40% { transform: scale(1.1); } 60% { transform: scale(0.9); } } .card h3 { margin-top: 0; margin-bottom: 12px; font-size: 20px; color: var(--primary); } .card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; } .section { margin: 48px 0; } .section h2 { margin-bottom: 24px; font-size: 28px; color: var(--primary); font-weight: 600; text-align: center; position: relative; } .section h2::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--gradient-primary); border-radius: 2px; } .cta { display: inline-block; padding: 12px 20px; background: var(--primary); color: #fff; text-decoration: none; border-radius: 10px; transition: all 0.2s ease; font-weight: 600; font-size: 16px; } .cta:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59,130,246,0.3); } .breadcrumbs { font-size: 14px; margin-bottom: 20px; color: var(--muted); padding: 12px 0; } .breadcrumbs a { color: var(--primary); text-decoration: none; font-weight: 500; } .breadcrumbs a:hover { text-decoration: underline; } .faq-item { border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 16px; background: #fff; transition: all 0.2s ease; } .faq-item:hover { border-color: var(--primary-light); box-shadow: 0 2px 8px rgba(59,130,246,0.1); } .faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; color: var(--text); } .faq-a { margin-top: 16px; display: none; color: var(--muted); line-height: 1.6; padding-top: 16px; border-top: 1px solid var(--border); } .faq-item[aria-expanded="true"] .faq-a { display: block; } .site-footer { border-top: 1px solid var(--border); padding: 40px 0 20px 0; background: var(--accent); margin-top: 60px; } .footer-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; margin-bottom: 30px; align-items: start; } .footer-section { display: flex; flex-direction: column; } .footer-section h3 { color: var(--primary); font-size: 16px; font-weight: 700; margin-bottom: 20px; position: relative; text-transform: uppercase; letter-spacing: 0.5px; } .footer-section h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 25px; height: 2px; background: var(--gradient-primary); border-radius: 1px; } .footer-section ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; } .footer-section li { margin: 0; } .footer-section a { text-decoration: none; color: var(--muted); font-weight: 400; font-size: 13px; transition: all 0.2s ease; display: inline-block; padding: 2px 0; line-height: 1.4; } .footer-section a:hover { color: var(--primary); transform: translateX(3px); font-weight: 500; } .footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; } .footer-bottom p { color: var(--muted); font-size: 14px; margin: 0; } table { width: 100%; border-collapse: collapse; margin: 20px 0; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } th, td { border: 1px solid var(--border); padding: 12px; text-align: left; } th { background: var(--primary); color: white; font-weight: 600; } .content-section { margin: 32px 0; padding: 24px; background: #fff; border-radius: 12px; border: 1px solid var(--border); transition: all 0.3s ease; } .content-section:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); } .content-section h3 { color: var(--primary); margin-bottom: 16px; font-size: 22px; } .tip-box { background: linear-gradient(135deg, var(--accent) 0%, #e2e8f0 100%); border-left: 4px solid var(--primary); padding: 20px; margin: 24px 0; border-radius: 0 8px 8px 0; position: relative; overflow: hidden; } .tip-box::before { content: '💡'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; opacity: 0.3; } .tip-box strong { color: var(--primary); font-weight: 700; } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 24px 0; } .stat-item { text-align: center; padding: 20px; background: var(--accent); border-radius: 12px; border: 1px solid var(--border); transition: all 0.3s ease; position: relative; overflow: hidden; } .stat-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-primary); transform: scaleX(0); transition: transform 0.3s ease; } .stat-item:hover::before { transform: scaleX(1); } .stat-item:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); } .stat-icon { font-size: 32px; margin-bottom: 12px; display: block; text-align: center; width: 100%; animation: bounce 2s ease-in-out infinite; } .stats-grid .stat-item .stat-icon { text-align: center !important; display: block !important; margin-left: auto !important; margin-right: auto !important; position: relative !important; left: 50% !important; transform: translateX(-50%) !important; } .stat-number { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 8px; } .stat-label { color: var(--muted); font-size: 14px; font-weight: 500; } .table-of-contents { background: linear-gradient(135deg, var(--accent) 0%, #f8fafc 100%); border-radius: 12px; padding: 24px; margin: 32px 0; border: 1px solid var(--border); position: relative; } .table-of-contents::before { content: '📋'; position: absolute; top: 20px; right: 20px; font-size: 24px; opacity: 0.3; } .table-of-contents h3 { color: var(--primary); margin-bottom: 16px; font-size: 20px; font-weight: 600; } .table-of-contents ul { list-style: none; padding: 0; margin: 0; } .table-of-contents li { margin-bottom: 8px; } .table-of-contents a { display: flex; align-items: center; padding: 8px 12px; text-decoration: none; color: var(--text); border-radius: 6px; transition: all 0.2s ease; font-weight: 500; } .table-of-contents a:hover { background: var(--primary-light); color: white; transform: translateX(4px); } .table-of-contents a::before { content: ''; margin-right: 8px; font-size: 14px; line-height: 1; display: inline-block; vertical-align: middle; transition: all 0.2s ease; } .table-of-contents a:hover::before { content: '🏐'; } .image-section { margin: 32px 0; text-align: center; } .image-section img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease; } .image-section img:hover { transform: scale(1.02); } .image-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 24px 0; } .image-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: all 0.3s ease; } .image-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); } .image-card img { width: 100%; height: 200px; object-fit: cover; } .image-card-content { padding: 16px; } .image-card h4 { margin: 0 0 8px 0; color: var(--primary); font-size: 16px; } .image-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; } .image-placeholder { background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%); color: white; padding: 40px 20px; border-radius: 12px; text-align: center; margin: 20px 0; min-height: 200px; display: flex; flex-direction: column; justify-content: center; align-items: center; } .image-placeholder h3 { margin: 0 0 8px 0; font-size: 18px; color: white; } .image-placeholder p { margin: 0; opacity: 0.9; font-size: 14px; color: white; } .training-builder { background: var(--accent); border-radius: 12px; padding: 24px; margin: 32px 0; border: 1px solid var(--border); } .training-builder h3 { color: var(--primary); margin-bottom: 16px; } .exercise-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 20px 0; } .exercise-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px; cursor: pointer; transition: all 0.2s ease; } .exercise-item:hover { border-color: var(--primary-light); background: var(--accent); } .exercise-item.selected { border-color: var(--primary); background: rgba(59,130,246,0.1); } .exercise-item h4 { margin: 0 0 8px 0; color: var(--primary); font-size: 16px; } .exercise-item p { margin: 0; color: var(--muted); font-size: 14px; } .exercise-item .duration { font-size: 12px; color: var(--primary); font-weight: 500; margin-top: 8px; } .selected-exercises { background: #fff; border-radius: 8px; padding: 16px; margin-top: 20px; border: 1px solid var(--border); } .selected-exercises h4 { margin: 0 0 12px 0; color: var(--primary); } .exercise-tag { display: inline-block; background: var(--primary-light); color: white; padding: 4px 8px; border-radius: 4px; margin: 2px; font-size: 12px; } .save-training { background: var(--success); color: white; border: none; padding: 12px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; margin-top: 16px; transition: all 0.2s ease; } .save-training:hover { background: #059669; transform: translateY(-2px); } .quiz-container, .calculator-container, .progress-container { background: #fff; border-radius: 12px; padding: 24px; margin: 32px 0; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: all 0.3s ease; } .quiz-container:hover, .calculator-container:hover, .progress-container:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); transform: translateY(-2px); } .quiz-header, .calculator-header, .progress-header { text-align: center; margin-bottom: 24px; } .quiz-header h3, .calculator-header h3, .progress-header h3 { color: var(--primary); margin-bottom: 8px; font-size: 24px; } .quiz-header p, .calculator-header p, .progress-header p { color: var(--muted); margin: 0; } .quiz-question h4 { color: var(--text); margin-bottom: 16px; font-size: 18px; } .quiz-options { display: grid; gap: 12px; margin-bottom: 20px; } .quiz-option { background: var(--accent); border: 2px solid var(--border); border-radius: 8px; padding: 12px 16px; cursor: pointer; transition: all 0.2s ease; font-size: 16px; text-align: left; } .quiz-option:hover { background: var(--primary-light); color: white; border-color: var(--primary-light); transform: translateX(4px); } .quiz-option:disabled { opacity: 0.6; cursor: not-allowed; } .quiz-result { margin-top: 20px; padding: 16px; border-radius: 8px; background: var(--accent); } .result-message { font-weight: 600; margin-bottom: 12px; } .result-message.correct { color: var(--success); } .result-message.incorrect { color: #dc2626; } .next-question { background: var(--primary); color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; transition: all 0.2s ease; } .next-question:hover { background: var(--primary-dark); transform: translateY(-1px); } .quiz-score { text-align: center; font-weight: 600; color: var(--primary); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); } .calculator-content { max-width: 400px; margin: 0 auto; } .calculator-input { margin-bottom: 20px; } .calculator-input label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text); } .calculator-input select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 16px; background: white; } .exercise-checkboxes { display: grid; gap: 8px; } .exercise-checkboxes label { display: flex; align-items: center; gap: 8px; font-weight: normal; cursor: pointer; padding: 8px; border-radius: 6px; transition: background 0.2s ease; } .exercise-checkboxes label:hover { background: var(--accent); } .calculate-btn { width: 100%; background: var(--gradient-primary); color: white; border: none; padding: 12px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; margin-bottom: 20px; } .calculate-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); } .calculator-result { background: var(--accent); padding: 16px; border-radius: 8px; text-align: center; transition: all 0.3s ease; } .calculator-result h4 { color: var(--primary); margin-bottom: 8px; } .time-result { font-size: 24px; font-weight: 700; color: var(--primary); } .time-breakdown { color: var(--muted); font-size: 14px; line-height: 1.5; } .progress-content { max-width: 500px; margin: 0 auto; } .progress-item { margin-bottom: 20px; } .progress-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text); } .progress-bar { width: 100%; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 8px; } .progress-fill { height: 100%; background: var(--gradient-primary); border-radius: 4px; transition: width 0.5s ease; } .progress-value { font-size: 14px; color: var(--muted); font-weight: 600; } html { scroll-behavior: smooth; scroll-padding-top: 110px; /* Compensar el header sticky */ } a[href^="#"] { transition: all 0.3s ease; } .site-nav { transition: all 0.3s ease-in-out; } .table-of-contents a { transition: all 0.2s ease; position: relative; } .table-of-contents a:hover { color: var(--primary); transform: translateX(5px); } .table-of-contents a::before { content: ''; position: absolute; left: -10px; top: 50%; width: 0; height: 2px; background: var(--primary); transition: width 0.2s ease; transform: translateY(-50%); } .table-of-contents a:hover::before { width: 6px; } .section { opacity: 1; transform: translateY(0); transition: all 0.6s ease; } .image-card { transition: all 0.3s ease; } .image-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); } .nav-toggle { transition: all 0.2s ease; } .nav-toggle:hover { background: var(--primary-light); color: white; } @media (max-width: 1024px) { .site-nav a { font-size: 13px; padding: 6px 10px; } } @media (max-width: 768px) { .language-selector { margin-right: 10px; } .language-text { display: none; } .language-toggle { padding: 6px 8px; } .site-nav { display: none; position: absolute; top: 90px; right: 20px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transform-origin: top right; } .site-nav.open { display: block; animation: menuSlideIn 0.3s ease-out; } .site-nav ul { flex-direction: column; } .nav-toggle { display: inline-block; } @keyframes menuSlideIn { from { opacity: 0; transform: scale(0.95) translateY(-10px); } to { opacity: 1; transform: scale(1) translateY(0); } } .hero h1 { font-size: 32px; } .hero p { font-size: 16px; } .container { padding: 0 16px; } .image-grid { grid-template-columns: 1fr; } .exercise-list { grid-template-columns: 1fr; } .site-footer { padding: 24px 0; } .footer-content { grid-template-columns: 1fr; gap: 32px; } .footer-section { text-align: center; align-items: center; } .footer-section h3::after { left: 50%; transform: translateX(-50%); } .footer-section ul { align-items: center; } .footer-section a { font-size: 13px; padding: 6px 10px; border-radius: 4px; background: rgba(255,255,255,0.08); transition: all 0.2s ease; } .footer-section a:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); } .footer-bottom p { font-size: 12px; text-align: center; line-height: 1.4; } } .back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--primary); color: white; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(59,130,246,0.3); z-index: 1000; } .back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); } .back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59,130,246,0.4); } .back-to-top:active { transform: translateY(0); } @media (max-width: 768px) { .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; } } .card, .content-section, .stats-grid .stat-item { opacity: 1; transform: translateY(0); transition: all 0.8s ease; } .card.animate-in, .content-section.animate-in, .stats-grid .stat-item.animate-in { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(59,130,246,0.15); } .card:hover .card-icon { animation: cardIconBounce 0.6s ease; } .stat-item:hover .stat-icon { animation: pulse 0.6s ease; } @keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } .hero { background-size: 200% 200%; animation: gradientShift 6s ease infinite; } .particle { position: absolute; width: 4px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 50%; animation: particleFloat 8s linear infinite; } @keyframes particleFloat { 0% { transform: translateY(100vh) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-100px) rotate(360deg); opacity: 0; } } .hero h1 { background: linear-gradient(45deg, #ffffff, #f0f8ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .card, .content-section, .stat-item { position: relative; } .card::after, .content-section::after, .stat-item::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; box-shadow: 0 8px 32px rgba(0,0,0,0.1); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; } .card:hover::after, .content-section:hover::after, .stat-item:hover::after { opacity: 1; } .blog-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin: 32px 0; } .blog-post { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: all 0.3s ease; margin-bottom: 24px; } .blog-post:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); } .blog-post-image { height: 200px; overflow: hidden; } .blog-post-image .image-placeholder { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--gradient-primary); color: white; text-align: center; padding: 20px; } .blog-post-image .image-placeholder h3 { margin: 0 0 8px 0; font-size: 18px; } .blog-post-image .image-placeholder p { margin: 0; opacity: 0.8; font-size: 14px; } .blog-post-content { padding: 24px; } .blog-post-meta { display: flex; gap: 16px; margin-bottom: 12px; font-size: 14px; color: var(--muted); } .blog-post-date { font-weight: 600; } .blog-post-category { background: var(--primary-light); color: white; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; } .blog-post h2 { margin: 0 0 12px 0; font-size: 20px; line-height: 1.4; } .blog-post h2 a { color: var(--text); text-decoration: none; transition: color 0.2s ease; } .blog-post h2 a:hover { color: var(--primary); } .blog-post p { color: var(--muted); line-height: 1.6; margin-bottom: 16px; } .blog-post-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; } .tag { background: var(--accent); color: var(--primary); padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; } .read-more { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.2s ease; } .read-more:hover { color: var(--primary-dark); transform: translateX(4px); } .blog-sidebar { display: flex; flex-direction: column; gap: 24px; } .sidebar-widget { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .sidebar-widget h3 { color: var(--primary); margin-bottom: 16px; font-size: 18px; } .recent-posts, .categories { list-style: none; padding: 0; margin: 0; } .recent-posts li, .categories li { margin-bottom: 8px; } .recent-posts a, .categories a { color: var(--text); text-decoration: none; transition: color 0.2s ease; font-size: 14px; } .recent-posts a:hover, .categories a:hover { color: var(--primary); } .search-form { display: flex; gap: 8px; } .search-input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; } .search-btn { background: var(--primary); color: white; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; transition: background 0.2s ease; } .search-btn:hover { background: var(--primary-dark); } .newsletter-signup { background: var(--gradient-primary); color: white; border-radius: 12px; padding: 32px; text-align: center; margin: 40px 0; } .newsletter-content h3 { margin-bottom: 12px; font-size: 24px; } .newsletter-content p { margin-bottom: 24px; opacity: 0.9; } .newsletter-form { display: flex; gap: 12px; max-width: 400px; margin: 0 auto 16px auto; } .newsletter-input { flex: 1; padding: 12px 16px; border: none; border-radius: 8px; font-size: 16px; } .newsletter-btn { background: rgba(255,255,255,0.2); color: white; border: 2px solid rgba(255,255,255,0.3); padding: 12px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.2s ease; } .newsletter-btn:hover { background: rgba(255,255,255,0.3); border-color: rgba(255,255,255,0.5); transform: translateY(-2px); } .newsletter-disclaimer { font-size: 12px; opacity: 0.7; margin: 0; } @media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr; gap: 24px; } .newsletter-form { flex-direction: column; } .blog-post-meta { flex-direction: column; gap: 8px; } } .cta-section { background: var(--gradient-primary); color: white; border-radius: 12px; padding: 32px; text-align: center; margin: 40px 0; position: relative; overflow: hidden; } .cta-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>'); opacity: 0.3; } .cta-section h3 { margin-bottom: 12px; font-size: 24px; position: relative; z-index: 1; } .cta-section p { margin-bottom: 24px; opacity: 0.9; position: relative; z-index: 1; } .cta-section .cta { background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.3); color: white; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; position: relative; z-index: 1; display: inline-block; } .cta-section .cta:hover { background: rgba(255,255,255,0.3); border-color: rgba(255,255,255,0.5); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); } .content-section h4 { color: var(--primary); margin: 20px 0 12px 0; font-size: 18px; font-weight: 600; } .content-section ol { padding-left: 20px; } .content-section ol li { margin-bottom: 8px; line-height: 1.6; } @keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } } @keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } } .content-section:nth-child(odd) { animation: slideInLeft 0.6s ease forwards; } .content-section:nth-child(even) { animation: slideInRight 0.6s ease forwards; } .content-section p { font-size: 16px; line-height: 1.7; color: var(--text); } .content-section ul li, .content-section ol li { font-size: 16px; line-height: 1.6; margin-bottom: 8px; } .content-section a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; border-bottom: 1px solid transparent; } .content-section a:hover { color: var(--primary-dark); border-bottom-color: var(--primary-dark); } .tip-box { background: linear-gradient(135deg, var(--accent) 0%, #e2e8f0 100%); border-left: 4px solid var(--primary); padding: 20px; margin: 24px 0; border-radius: 0 8px 8px 0; position: relative; overflow: hidden; } .tip-box::before { content: '💡'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; opacity: 0.3; } .tip-box strong { color: var(--primary); font-weight: 700; } @media (max-width: 768px) { .cta-section { padding: 24px 20px; } .cta-section h3 { font-size: 20px; } .content-section { padding: 20px; } .table-of-contents { padding: 20px; } .tip-box { padding: 16px; } } .quiz-container { max-width: 900px; margin: 0 auto; padding: 30px; background: #ffffff; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); border: 1px solid #e5e7eb; } .quiz-selector h3 { color: #1f2937; margin-bottom: 16px; font-size: 28px; text-align: center; font-weight: 700; } .quiz-selector p { text-align: center; color: #6b7280; margin-bottom: 32px; font-size: 16px; line-height: 1.6; } .quiz-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; } .quiz-category-btn { display: flex; align-items: center; gap: 20px; padding: 24px; background: #ffffff; border: 2px solid #e5e7eb; border-radius: 16px; cursor: pointer; transition: all 0.3s ease; text-align: left; width: 100%; box-shadow: 0 2px 8px rgba(0,0,0,0.05); position: relative; overflow: hidden; } .quiz-category-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #3b82f6, #1d4ed8); opacity: 0; transition: opacity 0.3s ease; z-index: 1; } .quiz-category-btn:hover::before { opacity: 1; } .quiz-category-btn:hover { color: white; border-color: #3b82f6; transform: translateY(-4px); box-shadow: 0 12px 40px rgba(59,130,246,0.2); } .quiz-category-icon { font-size: 36px; flex-shrink: 0; z-index: 2; position: relative; } .quiz-category-info { z-index: 2; position: relative; } .quiz-category-info h4 { margin: 0 0 8px 0; font-size: 18px; font-weight: 700; color: #1f2937; } .quiz-category-info p { margin: 0; font-size: 14px; color: #6b7280; line-height: 1.5; } .quiz-category-btn:hover .quiz-category-info h4, .quiz-category-btn:hover .quiz-category-info p { color: white; } .quiz-progress { margin-bottom: 30px; } .quiz-progress-bar { width: 100%; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 10px; } .quiz-progress-fill { height: 100%; background: var(--primary); transition: width 0.3s ease; } .quiz-progress p { text-align: center; color: var(--text-muted); font-size: 14px; margin: 0; } .quiz-question h3 { color: var(--text); margin-bottom: 25px; font-size: 20px; line-height: 1.4; } .quiz-options-grid { display: grid; gap: 12px; margin-top: 20px; } .quiz-option-btn { display: flex; align-items: center; padding: 16px 20px; background: #ffffff; border: 2px solid #e5e7eb; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; font-size: 16px; text-align: left; font-weight: 500; box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: relative; overflow: hidden; } .quiz-option-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #3b82f6, #1d4ed8); opacity: 0; transition: opacity 0.3s ease; z-index: 1; } .quiz-option-btn:hover:not(:disabled)::before { opacity: 1; } .quiz-option-btn:hover:not(:disabled) { border-color: #3b82f6; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59,130,246,0.15); } .quiz-option-btn:disabled { cursor: not-allowed; opacity: 0.8; } .quiz-option-btn.correct { background: #10b981; color: white; border-color: #10b981; box-shadow: 0 4px 12px rgba(16,185,129,0.3); } .quiz-option-btn.incorrect { background: #ef4444; color: white; border-color: #ef4444; box-shadow: 0 4px 12px rgba(239,68,68,0.3); } .option-letter { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #f3f4f6; border-radius: 50%; font-weight: 600; font-size: 14px; color: #374151; margin-right: 16px; transition: all 0.3s ease; flex-shrink: 0; z-index: 2; position: relative; } .quiz-option-btn:hover:not(:disabled) .option-letter { background: rgba(255,255,255,0.2); color: white; } .quiz-option-btn.correct .option-letter, .quiz-option-btn.incorrect .option-letter { background: rgba(255,255,255,0.2); color: white; } .option-text { flex: 1; z-index: 2; position: relative; } .quiz-explanation { margin-top: 20px; padding: 20px; border-radius: 10px; animation: slideIn 0.3s ease; } .explanation-content { padding: 15px; border-radius: 8px; border-left: 4px solid; } .explanation-content.correct { background: #f0fdf4; border-left-color: #10b981; } .explanation-content.incorrect { background: #fef2f2; border-left-color: #ef4444; } .explanation-content h4 { margin: 0 0 10px 0; font-size: 18px; } .explanation-content p { margin: 0; line-height: 1.5; } .quiz-results { text-align: center; padding: 30px; } .quiz-results h3 { color: var(--primary); margin-bottom: 25px; font-size: 28px; } .quiz-score { margin-bottom: 30px; } .score-circle { display: inline-flex; align-items: center; justify-content: center; width: 120px; height: 120px; border-radius: 50%; background: var(--primary); color: white; margin: 0 auto 15px; font-size: 24px; font-weight: bold; } .score-number { font-size: 36px; } .score-total { font-size: 18px; opacity: 0.8; } .score-percentage { font-size: 18px; color: var(--text-muted); margin: 0; } .quiz-feedback { margin: 25px 0; padding: 20px; background: var(--background); border-radius: 10px; border-left: 4px solid var(--primary); font-size: 16px; line-height: 1.5; } .quiz-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; } .restart-quiz-btn, .new-quiz-btn { padding: 12px 24px; background: var(--primary); color: white; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; font-size: 16px; font-weight: 500; } .restart-quiz-btn:hover, .new-quiz-btn:hover { background: var(--primary-dark); transform: translateY(-1px); } @keyframes slideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @media (max-width: 768px) { .quiz-categories { grid-template-columns: 1fr; } .quiz-category-btn { padding: 15px; } .quiz-category-icon { font-size: 24px; } .quiz-category-info h4 { font-size: 14px; } .quiz-category-info p { font-size: 12px; } .quiz-actions { flex-direction: column; align-items: center; } .restart-quiz-btn, .new-quiz-btn { width: 100%; max-width: 200px; } } .activity-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin: 40px 0; } .stat-card { background: #ffffff; border: 2px solid #e5e7eb; border-radius: 16px; padding: 32px 24px; text-align: center; transition: all 0.3s ease; position: relative; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.05); } .stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(135deg, #3b82f6, #1d4ed8); transform: scaleX(0); transition: transform 0.3s ease; } .stat-card:hover::before { transform: scaleX(1); } .stat-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(59,130,246,0.15); border-color: #3b82f6; } .stat-icon { font-size: 52px; margin-bottom: 20px; display: block; animation: pulse 2s ease-in-out infinite; } .stat-card h3 { margin: 0 0 20px 0; color: #1f2937; font-size: 20px; font-weight: 700; } .stat-value { font-size: 36px; font-weight: 800; color: #3b82f6; margin: 20px 0; text-shadow: 0 2px 8px rgba(59,130,246,0.2); } .stat-bar { background: #f3f4f6; border-radius: 12px; height: 10px; margin: 20px 0; overflow: hidden; position: relative; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); } .progress-fill { background: linear-gradient(135deg, #3b82f6, #1d4ed8); height: 100%; border-radius: 12px; transition: width 1.5s ease; animation: progressAnimation 2s ease-out; box-shadow: 0 2px 8px rgba(59,130,246,0.3); } @keyframes progressAnimation { from { width: 0%; } to { width: var(--progress-width); } } .stat-card p { margin: 0; color: #6b7280; font-size: 15px; font-weight: 600; } .notification { position: fixed; top: 80px; right: 20px; background: #1f2937; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); padding: 12px 16px; z-index: 1000; transform: translateX(100%); transition: transform 0.3s ease; max-width: 300px; } .notification.show { transform: translateX(0); } .notification-content { display: flex; align-items: center; gap: 8px; } .notification-icon { font-size: 18px; } .notification-text { font-size: 14px; font-weight: 500; color: white; } .notification-success { border-left: 4px solid #10b981; } .notification-info { border-left: 4px solid var(--primary); } 
