/*
Theme Name: Bloggingpro
Theme URI: https://www.idtheme.com/bloggingpro/
Author: Gian MR
Author URI: http://www.gianmr.com/
Description: Clean design for Blog and news wordpress theme. By FADLI-BATAM
Version: 1.2.6
Requires at least: 5.5
Tested up to: 5.8
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bloggingpro
Tags: two-columns, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, featured-images, microformats, sticky-post, theme-options, threaded-comments, translation-ready, blog, e-commerce

Bloggingpro is based on Underscores http://underscores.me/, (C) 2012-2016 Automattic, Inc.

*/
/* =========================
   YouTube Style Post Feed
========================= */

.post-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card-thumb {
    position: relative;
}

.post-card-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-card-category {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e60023;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.post-card-body {
    padding: 12px;
}

.post-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.4;
}

.post-card-meta {
    font-size: 12px;
    color: #777;
}
/* Remove sidebar spacing on homepage */
@media (max-width: 768px) {
    #primary {
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
    }
}
/* =========================
   Search Results Layout
========================= */

/* Search layout like YouTube */

.search-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-card {
    display: flex;
    gap: 15px;
}

.search-thumb img {
    width: 220px;
    height: 124px;
    object-fit: cover;
    border-radius: 6px;
}

/* Konten kanan */
.search-body {
    flex: 1;
}

/* Judul di atas */
.search-title {
    font-size: 18px;
    margin: 0 0 5px;
}

/* Meta di bawah judul */
.search-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}

/* Excerpt paling bawah */
.search-excerpt {
    font-size: 14px;
    color: #444;
}
/* Bikin seluruh card jadi horizontal */
.search-card-link {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-decoration: none;
}

/* Thumbnail kiri */
.search-thumb {
    flex: 0 0 220px;
}

.search-thumb img {
    width: 100%;
    height: 124px;
    object-fit: cover;
    border-radius: 6px;
}
/* ========== CUSTOM NAVBAR MODIFIKASI ========== */
.custom-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    position: relative;
}

/* Logo Kiri */
.custom-logo {
    flex-shrink: 0;
}
.custom-logo img {
    max-height: 40px;
    width: auto;
}
.custom-logo .site-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
}
.custom-logo .site-title a {
    text-decoration: none;
    color: #1a1a1a;
}

/* Menu Kategori Tengah - Scroll Horizontal */
.custom-category-nav {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.custom-category-nav::-webkit-scrollbar {
    height: 3px;
}
.custom-category-nav::-webkit-scrollbar-track {
    background: #f0f0f0;
}
.custom-category-nav::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.custom-category-scroll {
    display: inline-flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.custom-category-scroll li {
    display: inline-block;
}
.custom-category-scroll li a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    padding: 4px 0;
    transition: color 0.2s;
}
.custom-category-scroll li a:hover {
    color: #000;
}

/* Search Kanan */
.custom-search {
    flex-shrink: 0;
}
.custom-search-toggle {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}
.custom-search-toggle:hover {
    background: #f5f5f5;
}

/* Search Modal */
.custom-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.custom-search-modal.active {
    display: flex;
}
.custom-search-modal-content {
    width: 90%;
    max-width: 500px;
    position: relative;
}
.custom-search-form {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 50px;
    overflow: hidden;
}
.custom-search-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
}
.custom-search-form button {
    padding: 0 25px;
    background: #000;
    color: white;
    border: none;
    cursor: pointer;
}
.custom-search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
    .custom-navbar {
        padding: 8px 0;
        gap: 12px;
    }
    .custom-logo img {
        max-height: 30px;
    }
    .custom-category-scroll {
        gap: 18px;
    }
    .custom-category-scroll li a {
        font-size: 0.7rem;
    }
    .custom-search-toggle {
        padding: 6px 12px;
    }
}
