:root { --primary: #2563eb; --text: #1f2937; --light-bg: #f9fafb; --border: #e5e7eb; } 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; } /* Header & Nav */ header { border-bottom: 1px solid var(--border); padding: 1.5rem 0; } 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; } .nav-links a { text-decoration: none; color: var(--text); font-weight: 500; } /* The resting state of the card */ .post-item { background: #ffffff; border: 1px solid #e5e7eb; /* Subtle border */ border-radius: 12px; padding: 24px; margin-bottom: 20px; transition: all 0.3s ease; /* Smooth transition for the "pop" */ cursor: pointer; position: relative; top: 0; /* Necessary for the vertical lift */ } /* The "Pop Out" effect on hover */ .post-item:hover { top: -5px; /* Lifts the card up slightly */ border-color: #2563eb; /* Changes border color to match your theme */ box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1), 0 8px 10px -6px rgba(37, 99, 235, 0.1); /* Soft blue shadow */ } /* Optional: Make the title change color when the card is hovered */ .post-item:hover h3 a { color: #2563eb; } .date { font-size: 0.9rem; color: #6b7280; } /* Content Formatting */ article h1 { font-size: 2.5rem; margin-bottom: 0.5rem; } article img { max-width: 100%; border-radius: 8px; } footer { text-align: center; padding: 3rem 0; margin-top: 4rem; color: #9ca3af; border-top: 1px solid var(--border); } /* Code Block Styling */ /* pre { background: #1e1e1e; color: #efefef; padding: 1.25rem; border-radius: 8px; overflow-x: auto; margin: 1.5rem 0; line-height: 1.45; border: 1px solid var(--border); } code { font-family: 'Fira Code', 'Consolas', 'Monaco', monospace; font-size: 0.9rem; padding: 0.2rem 0.4rem; background: #f3f4f6; border-radius: 4px; } pre code { background: transparent; padding: 0; } */ .tag-badge { display: inline-block; background-color: #f3f4f6; color: #2563eb; padding: 2px 8px; border-radius: 4px; font-size: 0.85rem; text-decoration: none; margin-right: 5px; transition: background-color 0.2s; } .tag-badge:hover { background-color: #2563eb; color: white; } /* Layout Container */ .layout-wrapper { display: flex; flex-wrap: wrap; gap: 40px; /* Space between content and sidebar */ } /* Main content takes up more space */ .content-area { flex: 3; min-width: 300px; } /* Sidebar takes up less space */ .sidebar { flex: 1; min-width: 250px; } /* Sidebar styling */ .sidebar-section h3 { border-bottom: 2px solid #2563eb; padding-bottom: 8px; margin-bottom: 15px; font-size: 1.2rem; } .tag-list { list-style: none; padding: 0; } .tag-list li { margin-bottom: 10px; } .tag-list a { text-decoration: none; color: #4b5563; transition: color 0.2s; } .tag-list a:hover { color: #2563eb; } .main-link::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; /* Covers the card area */ }