/*
Theme Name: Eeasy English Recipe Blog
Theme URI: https://eeasyenglish.com
Author: Smita Shah
Description: A beautiful, responsive recipe blog theme.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eeasyenglish
*/

/* CSS Variables for Theme */
:root {
    --primary-color: #F7C010;
    --primary-hover: #e0ac0a;
    --text-main: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-dark: #222222;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius-lg: 12px;
    --border-radius-md: 8px;
    --border-radius-sm: 4px;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

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

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background: var(--bg-light);
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 800;
}

.header-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
}

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

.signup-text a {
    text-decoration: underline;
    font-weight: 700;
}

.btn-signup {
    background-color: var(--primary-color);
    color: #000;
    padding: 6px 15px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
}

.btn-login {
    background-color: #e5e5e5;
    color: #000;
    padding: 6px 15px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
}

.header-bottom {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 800;
    color: #000;
    text-transform: none;
}

.main-nav i {
    font-size: 12px;
    margin-left: 4px;
}

.search-icon-large {
    font-size: 20px;
    color: #000;
}

.search-wrap button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-main);
    font-size: 16px;
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    margin: 30px 0;
    padding: 0 20px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 500px;
}

.hero-main {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.hero-main::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.hero-content {
    position: relative;
    padding: 40px;
    color: white;
    z-index: 2;
}

.tag {
    display: inline-block;
    background: var(--primary-color);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
}

.hero-content h2 a {
    color: white;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    display: block;
    margin-bottom: 15px;
}

.hero-content .meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.hero-content .rating {
    color: var(--primary-color);
}

.hero-sidebar {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.sidebar-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.sidebar-content {
    position: relative;
    padding: 20px;
    z-index: 2;
}

.sidebar-content h3 a {
    color: white;
    font-size: 22px;
}

/* ==========================================================================
   FEATURES BANNERS
   ========================================================================== */
.features {
    background: var(--bg-gray);
    padding: 30px 0;
    margin-bottom: 50px;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #000;
}

.feature-text h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 13px;
    color: var(--text-light);
}

/* FEATURED GRID
   ========================================================================== */
.featured-grid-section {
    margin-top: 40px;
    margin-bottom: 50px;
}
.fg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-rows: minmax(280px, 1fr);
}
.fg-card {
    position: relative;
    display: flex;
    flex-direction: column;
}
.fg-large {
    grid-row: span 2;
}
.fg-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.fg-card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #fff;
    padding: 15px 20px;
    z-index: 2;
    max-width: 85%;
}
.fg-card-content h3 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    line-height: 1.2;
}
.fg-large .fg-card-content h3 {
    font-size: 24px;
}
.fg-card-content .meta {
    font-size: 12px;
    color: var(--text-light);
}

/* ==========================================================================
   CATEGORIES
   ========================================================================== */
.categories {
    margin-bottom: 50px;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.category-header h2 {
    font-size: 24px;
    text-transform: uppercase;
    white-space: nowrap;
    margin-right: 15px;
}

.category-header .line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--primary-color);
}

.category-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    row-gap: 40px;
    column-gap: 20px;
    padding-bottom: 10px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 100px;
}

.cat-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.category-item:hover .cat-img {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.category-item span {
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
}

.yellow-circle {
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 14px;
    color: #000;
    text-align: center;
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 24px;
    text-transform: uppercase;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.view-all-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all-link:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   RECIPE GRID & CARDS
   ========================================================================== */
.latest-recipes {
    margin-bottom: 60px;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.recipe-card {
    display: flex;
    flex-direction: column;
}

.recipe-card .img-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 4/3;
}

.recipe-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recipe-card:hover .img-wrapper img {
    transform: scale(1.05);
}

.new-recipes-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.new-recipes-header h2 {
    font-family: 'Comic Sans MS', 'Comic Neue', 'Chalkboard SE', cursive;
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin: 0;
    letter-spacing: 0.5px;
}

.new-recipes-header a {
    font-size: 14px;
    font-weight: 700;
    color: #d82b6b; /* Pink/Red color from image */
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid #d82b6b;
    padding-bottom: 2px;
    letter-spacing: 1px;
}

.new-recipes-header a:hover {
    color: #b51c55;
    border-bottom-color: #b51c55;
}

.clean-card .img-wrapper {
    aspect-ratio: 1; /* Square images like Budget Bytes */
    border-radius: 0; /* Remove rounded corners */
}

.clean-card h3 {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 5px;
}

.clean-card .meta {
    font-size: 12px;
    color: var(--text-light);
}

.recipe-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.recipe-card h3 a:hover {
    color: var(--primary-color);
}

.recipe-card .meta {
    font-size: 13px;
    color: var(--text-muted);
}

.recipe-card .rating {
    color: var(--primary-color);
    margin-right: 5px;
    font-size: 12px;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
    background: var(--bg-dark);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-content p {
    color: #ccc;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: #000;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #111;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-about p {
    margin-bottom: 20px;
}

.footer-about .social-icons a {
    color: white;
    background: #333;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.footer-about .social-icons a:hover {
    background: var(--primary-color);
    color: #000;
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
}

/* ==========================================================================
   CATEGORY PAGE SPECIFIC
   ========================================================================== */
.category-hero {
    padding: 60px 0;
    margin-bottom: 40px;
}

.cat-hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.cat-hero-text {
    flex: 1;
}

.cat-hero-text h1 {
    font-size: 52px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    line-height: 1;
}

.cat-hero-text p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.cat-hero-img {
    flex: 0 0 350px;
}

.cat-hero-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.subcat-filter {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

.subcat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    gap: 15px;
}

.subcat-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.subcat-item:hover .subcat-img {
    transform: scale(1.05);
}

.subcat-item span {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

.category-section {
    margin-bottom: 60px;
}

.cat-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cat-btn-wrap {
    margin-top: 30px;
    text-align: left;
}

.btn-outline {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid #000;
    color: #000;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    margin-bottom: 80px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    border-radius: 4px;
}

.page-numbers.current, .page-numbers:hover:not(.dots) {
    background-color: var(--primary-color);
    color: #000;
}

.page-numbers.dots {
    background: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .cat-hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }
    
    .cat-hero-img {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .cat-hero-text h1 {
        font-size: 42px;
    }
    
    .subcat-filter {
        justify-content: center;
        flex-wrap: wrap;
    }

    .fg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fg-large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 400px;
    }

    .category-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .hero-main {
        height: 400px;
    }
    
    .hero-sidebar {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 250px;
    }

    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cat-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-sidebar {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .fg-grid {
        grid-template-columns: 1fr;
    }
    .fg-large {
        grid-column: span 1;
    }

    .category-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .new-recipes-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .new-recipes-header h2 {
        font-size: 28px;
    }
    
    .recipe-grid {
        grid-template-columns: 1fr;
    }
    
    .cat-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .features-container {
        grid-template-columns: 1fr;
    }
}
