/*
 Theme Name:   AirFryAndEat
 Description:  Custom child theme for AirFryAndEat - Easy Air Fryer Recipes
 Author:       AirFryAndEat
 Template:     generatepress
 Version:      1.0.1
 Text Domain:  airfryandeat-child
*/

/* ===========================================
   DESIGN SYSTEM
   =========================================== */

:root {
    /* Brand Colors */
    --afe-primary: #2B5EA7;
    --afe-primary-dark: #1E4478;
    --afe-primary-light: #E8F0FE;
    --afe-accent: #E8426F;
    --afe-accent-dark: #C73459;
    --afe-accent-light: #FFF0F3;
    --afe-warm: #D4854A;
    --afe-warm-light: #FFF5EB;

    /* Neutrals */
    --afe-bg: #FDFBF7;
    --afe-bg-alt: #F7F3EE;
    --afe-card-bg: #FFFFFF;
    --afe-text: #1A1A2E;
    --afe-text-secondary: #4B5563;
    --afe-text-muted: #9CA3AF;
    --afe-border: #E5E7EB;
    --afe-border-light: #F3F4F6;

    /* Radius */
    --afe-radius-sm: 8px;
    --afe-radius-md: 12px;
    --afe-radius-lg: 16px;
    --afe-radius-xl: 24px;
}


/* ===========================================
   OVERRIDE OLD CUSTOMIZER CSS
   =========================================== */

/* Remove heavy dark borders on images */
.wp-post-image {
    border: none !important;
    border-radius: var(--afe-radius-md) !important;
}

.wp-post-image:hover {
    border: none !important;
}

/* Override old blue pill post titles */
.post-title-tr1 {
    background-color: transparent !important;
    color: var(--afe-text) !important;
    padding: 0 !important;
    border-radius: 0 !important;
    text-align: left !important;
    font-weight: 700 !important;
    margin: 0 0 16px !important;
    line-height: 1.3 !important;
}

/* Improve recipe step headings */
.rs-af-h2 {
    color: var(--afe-primary);
    background: var(--afe-primary-light);
    border-radius: var(--afe-radius-md);
    padding: 14px 24px;
    margin: 48px 0 20px;
    border-left: 4px solid var(--afe-primary);
}

.rs-af-h3 {
    color: var(--afe-accent);
    margin: 24px 0 10px;
}

.rs-af-stp {
    color: #fff;
    background: var(--afe-accent);
    display: inline-block;
    padding: 4px 20px;
    border-radius: 50px;
    margin: 14px 0 9px;
    text-transform: uppercase;
}

.post-container-tr1 {
    background-color: var(--afe-bg-alt) !important;
    border-radius: var(--afe-radius-md);
    padding: 20px;
}

.post-recipe-steps-tr1 {
    background-color: var(--afe-primary-light) !important;
    border-radius: var(--afe-radius-md);
    padding: 16px 20px;
}


/* ===========================================
   HEADER & NAVIGATION
   =========================================== */

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item a {
    background: var(--afe-primary-dark) !important;
    color: #fff !important;
}


/* ===========================================
   HOMEPAGE - Full Width Layout
   =========================================== */

.afe-homepage .site-content {
    max-width: 100% !important;
    padding: 0 !important;
}

.afe-homepage #primary {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.afe-homepage #main {
    margin: 0;
    padding: 0;
}

/* Hero Section */
.afe-hero {
    background: linear-gradient(170deg, #eef3fb 0%, #fdf5ee 50%, #fef0f2 100%);
    padding: 70px 20px 60px;
    text-align: center;
    border-bottom: 1px solid var(--afe-border);
}

.afe-hero-inner {
    max-width: 660px;
    margin: 0 auto;
}

.afe-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--afe-text);
    margin: 0 0 12px;
    line-height: 1.2;
}

.afe-hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--afe-text-secondary);
    margin: 0 0 32px;
}

.afe-hero-search {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.afe-hero-search input[type="search"] {
    width: 100%;
    padding: 18px 60px 18px 26px;
    border: 2px solid var(--afe-border);
    border-radius: 50px;
    font-size: 16px;
    background: #fff;
    color: var(--afe-text);
    outline: none;
}

.afe-hero-search input[type="search"]:focus {
    border-color: var(--afe-primary);
}

.afe-hero-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: var(--afe-primary);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afe-hero-search button:hover {
    background: var(--afe-primary-dark);
}

.afe-hero-search button svg {
    width: 20px;
    height: 20px;
}


/* Section shared styles */
.afe-section {
    padding: 64px 20px;
}

.afe-section-alt {
    background: var(--afe-bg-alt);
}

.afe-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.afe-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.afe-section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--afe-text);
    margin: 0 0 8px;
}

.afe-section-subtitle {
    font-size: 17px;
    color: var(--afe-text-muted);
    margin: 0;
    font-weight: 400;
}

.afe-section-title .afe-title-accent {
    color: var(--afe-accent);
}


/* Popular Recipes Grid */
.afe-popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.afe-popular-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--afe-text);
    text-align: center;
}

.afe-popular-card:hover .afe-popular-card-title {
    color: var(--afe-primary);
}

.afe-popular-card-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--afe-radius-lg);
    overflow: hidden;
    margin-bottom: 14px;
}

.afe-popular-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--afe-radius-lg);
}

.afe-popular-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px;
    color: var(--afe-text);
}

.afe-popular-card-cat {
    font-size: 13px;
    color: var(--afe-text-muted);
    font-weight: 500;
}


