/*
Theme Name: Resepdapoerku
Theme URI: https://example.com/resepdapoerku
Author: Netbits
Author URI: https://www.netbits.id
Description: A premium, modern professional news theme for recipes.
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: resepdapoerku
*/

/* 
   --------------------------------------------------------------
   1. Variables & Reset 
   --------------------------------------------------------------
*/
:root {
    /* Modern Professional Palette */
    --color-primary: #dc2626;
    /* Modern Red */
    --color-primary-dark: #b91c1c;
    /* Darker Red */
    --color-secondary: #0f172a;
    /* Slate 900 - Dark Heading */
    --color-text-main: #334155;
    /* Slate 700 - Body Text */
    --color-text-muted: #64748b;
    /* Slate 500 */
    --color-background: #f8fafc;
    /* Very light slate/white bg */
    --color-card-bg: #FFFFFF;
    --color-border: #e2e8f0;
    /* Light gray border */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    /* Clean, bold headings */
    --font-body: 'Inter', sans-serif;
    /* Highly readable body */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-background);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    /* Wider container for modern feel */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* 
   --------------------------------------------------------------
   2. Header 
   --------------------------------------------------------------
*/
.site-header {
    background-color: var(--color-primary);
    /* Red Background */
    border-bottom: 1px solid var(--color-primary-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    color: white;
    /* White text on red bg */
    font-weight: 800;
    letter-spacing: -0.5px;
}

.site-title a {
    color: white;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    margin: 0;
}

.main-navigation a {
    font-weight: 500;
    color: white;
    /* White menu items */
    font-size: 0.95rem;
}

.main-navigation a:hover {
    color: #facc15;
    /* Yellow hover */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    /* White hamburger icon */
}

/* 
   --------------------------------------------------------------
   3. Modern News Layout
   --------------------------------------------------------------
*/
.site-main {
    padding: var(--spacing-lg) 0;
}

.sit.hero-image {
    margin: 6rem 0;
    /* Doubled spacing */
}

.page-header {
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    align-items: flex-start;
    /* Align left */
    gap: 0.5rem;
    /* Space between breadcrumb and title */
}

.page-title {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin: 0;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--color-primary);
}

/* Featured Post (Hero Card) */
.news-featured {
    background: white;
    border-radius: var(--radius-lg);
    /* More rounded for modern feel */
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Soft, professional shadow */
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle border */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}



.news-featured .featured-thumbnail {
    height: 100%;
    /* Stretch to fill grid cell */
    min-height: 300px;
    /* Ensure minimum height */
    overflow: hidden;
}

.news-featured .featured-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ... existing styles ... */

.entry-content img {
    margin: 2rem auto;
    /* Center images */
    border-radius: var(--radius-sm);
    max-height: 600px;
    /* Cap height for tall images */
    width: auto;
    /* Maintain aspect ratio */
    max-width: 100%;
    display: block;
}

/* Pagination */
.pagination {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination .page-numbers.current {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

.news-featured .entry-content {
    padding: var(--spacing-md);
    /* Reduced from lg to md (1.5rem) */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.featured-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
    color: var(--color-secondary);
}

.featured-title a:hover {
    color: var(--color-primary);
}

.news-meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* News Grid (Subsequent posts) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.news-card {
    background: white;
    border: none;
    /* Removed border */
    border-radius: var(--radius-md);
    overflow: hidden;
    /* Removed transition */
    display: flex;
    flex-direction: column;
}

/* Removed .news-card:hover completely */

.news-card .post-thumbnail {
    height: 200px;
}

.news-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card .entry-content {
    padding: 0.25rem var(--spacing-md) var(--spacing-md);
    /* Top: 0.25rem (4px), Sides/Bottom: 1.5rem */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card .entry-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    /* Reduced margin */
    line-height: 1.4;
    color: var(--color-secondary);
}

.news-meta-small {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0;
    margin-bottom: 0.5rem;
    /* Added spacing below date */
    font-weight: 500;
}

.news-card .entry-excerpt {
    font-size: 0.95rem;
    color: #475569;
    /* Slate 600 */
    margin-bottom: 0.25rem;
    /* Reduced from spacing-sm */
    line-height: 1.5;
}


/* 
   --------------------------------------------------------------
   4. Single Post 
   --------------------------------------------------------------
*/
.single-recipe .entry-header {
    margin-bottom: var(--spacing-lg);
}

.single-recipe .entry-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.entry-meta {
    color: var(--color-text-muted);
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.hero-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.single-recipe .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-main);
}

/* Standard Content Formatting */
.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    line-height: 1.3;
}

