:root { --primary: #0f172a; --secondary: #475569; --accent: #2563eb; --accent-hover: #1d4ed8; --accent-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%); --bg: #f8fafc; --surface: rgba(255, 255, 255, 0.85); --surface-solid: #ffffff; --border: rgba(15, 23, 42, 0.08); --text-main: #0f172a; --text-muted: #64748b; --radius-lg: 24px; --radius-md: 16px; --radius-sm: 8px; --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05); --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01); --shadow-hover: 0 25px 30px -5px rgba(0, 0, 0, 0.08), 0 10px 15px -6px rgba(0, 0, 0, 0.04); } body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background-color: var(--bg); color: var(--text-main); line-height: 1.6; margin: 0; overflow-x: hidden; } h1, h2, h3, h4, h5, h6, .logo { font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif; color: var(--primary); } /* Decorative Background Elements */ .bg-shapes { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; z-index: -1; pointer-events: none; } #bg-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.6; } .shape { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform; } .shape-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: var(--accent); animation: float 15s ease-in-out infinite; } .shape-2 { top: 40%; right: -5%; width: 450px; height: 450px; background: #06b6d4; animation: float 18s ease-in-out infinite reverse; } .shape-mouse { width: 300px; height: 300px; background: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, rgba(37, 99, 235, 0.1) 60%, transparent 100%); filter: blur(60px); top: -150px; left: -150px; opacity: 0; transition: opacity 0.5s ease; animation: pulse 4s ease-in-out infinite alternate; } @keyframes float { 0% { transform: translateY(0) scale(1) translateX(0); } 33% { transform: translateY(40px) scale(1.05) translateX(20px); } 66% { transform: translateY(-20px) scale(0.95) translateX(-20px); } 100% { transform: translateY(0) scale(1) translateX(0); } } @keyframes pulse { 0% { opacity: 0.3; transform: scale(0.9); } 100% { opacity: 0.6; transform: scale(1.1); } } .container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; } header { background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 1.2rem 0; position: sticky; top: 0; z-index: 50; transition: all 0.3s ease; } nav { display: flex; justify-content: space-between; align-items: center; } .nav-links { display: flex; gap: 2rem; align-items: center; } .nav-links a { text-decoration: none; color: var(--secondary); font-weight: 500; font-size: 0.95rem; transition: color 0.2s, transform 0.2s; } .nav-links a:hover { color: var(--accent); transform: translateY(-1px); } .logo { font-weight: 800; font-size: 1.5rem; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-decoration: none; letter-spacing: -0.5px; } .hero { padding: 6rem 0 4rem; text-align: center; position: relative; } h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.5rem; line-height: 1.1; } .subtitle { color: var(--secondary); font-size: 1.2rem; max-width: 600px; margin: 0 auto; font-weight: 400; } .post-grid { display: grid; gap: 2.5rem; margin-bottom: 6rem; } .post-card { background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-decoration: none; color: inherit; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); } .post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: rgba(37, 99, 235, 0.2); } .post-card-image { height: 240px; background-size: cover; background-position: center; border-bottom: 1px solid var(--border); transition: transform 0.5s ease; } .post-card:hover .post-card-image { transform: scale(1.02); } .post-card-content { padding: 2rem; background: var(--surface-solid); position: relative; z-index: 1; } .post-card-date { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; } .post-card-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.3; } .post-card-summary { color: var(--secondary); font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s ease; border: 1px solid transparent; text-decoration: none; font-family: 'Outfit', sans-serif; letter-spacing: 0.02em; } .btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15); } .btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25); color: #fff; } .btn-outline { border-color: var(--border); background: var(--surface-solid); color: var(--text-main); } .btn-outline:hover { background: var(--bg); border-color: var(--secondary); transform: translateY(-1px); } footer { border-top: 1px solid var(--border); padding: 4rem 0; text-align: center; color: var(--text-muted); font-size: 0.95rem; background: var(--surface-solid); } /* Post Detail */ .post-detail { background-color: var(--surface-solid); } .post-detail header { border: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 2rem 0; position: static; } .post-detail .hero-image { width: 100%; height: 40vh; min-height: 300px; background-size: cover; background-position: center; border-radius: var(--radius-lg); margin-bottom: 3rem; box-shadow: var(--shadow-lg); } .post-detail h1 { font-size: 3rem; margin-bottom: 1.5rem; } .post-content { font-size: 1.15rem; color: var(--secondary); line-height: 1.8; padding-bottom: 4rem; } .post-content p { margin-bottom: 1.8rem; } .post-content h2 { font-size: 2rem; margin-top: 3rem; margin-bottom: 1.2rem; color: var(--primary); } .post-content img { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin: 2rem 0; max-width: 100%; } /* Admin */ .admin-header { display: flex; justify-content: space-between; align-items: center; margin-top: 3rem; margin-bottom: 2rem; } .admin-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 1rem; background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); } .admin-table th, .admin-table td { padding: 1.25rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border); } .admin-table th { background: #f1f5f9; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--secondary); } .admin-table tr:last-child td { border-bottom: none; } .admin-table tbody tr { transition: background-color 0.2s; } .admin-table tbody tr:hover { background-color: #f8fafc; } .form-container { background: var(--surface-solid); padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 4rem; } .form-group { margin-bottom: 1.5rem; } .form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--primary); } .form-control { width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--border); border-radius: var(--radius-md); font-size: 1rem; font-family: inherit; box-sizing: border-box; transition: all 0.2s; background: #f8fafc; color: var(--text-main); } .form-control:focus { outline: none; border-color: var(--accent); background: var(--surface-solid); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } textarea.form-control { min-height: 250px; line-height: 1.6; } .actions { display: flex; gap: 0.75rem; } .toast { position: fixed; bottom: 2rem; right: 2rem; background: #10b981; color: #fff; padding: 1rem 1.5rem; border-radius: var(--radius-md); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); display: none; z-index: 100; font-weight: 500; animation: slideUp 0.3s ease-out forwards; } @keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } } @media (max-width: 640px) { h1 { font-size: 2.5rem; } .post-detail h1 { font-size: 2.2rem; } .nav-links { gap: 1rem; } .hero { padding: 4rem 0 3rem; } } /* Quill Editor Overrides */ .ql-toolbar.ql-snow { border: 2px solid var(--border); border-bottom: none; border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md); background: #f8fafc; font-family: 'Inter', sans-serif; padding: 12px; } .ql-container.ql-snow { border: 2px solid var(--border); border-bottom-left-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); background: var(--surface-solid); font-family: 'Inter', sans-serif; font-size: 1.1rem; transition: all 0.2s; min-height: 400px; } .ql-container.ql-snow:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } .ql-editor { min-height: 400px; line-height: 1.8; color: var(--text-main); padding: 1.5rem; } .ql-editor p { margin-bottom: 1.2rem; } .ql-editor h2, .ql-editor h3, .ql-editor h4 { color: var(--primary); margin-top: 1.5rem; margin-bottom: 1rem; } .ql-editor img { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); max-width: 100%; }