/* --- 1. CORE THEME & VARIABLES --- */ :root { --primary: #2563eb; --text: #1e1e1e; --light-bg: #f9fafb; --border: #e5e7eb; --success: #059669; /* For AI labels */ } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; color: var(--text); margin: 0; background-color: #f0ecec; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* --- 2. NAVIGATION & HEADER --- */ header { border-bottom: 1px solid var(--border); padding: 1.5rem 0; background: white; } nav { display: flex; justify-content: space-between; align-items: center; } .logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); text-decoration: none; } .nav-links { list-style: none; display: flex; gap: 20px; margin: 0; } .nav-links a { text-decoration: none; color: var(--text); font-weight: 500; } /* --- 3. BLOG POST CARDS --- */ .post-item { background: #ffffff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 20px; transition: all 0.3s ease; cursor: pointer; position: relative; top: 0; } .post-item:hover { top: -5px; border-color: var(--primary); box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1), 0 8px 10px -6px rgba(37, 99, 235, 0.1); } .post-item:hover h3 a { color: var(--primary); } /* --- 4. INTERACTIVE DEMO COMPONENT --- */ .interactive-demo { width: 100%; margin: 2.5rem 0; padding: 1.5rem; background: #ffffff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); } .input-group { display: flex; gap: 10px; margin-bottom: 1rem; } .interactive-demo input { flex-grow: 1; padding: 14px; border-radius: 8px; border: 1px solid var(--border); font-size: 1rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; } .interactive-demo input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } .interactive-demo button { padding: 10px 20px; color: white; background-color: var(--primary); border: none; border-radius: 8px; cursor: pointer; font-weight: 600; transition: transform 0.1s, opacity 0.2s; } .interactive-demo button:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); } .interactive-demo button:disabled { background-color: #9ca3af; cursor: not-allowed; } /* Response Box & Messages */ #responseContainer { padding: 1.25rem; height: 450px; background-color: var(--light-bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; overflow-y: auto; font-family: 'Consolas', 'Monaco', monospace; font-size: 0.95rem; line-height: 1.6; } .msg { margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(0,0,0,0.05); } .msg:last-child { border-bottom: none; } .user-label { color: var(--primary); font-weight: bold; font-size: 0.8rem; text-transform: uppercase; } .ai-label { color: var(--success); font-weight: bold; font-size: 0.8rem; text-transform: uppercase; } .msg-text { display: block; margin-top: 5px; white-space: pre-wrap; /* Keeps formatting for lists/code */ } /* --- 5. ANIMATIONS & LOADERS --- */ #loader { display: flex; align-items: center; gap: 12px; padding: 0 0 15px 5px; color: var(--primary); font-weight: 500; } .spinner { width: 20px; height: 20px; border: 3px solid rgba(37, 99, 235, 0.1); border-radius: 50%; border-top-color: var(--primary); animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* --- 6. FOOTER --- */ footer { text-align: center; padding: 3rem 0; margin-top: 4rem; color: #9ca3af; border-top: 1px solid var(--border); }