.entry-content h2 {
    font-size: 1.8rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    /* Restore indentation */
}

.entry-content ul {
    list-style: disc;
    /* Restore bullets */
}

.entry-content ol {
    list-style: decimal;
    /* Restore numbers */
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    font-style: italic;
    color: var(--color-secondary);
}

.entry-content img {
    margin: 2rem 0;
    border-radius: var(--radius-sm);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.alignright {
    float: right;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-secondary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-submit {
    margin-bottom: 0;
}

.submit {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.submit:hover {
    background-color: var(--color-primary-dark);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs .separator {
    margin: 0 5px;
    color: #cbd5e1;
}

.breadcrumbs .current {
    color: var(--color-secondary);
}

/* Archive Pages */
.archive-title {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: var(--spacing-sm);
    display: inline-block;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.entry-tags {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.entry-tags .tags-label {
    font-weight: 700;
    color: var(--color-secondary);
    margin-right: 0.5rem;
}

.entry-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f1f5f9;
    /* Slate 100 */
    border-radius: 9999px;
    /* Pill shape */
    font-size: 0.85rem;
    color: var(--color-text-main);
    font-weight: 500;
    transition: all 0.2s ease;
}

.entry-tags a:hover {
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
}

.author-box .avatar {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.author-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--color-secondary);
}

.author-info p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.author-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary);
    text-decoration: none;
}

/* 
   --------------------------------------------------------------
   5. Footer 
   --------------------------------------------------------------
*/
.site-footer {
    background-color: var(--color-primary);
    /* Red Background */
    color: white;
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-lg);
    font-size: 0.9rem;
    border-top: none;
}

.site-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #facc15;
    /* Yellow hover */
    text-decoration: none;
}

.developer-credit {
    opacity: 0.8;
}

/* 
   --------------------------------------------------------------
   6. Responsiveness 
   --------------------------------------------------------------
*/
@media (max-width: 900px) {
    .news-featured {
        grid-template-columns: 1fr;
    }

    .news-featured .featured-thumbnail img {
        height: 250px;
        min-height: auto;
    }

    .layout-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--color-primary);
        /* Red background for mobile menu */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: var(--shadow-md);
        padding: var(--spacing-md);
        border-top: 1px solid var(--color-primary-dark);
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .single-recipe .entry-title {
        font-size: 2rem;
    }
}


/* 
   --------------------------------------------------------------
   7. Sidebar Layout 
   --------------------------------------------------------------
*/
.layout-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--spacing-lg);
    align-items: start;
}

.widget-area {
    background-color: transparent;
    /* Cleaner look */
    /* Sticky Sidebar */
    position: sticky;
    top: 90px;
    /* Offset for header */
}

.widget {
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--color-border);
    display: block;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.35rem 0;
    /* Reduced padding further */
    border-bottom: 1px dashed var(--color-border);
    display: flex;
    justify-content: flex-start;
    /* Align left */
    align-items: flex-start;
    /* Top align */
    gap: 0.75rem;
    /* Space between thumb and text */
}

.widget ul li img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget ul li:first-child {
    padding-top: 0;
}

.widget ul li a {
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    line-height: 1.3;
    /* Tighter line height */
    transition: color 0.15s ease;
    margin-top: -3px;
    /* Visual alignment with top of image */
}

.widget ul li a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
    /* Subtle nudge */
    display: inline-block;
    /* Required for transform */
}