/*
Theme Name: AKD Recipe Theme
Theme URI: https://akdelicatessen.com.br
Author: Denise A B
Author URI: https://akdelicatessen.com.br
Description: Tema otimizado para Google Discover - Ultra-leve e focado em receitas
Version: 1.0.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: akd-recipe
Tags: blog, food, recipes, seo-optimized, discover-ready
*/

/*===========================================
========== VARIÁVEIS CSS (ROOT) ============
===========================================*/

:root {
    /* Cores principais */
    --primary-color: #cc342e;
    --primary-hover: #680370;
    --text-color: #212121;
    --bg-color: #FFFFFF;
    --header-bg: #EAEAEA;
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-size-base: 1rem;
    --font-size-h1: 1.8rem;
    --font-size-h2: 1.6rem;
    --font-size-h3: 1.4rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Container */
    --container-width: 1140px;
    --content-width: 800px;
}

/*===========================================
============= RESET & BASE =================
===========================================*/

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/*===========================================
============== TYPOGRAPHY ==================
===========================================*/

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

p {
    margin-bottom: var(--spacing-sm);
}

/*===========================================
=============== LAYOUT =====================
===========================================*/

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.content-wrapper {
    max-width: var(--content-width);
    margin: 0 auto;
}

/*===========================================
============== HEADER ======================
===========================================*/

.site-header {
    background: var(--header-bg);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid #ddd;
}

.site-title {
    margin: 0;
    font-size: var(--font-size-h1);
}

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

/*===========================================
========== NAVEGAÇÃO =======================
===========================================*/

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.main-navigation a {
    color: var(--text-color);
    padding: var(--spacing-xs);
}

/*===========================================
============= RECEITA ======================
===========================================*/

.recipe-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.recipe-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: #f8f9fa;
    border-radius: 8px;
    margin: var(--spacing-lg) 0;
}

.recipe-meta-item {
    text-align: center;
}

.recipe-meta-label {
    font-size: 0.875rem;
    color: #6c757d;
    display: block;
}

.recipe-meta-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
}

.recipe-ingredients,
.recipe-instructions {
    margin: var(--spacing-lg) 0;
}

.recipe-ingredients h2,
.recipe-instructions h2 {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.recipe-ingredients ul {
    list-style: none;
    padding-left: 0;
}

.recipe-ingredients li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-md);
    position: relative;
}

.recipe-ingredients li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.recipe-instructions ol {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.recipe-instructions li {
    counter-increment: step-counter;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    padding-left: 3.5rem;
}

.recipe-instructions li:before {
    content: counter(step-counter);
    position: absolute;
    left: var(--spacing-md);
    top: var(--spacing-md);
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/*===========================================
============= FOOTER =======================
===========================================*/

.site-footer {
    background: var(--header-bg);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
    text-align: center;
    border-top: 1px solid #ddd;
}

/*===========================================
============ RESPONSIVE ====================
===========================================*/

@media (max-width: 768px) {
    :root {
        --font-size-h1: 1.5rem;
        --font-size-h2: 1.3rem;
        --font-size-h3: 1.2rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .recipe-meta {
        grid-template-columns: 1fr;
    }
}

/*===========================================
=========== UTILITIES ======================
===========================================*/

.text-center { text-align: center; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
