:root { --primary-color: #3b82f6; --primary-hover: #2563eb; --secondary-color: #64748b; --success-color: #10b981; --error-color: #ef4444; --warning-color: #f59e0b; --bg-color: #f8fafc; --card-bg: #ffffff; --text-primary: #1e293b; --text-secondary: #64748b; --border-color: #e2e8f0; --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg-color); color: var(--text-primary); line-height: 1.6; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* Header */ .header { background: var(--card-bg); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); background: rgba(255, 255, 255, 0.95); } .header-content { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; } .logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 700; color: var(--primary-color); } .built-with { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; transition: color 0.3s; } .built-with:hover { color: var(--primary-color); } /* Main Content */ .main { min-height: calc(100vh - 140px); padding: 2rem 0; } .url-input-section { margin-bottom: 2rem; } .input-card { background: var(--card-bg); border-radius: 12px; padding: 2rem; box-shadow: var(--shadow-md); max-width: 800px; margin: 0 auto; } .input-card h2 { margin-bottom: 0.5rem; color: var(--text-primary); } .subtitle { color: var(--text-secondary); margin-bottom: 1.5rem; } .url-form { margin-bottom: 1rem; } .input-group { display: flex; gap: 0.75rem; } #urlInput { flex: 1; padding: 0.75rem 1rem; border: 2px solid var(--border-color); border-radius: 8px; font-size: 1rem; transition: all 0.3s; } #urlInput:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .extract-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: var(--primary-color); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.3s; } .extract-btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); } .error-message { padding: 0.75rem 1rem; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; color: var(--error-color); margin-top: 1rem; } /* Loading State */ .loading-section { display: flex; justify-content: center; align-items: center; min-height: 300px; } .loading-card { text-align: center; background: var(--card-bg); padding: 3rem; border-radius: 12px; box-shadow: var(--shadow-md); } .spinner { width: 48px; height: 48px; border: 4px solid var(--border-color); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem; } @keyframes spin { to { transform: rotate(360deg); } } /* Results Section */ .results-section { animation: fadeIn 0.5s ease-in; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; gap: 1rem; } .new-search-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--card-bg); border: 2px solid var(--border-color); border-radius: 8px; color: var(--text-primary); cursor: pointer; transition: all 0.3s; font-size: 0.875rem; font-weight: 500; } .new-search-btn:hover { border-color: var(--primary-color); color: var(--primary-color); } .results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; } .content-card, .images-card, .full-content-card { background: var(--card-bg); border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow-md); } .content-card h3, .images-card h3, .full-content-card h3 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; color: var(--text-primary); font-size: 1.125rem; } .article-info { background: var(--bg-color); padding: 1rem; border-radius: 8px; margin-bottom: 1rem; } .article-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); } .article-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--text-secondary); } .key-points { display: flex; flex-direction: column; gap: 0.75rem; } .key-point { padding: 0.75rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 8px; position: relative; padding-left: 2rem; } .key-point::before { content: "•"; position: absolute; left: 0.75rem; font-size: 1.5rem; line-height: 1; } .images-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; } .image-item { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; transition: transform 0.3s; aspect-ratio: 1; } .image-item:hover { transform: scale(1.05); } .image-item img { width: 100%; height: 100%; object-fit: cover; } .full-content { line-height: 1.8; color: var(--text-primary); } .full-content p { margin-bottom: 1rem; text-align: justify; } /* Image Modal */ .image-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); display: flex; justify-content: center; align-items: center; z-index: 1000; } .modal-content { position: relative; max-width: 90%; max-height: 90%; } .close-modal { position: absolute; top: -40px; right: 0; color: white; font-size: 2rem; cursor: pointer; } #modalImage { max-width: 100%; max-height: 90vh; border-radius: 8px; } /* Footer */ .footer { background: var(--card-bg); border-top: 1px solid var(--border-color); padding: 1.5rem 0; text-align: center; color: var(--text-secondary); font-size: 0.875rem; } /* Utility Classes */ .hidden { display: none !important; } .mt-4 { margin-top: 1rem; } /* Responsive Design */ @media (max-width: 768px) { .results-grid { grid-template-columns: 1fr; } .input-group { flex-direction: column; } .extract-btn { width: 100%; justify-content: center; } .results-header { flex-direction: column; align-items: flex-start; } .images-gallery { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } } @media (max-width: 480px) { .container { padding: 0 15px; } .input-card, .content-card, .images-card, .full-content-card { padding: 1rem; } .header-content { flex-direction: column; gap: 1rem; } }