/*
Theme Name: BentoMinimal
Theme URI: https://example.com/bentominimal
Author: Custom Developer
Description: A clean, minimal WordPress theme with a Japanese aesthetic, perfect for bento box and cute lunch blogs. Focuses heavily on beautiful featured images.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: bentominimal
*/

body {
    background-color: #fcfbfa;
    color: #4a4a4a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

a {
    color: #e07a5f;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #3d5a80;
}

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

/* Header */
.site-header {
    text-align: center;
    padding: 60px 0 40px 0;
    background-size: cover;
    background-position: center;
}

.site-title {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 300;
    letter-spacing: 2px;
}

.site-title a {
    color: #2b2d42;
}

.site-description {
    font-size: 0.95rem;
    color: #8d99ae;
    font-style: italic;
    margin: 0;
}

/* Top Horizontal Navigation Bar */
.top-navigation-bar {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #111111;
    margin-top: 20px;
}

.top-nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-navigation-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.top-navigation-bar ul li a {
    display: block;
    padding: 15px 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    font-weight: 500;
}

.top-navigation-bar ul li a:hover {
    opacity: 0.8;
}

/* Structural Theme Border Wrapper */
.header-separator {
    border-bottom: 1px dashed #e0dcd5;
    width: 100%;
    margin-top: 10px;
}

/* Layout Main Split */
.content-area {
    display: flex;
    margin-top: 50px;
    gap: 50px;
}

.main-content {
    flex: 3;
    min-width: 0;
}

.sidebar-content {
    flex: 1;
    min-width: 250px;
}

/* Navigation lists inside widgets */
.widget_nav_menu ul, 
.widget-navigation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_nav_menu ul li, 
.widget-navigation-list li {
    border-bottom: 1px solid #fcfbfa;
    padding: 8px 0;
}

.widget_nav_menu ul li a, 
.widget-navigation-list li a {
    font-size: 0.95rem;
    display: block;
}

/* Loop & Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px 30px;
}

.bento-card {
    background: #ffffff;
    border: 1px solid #f0ede9;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.featured-image-link {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f5f5f5;
}

.featured-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-excerpt {
    padding: 20px;
}

.post-card-excerpt h2 {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    font-weight: 400;
}

/* Single Post & Page view */
.article-single {
    background: #ffffff;
    padding: 40px;
    border: 1px solid #f0ede9;
    border-radius: 4px;
}

.single-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 4px;
}

/* Sidebar Widgets */
.widget {
    background: #ffffff;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #f0ede9;
    border-radius: 4px;
}

.widget-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #e07a5f;
    display: inline-block;
    padding-bottom: 3px;
}

/* Footer */
.site-footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px dashed #e0dcd5;
    text-align: center;
    font-size: 0.9rem;
    color: #8d99ae;
}

@media (max-width: 768px) {
    .content-area {
        flex-direction: column;
    }
    .sidebar-content {
        width: 100%;
    }
    .top-navigation-bar ul {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }
    .top-navigation-bar ul li a {
        padding: 10px 0;
    }
}