/* Categories Section */
.afe-categories-section {
    padding: 48px 20px;
    background: #fff;
    border-bottom: 1px solid var(--afe-border);
}

.afe-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.afe-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--afe-text);
    text-align: center;
}

.afe-category-item:hover .afe-category-name {
    color: var(--afe-primary);
}

.afe-category-thumb {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    border: 3px solid var(--afe-border-light);
}

.afe-category-item:hover .afe-category-thumb {
    border-color: var(--afe-primary);
}

.afe-category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.afe-category-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--afe-text);
}

.afe-category-count {
    font-size: 13px;
    color: var(--afe-text-muted);
    font-weight: 400;
}




/* About Section */
.afe-about {
    background: var(--afe-primary-dark);
    padding: 48px 20px;
}

.afe-about-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.afe-about-avatar {
    flex-shrink: 0;
}

.afe-about-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.25);
}

.afe-about-content {
    color: #fff;
}

.afe-about-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 4px;
}

.afe-about-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}

.afe-about-bio {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    margin: 0 0 10px;
}

.afe-about-link {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.afe-about-link:hover {
    color: #fff;
}


/* ===========================================
   ARCHIVE / CATEGORY PAGES
   Default GP vertical list layout preserved
   for ad network compatibility (Mediavine/AdSense).
   Ad scripts inject divs between articles in #main --
   CSS grid or overflow:hidden would break ad display.
   =========================================== */


/* Pagination */
.paging-navigation .nav-links,
.pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 0;
}

.paging-navigation .nav-links a,
.paging-navigation .nav-links span,
.pagination .nav-links a,
.pagination .nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--afe-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.paging-navigation .nav-links a,
.pagination .nav-links a {
    background: var(--afe-card-bg);
    color: var(--afe-text);
    border: 1px solid var(--afe-border);
}

.paging-navigation .nav-links a:hover,
.pagination .nav-links a:hover {
    background: var(--afe-primary);
    color: #fff;
}

.paging-navigation .nav-links .current,
.pagination .nav-links .current {
    background: var(--afe-primary);
    color: #fff;
}


/* ===========================================
   SINGLE POST
   =========================================== */

body.single .entry-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--afe-border-light);
}

body.single .entry-meta a:hover {
    color: var(--afe-accent);
}

body.single .entry-content img {
    border-radius: var(--afe-radius-md);
}

/* Post tags */
body.single .post-tags a {
    display: inline-block;
    padding: 4px 14px;
    background: var(--afe-bg-alt);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--afe-text-secondary);
    margin: 3px;
}

body.single .post-tags a:hover {
    background: var(--afe-primary);
    color: #fff;
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--afe-border-light);
}

.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form textarea {
    border: 2px solid var(--afe-border);
    border-radius: var(--afe-radius-sm);
    padding: 12px 16px;
}

.comments-area .comment-form input:focus,
.comments-area .comment-form textarea:focus {
    border-color: var(--afe-primary);
    outline: none;
}

.comments-area .form-submit input[type="submit"] {
    background: var(--afe-primary);
    color: #fff;
    font-weight: 700;
    padding: 12px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 14px;
}

.comments-area .form-submit input[type="submit"]:hover {
    background: var(--afe-primary-dark);
}


/* ===========================================
   SIDEBAR
   =========================================== */

.widget {
    background: var(--afe-card-bg);
    border-radius: var(--afe-radius-lg);
    padding: 24px;
    border: 1px solid var(--afe-border);
    margin-bottom: 24px;
}

.widget-title {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--afe-border-light);
}


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

.site-footer {
    background: linear-gradient(135deg, var(--afe-primary) 0%, var(--afe-primary-dark) 100%) !important;
    color: rgba(255,255,255,0.8);
}

.site-footer a {
    color: rgba(255,255,255,0.9);
}

.site-footer a:hover {
    color: #fff;
}


/* ===========================================
   WP RECIPE MAKER CARD
   =========================================== */

.wprm-recipe-container {
    border-radius: var(--afe-radius-lg) !important;
    margin: 32px 0;
}


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

@media (max-width: 1024px) {
    .afe-popular-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .afe-categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px 16px;
    }

    .afe-category-thumb {
        width: 100px;
        height: 100px;
    }

    .afe-about-inner {
        flex-direction: column;
        text-align: center;
    }

    .afe-section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .afe-hero {
        padding: 48px 16px 40px;
    }

    .afe-hero-title {
        font-size: 30px;
    }

    .afe-hero-subtitle {
        font-size: 16px;
    }

    .afe-section {
        padding: 40px 16px;
    }

    .afe-section-title {
        font-size: 26px;
    }

    .afe-popular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .afe-popular-card-title {
        font-size: 16px;
    }

    .afe-categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px 10px;
    }

    .afe-category-thumb {
        width: 80px;
        height: 80px;
    }

    .afe-category-name {
        font-size: 14px;
    }

    .afe-category-count {
        font-size: 12px;
    }

    .afe-about {
        padding: 36px 16px;
    }

    .afe-about-inner {
        flex-direction: column;
        text-align: center;
    }

    .afe-about-avatar img {
        width: 80px;
        height: 80px;
    }

    .afe-about-name {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .afe-trending-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .afe-popular-card-title {
        font-size: 14px;
    }

    .afe-categories-section {
        padding: 32px 12px;
    }

    .afe-category-thumb {
        width: 70px;
        height: 70px;
    }

    .afe-category-name {
        font-size: 13px;
    }

}
