/*
Theme Name: Cloudland OS
Author: Paul Cannon
Description: A high-performance technical theme for AI Robotics & Integration.
Version: 2.0
*/

:root {
    --primary: #1a73e8; /* Google Blue */
    --accent: #34a853;  /* Signal Green */
    --dark: #202124;    /* Tech Black */
    --gray: #5f6368;    /* Subtext */
    --bg: #ffffff;
    --bg-alt: #f8f9fa;  /* Light Gray for Sidebars */
    --border: #dadce0;
    --font-head: 'Inter', -apple-system, sans-serif;
    --font-body: 'Roboto', -apple-system, sans-serif;
    --font-code: 'Fira Code', monospace;
}

/* BASE */
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--dark); line-height: 1.6; font-size: 18px; background: var(--bg); }
h1, h2, h3, h4 { font-family: var(--font-head); margin-top: 0; font-weight: 700; letter-spacing: -0.5px; }
a { color: var(--primary); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.site-header { border-bottom: 1px solid var(--border); padding: 15px 0; position: sticky; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(5px); z-index: 1000; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--dark); letter-spacing: -1px; }
.logo span { color: var(--primary); }
.nav-menu ul { display: flex; list-style: none; gap: 25px; margin: 0; padding: 0; }
.nav-menu a { color: var(--gray); font-weight: 500; font-size: 0.95rem; }
.nav-menu a:hover { color: var(--primary); }

/* HOMEPAGE BENTO GRID */
.bento-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 280px); gap: 20px; margin: 40px 0; }
.bento-card { position: relative; border-radius: 12px; overflow: hidden; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 30px; color: white; transition: transform 0.2s; }
.bento-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.bento-card:hover { transform: translateY(-3px); }
.bento-content { position: relative; z-index: 2; width: 100%; }
.bento-large { grid-row: span 2; }
.bento-tag { background: var(--primary); color: white; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; display: inline-block; }
.bento-title { margin: 0; font-size: 1.8rem; line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }

/* POST STREAM */
.section-label { font-size: 0.85rem; text-transform: uppercase; color: var(--gray); letter-spacing: 1px; border-bottom: 2px solid var(--border); padding-bottom: 10px; margin: 60px 0 30px; }
.stream-item { display: flex; gap: 30px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.stream-meta { flex: 0 0 140px; font-size: 0.9rem; color: var(--gray); }
.stream-meta strong { display: block; color: var(--dark); }
.stream-content h2 { font-size: 1.6rem; margin-bottom: 10px; }
.stream-content p { color: var(--gray); margin: 0; }

/* SINGLE ARTICLE GRID */
.article-grid { display: grid; grid-template-columns: 240px 1fr 300px; gap: 40px; margin: 40px 0; }

/* Left Sidebar (TOC) */
.toc-sticky { position: sticky; top: 100px; }
.toc-list { list-style: none; padding: 0; border-left: 2px solid var(--border); }
.toc-list li a { display: block; padding: 8px 0 8px 15px; color: var(--gray); font-size: 0.9rem; }
.toc-list li a:hover { color: var(--primary); border-left: 2px solid var(--primary); margin-left: -2px; }

/* Right Sidebar (Newsletter) */
.newsletter-box { background: var(--dark); color: white; padding: 30px; border-radius: 12px; }
.newsletter-box input { width: 100%; padding: 12px; margin: 15px 0; border: none; border-radius: 6px; }
.newsletter-box button { width: 100%; padding: 12px; background: var(--primary); color: white; font-weight: 700; border: none; border-radius: 6px; cursor: pointer; }

/* CONTENT STYLES */
.entry-content p { margin-bottom: 1.5em; font-size: 1.1rem; }
.tech-table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 0.95rem; }
.tech-table th, .tech-table td { padding: 12px; border: 1px solid var(--border); text-align: left; }
.tech-table th { background: var(--bg-alt); width: 30%; }
code, pre { font-family: var(--font-code); background: #2d2d2d; color: #f8f8f2; padding: 3px 6px; border-radius: 4px; }
pre { padding: 20px; overflow-x: auto; font-size: 0.9rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }
    .toc-sticky, .newsletter-box { display: none; } /* Mobile simplification */
}
