:root {
    --primary-bg: #0f172a;    /* Deep dark blue-black */
    --secondary-bg: rgba(30, 41, 59, 0.7); /* Translucent */
    --accent-gold: #c5a059;   /* Milton Gold */
    --accent-blue: #38bdf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --angular-red: #c5a059;   /* Use Gold as accent */
    --nav-bg: rgba(15, 23, 42, 0.8);
    --border-color: rgba(197, 160, 89, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(239, 68, 68, 0.05) 0px, transparent 50%);
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Glassmorphism Utility */
.glass {
    background: var(--secondary-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 1.6em;
    font-weight: 800;
    color: var(--accent-gold);
    text-decoration: none;
    letter-spacing: -0.5px;
}

header .logo span {
    color: var(--angular-red);
}

/* Shimmer Effect for Cards */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.post-card {
    position: relative;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-gold);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(251, 191, 36, 0.05),
        transparent
    );
    transition: 0.5s;
}

.post-card:hover::before {
    left: 100%;
}

.post-card .content {
    padding: 30px;
}

.post-card h2 {
    margin-top: 0;
    font-size: 1.6em;
    color: var(--accent-gold);
    line-height: 1.3;
}

.post-card .meta {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 600;
}

.post-card p {
    color: var(--text-main);
    opacity: 0.8;
    margin-bottom: 25px;
}

/* Roadmap Styles */
.roadmap-section {
    padding: 80px 0;
    text-align: center;
}

/* Filter Section */
.glass-select {
    background: var(--secondary-bg);
    color: var(--text-main);
    border: 1px solid var(--accent-gold);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    appearance: none;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--glass-shadow);
}
.glass-select option {
    background: var(--primary-bg);
    color: var(--text-main);
}


.roadmap-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    position: relative;
    padding: 40px 0;
    gap: 15px;
    flex-wrap: nowrap; /* Ensure single row */
}

.roadmap-container::after {
    content: '';
    position: absolute;
    top: 50%; left: 5%;
    width: 90%; height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold), var(--angular-red));
    z-index: 1;
    opacity: 0.5;
}

.roadmap-step {
    position: relative;
    z-index: 2;
    background: var(--primary-bg);
    border: 2px solid var(--accent-blue);
    width: 160px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-main);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.roadmap-step:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.roadmap-step:nth-child(2) { border-color: #0ea5e9; }
.roadmap-step:nth-child(3) { border-color: #6366f1; }
.roadmap-step:nth-child(4) { border-color: #a855f7; }
.roadmap-step:nth-child(5) { border-color: #ef4444; }

/* Cheat Sheet Floating Panel */
.cheat-sheet-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-gold);
    color: var(--primary-bg);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
    transition: all 0.3s;
}

.cheat-sheet-trigger:hover {
    transform: rotate(-5deg) scale(1.1);
}

.cheat-sheet-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-height: 500px;
    overflow-y: auto;
    padding: 25px;
    border-radius: 20px;
    display: none;
    z-index: 1999;
}

.cheat-sheet-panel.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero {
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 4em;
    background: linear-gradient(to right, var(--accent-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25em;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Intro & Promo Styles */
.intro-section {
    padding: 60px 0;
    line-height: 1.8;
}

.intro-section h2 {
    color: var(--accent-gold);
    font-size: 2.2em;
    margin-bottom: 20px;
}

.promo-banner {
    margin: 80px 0;
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 2px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
}

.promo-banner h2 {
    font-size: 2.5em;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.promo-banner p {
    font-size: 1.2em;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-promo {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent-gold);
    color: var(--primary-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1em;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.2);
}

.btn-promo:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(251, 191, 36, 0.4);
}

.btn-read {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-read:hover {
    background: var(--accent-gold);
    color: var(--primary-bg);
}

/* Article content styles */
.post-content {
    background: var(--secondary-bg);
    backdrop-filter: blur(12px);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.post-content h1 {
    font-size: 2.8em;
    color: var(--accent-gold);
    margin-bottom: 30px;
}

.post-content h3 {
    margin-top: 40px;
    font-size: 1.5em;
    color: var(--accent-gold);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul, .post-content ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content strong {
    color: var(--accent-gold);
}

code {
    background-color: rgba(251, 191, 36, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-gold);
}

pre {
    background-color: #000;
    border: 1px solid var(--border-color);
    color: #e2e8f0;
    padding: 25px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 30px 0;
}

/* Chat Widget Styles */
.chat-trigger {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--angular-red);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
    transition: all 0.3s;
    font-size: 1.5em;
}

.chat-trigger:hover {
    transform: scale(1.1) rotate(10deg);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 320px;
    height: 450px;
    border-radius: 20px;
    display: none;
    flex-direction: column;
    z-index: 1999;
    overflow: hidden;
}

.chat-window.active {
    display: flex;
    animation: slideUpChat 0.3s ease-out;
}

@keyframes slideUpChat {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header {
    padding: 15px 20px;
    background: rgba(239, 68, 68, 0.2);
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 15px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 0.9em;
}

.message.bot {
    background: var(--secondary-bg);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.user {
    background: var(--accent-gold);
    color: var(--primary-bg);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    outline: none;
}

.chat-input button {
    background: var(--accent-gold);
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

footer {
    background-color: #020617;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 60px 0;
    text-align: center;
}
