* { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary-color: #6366f1; --primary-hover: #4f46e5; --secondary-color: #8b5cf6; --background: #0f172a; --surface: #1e293b; --surface-light: #334155; --text-primary: #f1f5f9; --text-secondary: #cbd5e1; --text-muted: #94a3b8; --border: #334155; --success: #10b981; --error: #ef4444; --shadow: rgba(0, 0, 0, 0.3); --shadow-lg: rgba(0, 0, 0, 0.5); } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background: linear-gradient(135deg, var(--background) 0%, #1a1f3a 100%); color: var(--text-primary); min-height: 100vh; padding: 2rem 1rem; line-height: 1.6; } .container { max-width: 1200px; margin: 0 auto; } header { text-align: center; margin-bottom: 3rem; animation: fadeIn 0.6s ease-out; } header h1 { font-size: 3rem; font-weight: 700; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; } .subtitle { color: var(--text-secondary); font-size: 1.1rem; } .input-section { margin-bottom: 2rem; animation: fadeIn 0.8s ease-out; } .link-form { margin-bottom: 1.5rem; } .input-group { display: flex; gap: 1rem; background: var(--surface); padding: 0.5rem; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 4px 6px var(--shadow); transition: all 0.3s ease; } .input-group:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } #linkInput { flex: 1; background: transparent; border: none; color: var(--text-primary); font-size: 1rem; padding: 1rem; outline: none; } #linkInput::placeholder { color: var(--text-muted); } .btn-primary { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; border: none; padding: 1rem 2rem; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; box-shadow: 0 4px 6px var(--shadow); } .btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 12px var(--shadow-lg); } .btn-primary:active:not(:disabled) { transform: translateY(0); } .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; } .search-section { background: var(--surface); padding: 0.5rem; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 4px 6px var(--shadow); } #searchInput { width: 100%; background: transparent; border: none; color: var(--text-primary); font-size: 1rem; padding: 1rem; outline: none; } #searchInput::placeholder { color: var(--text-muted); } .message { padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; animation: slideDown 0.3s ease-out; } .message.success { background: rgba(16, 185, 129, 0.2); border: 1px solid var(--success); color: var(--success); } .message.error { background: rgba(239, 68, 68, 0.2); border: 1px solid var(--error); color: var(--error); } .links-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; animation: fadeIn 1s ease-out; } .empty-state { grid-column: 1 / -1; text-align: center; padding: 4rem 2rem; color: var(--text-muted); font-size: 1.1rem; } .link-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 4px 6px var(--shadow); display: flex; flex-direction: column; animation: fadeInUp 0.5s ease-out; } .link-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px var(--shadow-lg); border-color: var(--primary-color); } .link-image { width: 100%; height: 200px; object-fit: cover; background: var(--surface-light); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.9rem; } .link-image img { width: 100%; height: 100%; object-fit: cover; } .link-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; } .link-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .link-description { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; } .link-url { color: var(--primary-color); font-size: 0.85rem; text-decoration: none; margin-bottom: 1rem; word-break: break-all; transition: color 0.3s ease; } .link-url:hover { color: var(--primary-hover); text-decoration: underline; } .link-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border); } .link-date { color: var(--text-muted); font-size: 0.85rem; } .delete-btn { background: rgba(239, 68, 68, 0.2); color: var(--error); border: 1px solid var(--error); padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.85rem; cursor: pointer; transition: all 0.3s ease; } .delete-btn:hover { background: var(--error); color: white; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } @media (max-width: 768px) { header h1 { font-size: 2rem; } .input-group { flex-direction: column; } .btn-primary { width: 100%; } .links-container { grid-template-columns: 1fr; } }