/*
Theme Name: Gift News Elementor
Theme URI: https://example.com/gift-news-elementor
Author: AI Gift Dev
Author URI: https://example.com
Description: A lightweight, gift-focused affiliate theme optimized for Elementor. Features soft red/gold branding and clean typography.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gift-news
*/

:root {
    --gift-red: #E57373;
    --gift-red-dark: #D32F2F;
    --gift-gold: #F59E0B;
    --gift-cream: #FFF5F5;
    --gift-rose: #FFE4E6;
    --text-main: #1E293B;
    --text-light: #64748B;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Merriweather', serif;
    --container-width: 1140px;
}

/* Reset & Base */
* { box-sizing: border-box; }
body {
    background-color: var(--gift-cream);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1rem;
}

a { color: var(--gift-red); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--gift-red-dark); }
img { max-width: 100%; height: auto; border-radius: 8px; }

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--gift-rose);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.site-brand { font-family: var(--font-serif); font-weight: 700; font-size: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.site-brand span { color: var(--gift-red); }
.main-navigation ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 20px; }
.main-navigation a { color: var(--text-light); font-weight: 500; font-size: 0.95rem; }
.main-navigation a:hover { color: var(--gift-red); }

/* Breadcrumbs */
.gift-breadcrumb {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}
.gift-breadcrumb a { color: var(--text-light); }
.gift-breadcrumb .separator { margin: 0 8px; color: #cbd5e1; }

/* Blog Grid (Archive & Index) */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.blog-card {
    background: #fff;
    border: 1px solid var(--gift-rose);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.card-image { height: 200px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.blog-card:hover .card-image img { transform: scale(1.05); }
.card-content { padding: 1.5rem; }
.card-meta { font-size: 0.75rem; color: var(--text-light); margin-bottom: 0.5rem; display: flex; gap: 10px; }
.card-title { font-size: 1.25rem; margin-bottom: 0.5rem; line-height: 1.3; }
.read-more { font-size: 0.875rem; font-weight: 600; color: var(--gift-gold); }

/* Single Post */
.single-post-container { max-width: 760px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); margin-bottom: 3rem; }
.post-header { text-align: center; margin-bottom: 2rem; border-bottom: 1px solid var(--gift-rose); padding-bottom: 2rem; }
.post-meta { justify-content: center; margin-bottom: 1rem; }
.post-content { font-size: 1.125rem; color: #334155; }
.post-content p { margin-bottom: 1.5rem; }
.post-content h2 { margin-top: 2.5rem; color: var(--gift-red-dark); }

/* Elementor Canvas Fixes */
.elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--container-width); }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--gift-rose); padding: 3rem 0; margin-top: auto; text-align: center; font-size: 0.875rem; color: var(--text-light); }