/*
Theme Name: GuideBean
Description: A clean, information-oriented tutorial blog theme.
Author: Antigravity
Version: 1.1
*/

:root {
    --primary: #2563eb; /* blue-600 */
    --primary-hover: #3b82f6; /* blue-500 */
    --text-dark: #111827; /* gray-900 */
    --text-muted: #4b5563; /* gray-600 */
    --bg-light: #f9fafb; /* gray-50 */
    --border: #e5e7eb; /* gray-200 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
    background: #ffffff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }

/* SVG Icons */
svg.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.icon-check { width: 20px; height: 20px; fill: none; stroke: #22c55e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-right: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 9999px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.3s; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo a { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: bold; color: var(--text-dark); }
.logo svg { color: var(--primary); }
.main-navigation ul { display: flex; gap: 24px; }
.main-navigation a { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color 0.3s; }
.main-navigation a:hover { color: var(--primary); }

/* Hero Section */
.hero-section { padding: 80px 0 120px; position: relative; overflow: hidden; }
.hero-title { font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 24px; }
.hero-title span { color: var(--primary); }
.hero-subtitle { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 32px; }
.hero-benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 40px; color: var(--text-muted); font-size: 14px; }
.hero-benefits li { display: flex; align-items: center; }

.subscribe-form { display: flex; flex-direction: column; gap: 12px; max-width: 450px; margin: 0 auto; }
.subscribe-form input { flex: 1; padding: 14px 20px; border-radius: 9999px; border: 1px solid #d1d5db; font-size: 14px; width: 100%; box-sizing: border-box; }
.subscribe-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2); }
@media(min-width: 640px) {
    .subscribe-form { flex-direction: row; }
}

/* Post Grid Section */
.post-grid-section { padding: 80px 0; }
.section-header { margin-bottom: 64px; }
.section-header h2 { font-size: 36px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; letter-spacing: -0.02em; }
.section-header p { font-size: 18px; color: var(--text-light); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* Content Layout (Sidebar + Main) */
.content-layout { display: flex; flex-direction: column; gap: 48px; }

/* Sidebar */
.sidebar { width: 100%; }
.sidebar-sticky { position: sticky; top: 100px; }
.banner-widget { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #eff6ff; border-radius: 16px; border: 1px solid var(--border); padding: 40px 24px; position: relative; overflow: hidden; transition: border-color 0.3s; aspect-ratio: 4/5; }
.banner-widget:hover { border-color: var(--primary); }
.banner-badge { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.8); backdrop-filter: blur(4px); padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: bold; color: var(--text-muted); letter-spacing: 1px; }
.banner-icon { width: 64px; height: 64px; background: #dbeafe; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--primary); }
.banner-icon svg { width: 32px; height: 32px; }
.banner-widget h3 { font-size: 20px; font-weight: bold; color: var(--text-dark); margin-bottom: 12px; transition: color 0.3s; }
.banner-widget:hover h3 { color: var(--primary); }
.banner-widget p { font-size: 14px; color: var(--text-light); margin-bottom: 24px; line-height: 1.5; }

/* Main Content */
.main-content { flex: 1; }
.post-grid { display: flex; flex-direction: column; gap: 32px; }

/* Post Card */
.post-card { background: #fff; border-radius: 16px; border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.3s; }
.post-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.post-thumbnail-link { width: 100%; flex-shrink: 0; display: block; }
.post-thumbnail { position: relative; padding-top: 56.25%; /* 16:9 Aspect Ratio */ background: var(--bg-light); overflow: hidden; }
.post-thumbnail img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-thumbnail img { transform: scale(1.05); }

.post-content { padding: 24px; display: flex; flex-direction: column; flex: 1; justify-content: center; }
.post-category a { display: inline-block; background: #eff6ff; color: var(--primary); padding: 6px 12px; border-radius: 9999px; font-size: 12px; font-weight: 500; margin-bottom: 16px; }
.post-title { font-size: 18px; font-weight: 600; margin: 0 0 12px 0; line-height: 1.4; }
.post-title a:hover { color: var(--primary); }
.post-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; flex: 1; }
.read-more { font-size: 14px; font-weight: 500; color: var(--primary); display: inline-flex; align-items: center; margin-top: auto; }
.read-more .arrow { transition: transform 0.2s; margin-left: 4px; }
.post-card:hover .read-more .arrow { transform: translateX(4px); }

@media(min-width: 1024px) {
    .content-layout { flex-direction: row; }
    .sidebar { width: 320px; flex-shrink: 0; }
}

@media(min-width: 640px) {
    .post-card { flex-direction: row; align-items: stretch; }
    .post-thumbnail-link { width: 33.333%; }
    .post-thumbnail { height: 100%; padding-top: 0; min-height: 240px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0; background: #fff; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; }
.footer-links { display: flex; gap: 24px; justify-content: center; }
.footer-links a { font-size: 14px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text-dark); }
.footer-info { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: bold; font-size: 18px; color: var(--text-dark); }
.footer-logo svg { color: var(--primary); }
.copyright { font-size: 12px; color: #6b7280; margin: 0; }
.disclaimer { font-size: 12px; color: #9ca3af; margin: 0; max-width: 450px; }

@media(min-width: 768px) {
    .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
    .footer-links { order: 2; }
    .footer-info { order: 1; align-items: flex-start; }
}
