/*
Theme Name: GeniusJackal
Author: Sam 
Description: AI tools, productivity, marketing and practical personal finance.
Version: 1.0
Text Domain: airoot
Tags: blog, editorial, custom-menu, featured-images, threaded-comments, translation-ready
*/

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #f8f7f4;
    margin: 0;
}

a {
    color: #00695c;
    text-decoration: none;
}

a:hover {
    color: #004d40;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.site-title a {
    color: inherit;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 500;
    color: #333;
}

.search-form {
    display: flex;
}

.search-form input[type="search"] {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 50px 0 0 50px;
    width: 260px;
    font-size: 0.95rem;
}

.search-form button {
    padding: 10px 20px;
    background: #00695c;
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #e0f2f1 0%, #f1f8e9 100%);
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 760px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.hero p {
    font-size: 1.25rem;
    color: #555;
}

/* Featured Post */
.featured-post {
    margin-bottom: 4rem;
}

.featured-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.post-category {
    color: #00695c;
    font-weight: 600;
}

/* Sections */
.section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    margin: 0;
}

.ai-section { border-top: 4px solid #00695c; }
.finance-section { border-top: 4px solid #2e7d32; }

/* Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-8px);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card h3 {
    font-size: 1.35rem;
    line-height: 1.4;
    margin: 0 0 0.75rem;
}

.card .post-meta {
    font-size: 0.85rem;
}

/* Sidebar */
.sidebar {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.widget {
    margin-bottom: 2.5rem;
}

/* Single Post */
.single-post-header {
    margin-bottom: 3rem;
}

.single-featured-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.entry-content {
    max-width: 760px;
    font-size: 1.1rem;
    line-height: 1.85;
}

.entry-content h2, .entry-content h3 {
    margin-top: 2.5em;
    color: #1a1a1a;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .main-navigation ul.show {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}