/*
Theme Name: SageTitans Blog
Theme URI: https://www.sagetitans.com
Author: SageTitans
Author URI: https://www.sagetitans.com
Description: Lightweight custom theme for SageTitans blog. Optimized for performance and AI platforms.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sagetitans-blog
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 48px 0;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #0ea5e9;
}

.blog-card-excerpt {
    color: #666;
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #999;
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-more {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0284c7;
}

/* Single Post Layout */
.single-post-header {
    max-width: 900px;
    margin: 48px auto 32px;
    text-align: center;
}

.single-post-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    font-size: 15px;
    color: #666;
    margin-bottom: 32px;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Summarize in ChatGPT Button */
.summarize-chatgpt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10a37f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s ease;
    margin-left: 16px;
}

.summarize-chatgpt:hover {
    background: #0d8c6d;
}

/* Key Takeaways Box */
.key-takeaways {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 5px solid #0ea5e9;
    padding: 32px;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.key-takeaways-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.key-takeaways-icon {
    font-size: 32px;
}

.key-takeaways h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0c4a6e;
    margin: 0;
}

.key-takeaways-content {
    color: #1e40af;
    font-size: 16px;
    line-height: 1.8;
}

.key-takeaways-content ul {
    list-style: none;
    padding-left: 0;
}

.key-takeaways-content li {
    padding-left: 28px;
    margin-bottom: 12px;
    position: relative;
}

.key-takeaways-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0ea5e9;
    font-weight: bold;
    font-size: 18px;
}

/* Post Content */
.post-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding: 48px 24px;
}

.post-content {
    max-width: 800px;
}

.post-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #1a1a1a;
}

.post-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #1a1a1a;
}

.post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #333;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    margin-bottom: 12px;
}

.sidebar-widget a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-widget a:hover {
    color: #0ea5e9;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post-title {
        font-size: 32px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 12px;
    }
}

/* ========================================
   NAVIGATION FIXES FOR BLOG
======================================== */

/* Force dark background on navigation */
.st-nav {
    background: #0a1628 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

/* Ensure navigation is visible on scroll */
.st-nav.scrolled {
    background: #0a1628 !important;
}

/* Fix mega menu width and layout */
.st-mega {
    max-width: 1100px !important;
    width: 1100px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
}

.st-mega-inner {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    padding: 40px 32px !important;
    max-width: 100% !important;
}

.st-mega-col {
    min-width: 0 !important;
}

/* Mega menu links - keep them compact */
.st-mega-link {
    padding: 12px 0 !important;
    font-size: 14px !important;
}

.st-mega-link-name {
    font-size: 15px !important;
}

.st-mega-link-desc {
    font-size: 13px !important;
}

/* Featured CTA panel */
.st-mega-feat {
    padding: 24px !important;
}

/* Adjust body padding for fixed header */
body {
    padding-top: 90px !important;
}
