/*
Theme Name: CookGator
Theme URI: https://cookgator.com
Author: Antigravity AI
Author URI: https://cookgator.com
Description: A minimalist, ultra-fast, HTML5/CSS3/Vanilla JS WordPress theme designed specifically for recipe blogs (Air Fryer & Oven). Optimized for Core Web Vitals and AI SEO.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cookgator
*/

/* Reset & Base */
:root {
    --primary-color: #d35400;
    --text-color: #333333;
    --bg-color: #ffffff;
    --light-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e67e22;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    color: var(--text-color);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.site-main {
    padding: 3rem 0;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-color);
    transition: transform 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.post-card-thumbnail img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.post-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.single-post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.single-post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.single-post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.single-post-thumbnail img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
}

.single-post-content h2, .single-post-content h3 {
    margin: 2rem 0 1rem;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.site-footer {
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

/* Mobile Nav */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    .main-navigation.is-active {
        display: block;
    }
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
}
