/*
Theme Name: Minimalist Grid Theme (Updated)
Author: Gemini AI
Version: 1.4
Description: A 900px centered deal-blog with a photo-friendly logo and 120px cards.
*/

/* --- 1. Reset & Core Layout --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.4;
    color: #333;
    margin: 0;
    background-color: #f4f7f9;
}

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

/* --- 2. Header & Nav --- */
.site-header {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: relative;
    z-index: 1000;
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.custom-logo-link img {
    max-height: 80px; 
    width: auto;
    display: block;
}

.site-title {
    margin: 0;
    font-size: 2.5rem; 
    font-weight: 800;
}

.site-title a {
    text-decoration: none;
    color: #222;
}

#site-navigation ul { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0; }
#site-navigation a { text-decoration: none; color: #555; font-size: 0.9rem; font-weight: 500; }

.menu-toggle {
    display: none; 
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- 3. Grid Structure --- */
.page-wrapper {
    display: flex;
    gap: 40px;
    padding-top: 30px;
}

.main-content {
    flex: 3;
}

.sidebar { 
    flex: 1;
    border-left: 1px solid #eee; 
    padding-left: 30px; 
}

/* --- 4. Post Card (Updated to 120px Height) --- */
.blog-grid { display: flex; flex-direction: column; gap: 12px; }

.post-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #fff;
    padding: 12px 15px; /* Added 2px extra vertical padding */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 120px;       /* Increased from 100px */
    box-sizing: border-box;
    overflow: hidden;
}

.post-image img, .placeholder-img {
    width: 85px;        /* Increased from 75px to match height */
    height: 85px;       /* Increased from 75px to match height */
    object-fit: contain;
    border-radius: 6px;
    background: #f9f9f9;
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.category-badge {
    background: #a0c3ff;
    color: white;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    width: fit-content;
    margin-bottom: 4px;
}

.post-title { margin: 0; font-size: 1.15rem; line-height: 1.2; }
.post-title a { color: #222; text-decoration: none; font-weight: 600; }
.post-meta { font-size: 0.85rem; color: #888; margin: 2px 0; }

/* --- 5. Action Side-Box --- */
.post-action {
    display: flex;
    align-items: center;
    padding-left: 15px;
    border-left: 1px dashed #ddd;
}

.get-deals-btn {
    display: inline-block;
    background-color: #0066cc;
    color: #ffffff !important;
    padding: 12px 20px; /* Slightly larger button for the taller card */
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* --- 6. Widgets & Sidebar --- */
.widget { margin-bottom: 30px; }
.widget-title { 
    font-size: 1.2rem; 
    border-bottom: 2px solid #333; 
    padding-bottom: 5px; 
    margin-bottom: 15px; 
}

.sidebar-widgets img { max-width: 100%; height: auto; }

/* --- 7. Single Post Styling --- */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

.post-tags a {
    color: #0066cc;
    text-decoration: none;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.single-post-featured-image img {
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.single-post-featured-image img:hover { transform: scale(1.01); }

/* --- 8. Mobile Responsiveness --- */
@media (max-width: 850px) {
    .page-wrapper { flex-direction: column; }
    .sidebar { display: none; }
    .menu-toggle { display: block; }
    .site-title { font-size: 1.8rem; }
    
    #site-navigation {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    #site-navigation.is-active { display: block !important; }
    #site-navigation ul { flex-direction: column; padding: 20px; }
}