/*
Theme Name: Bao Dzen Modern Street
Description: Zen Street Modernism Design for Bao Dzen Blog
Author: Senior Frontend Designer
Version: 1.0
*/

:root {
    --c-bg: #0A0A0B;
    --c-text: #EDF2F4;
    --c-primary: #D90429;
    --c-secondary: #EF233C;
    --c-muted: #8D99AE;
    --c-border: rgba(255,255,255,0.1);
    --f-main: 'Inter', sans-serif;
    --f-display: 'Noto Serif JP', serif;
    --sidebar-w: 280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout */
.site-main {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-w);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #000;
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    padding: 40px;
    z-index: 100;
}

.content-area {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
    padding-bottom: 0;
}

/* Logo */
.logo {
    font-family: var(--f-display);
    font-size: 2.5rem;
    color: var(--c-primary);
    text-decoration: none;
    line-height: 1;
    margin-bottom: 60px;
    display: block;
    position: relative;
}

.logo::after {
    content: "包";
    position: absolute;
    right: -20px;
    top: -10px;
    font-size: 4rem;
    opacity: 0.1;
    color: #fff;
}

/* Nav */
.side-nav ul { list-style: none; }
.side-nav li { margin-bottom: 25px; }
.side-nav a {
    color: var(--c-muted);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: 0.3s;
}
.side-nav a:hover, .side-nav .current-menu-item a {
    color: var(--c-primary);
    padding-left: 10px;
}

.side-contacts {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--c-muted);
}

.side-contacts p { margin-bottom: 15px; }

/* Hero */
.hero {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 8%;
    background: #000;
    overflow: hidden;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-tag {
    color: var(--c-primary);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 900;
    margin-bottom: 20px;
    display: block;
}
.hero h1 {
    font-family: var(--f-display);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
}

/* Marquee */
.marquee {
    background: var(--c-primary);
    color: #000;
    padding: 15px 0;
    font-weight: 900;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-size: 1.2rem;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Post Grid */
.section-padding { padding: 100px 8%; }
.grid-header { margin-bottom: 60px; border-left: 5px solid var(--c-primary); padding-left: 30px; }
.grid-header h2 { font-family: var(--f-display); font-size: 3rem; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.bao-card {
    background: #111;
    border: 1px solid var(--c-border);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.bao-card:hover { border-color: var(--c-primary); transform: translateY(-10px); }

.card-img-wrap {
    height: 300px;
    overflow: hidden;
    position: relative;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}
.bao-card:hover .card-img { transform: scale(1.1); }

.card-cat {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--c-primary);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.card-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.card-date { font-size: 0.8rem; color: var(--c-muted); margin-bottom: 10px; display: block; }
.card-body h3 { font-family: var(--f-display); font-size: 1.5rem; margin-bottom: 15px; line-height: 1.3; }
.card-excerpt { color: var(--c-muted); font-size: 0.95rem; margin-bottom: 25px; }

.card-btn {
    margin-top: auto;
    color: var(--c-text);
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--c-primary);
    display: inline-block;
    padding-bottom: 5px;
    align-self: flex-start;
}

/* Pagination */
.bao-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 80px;
}
.page-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: var(--c-text);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--c-border);
    transition: 0.3s;
}
.page-link:hover, .page-link.current {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

/* Footer */
.site-footer {
    background: #000;
    padding: 80px 8%;
    border-top: 1px solid var(--c-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
}
.footer-col h4 {
    font-family: var(--f-display);
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--c-primary);
}
.footer-contact { list-style: none; }
.footer-contact li { margin-bottom: 20px; }
.footer-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--c-muted);
    margin-bottom: 5px;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--c-muted);
}

/* Single Page */
.single-hero {
    height: 60vh;
    background: #000;
    display: flex;
    align-items: flex-end;
    padding: 80px 8%;
    position: relative;
}
.single-hero-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.4;
}
.single-header { position: relative; z-index: 2; max-width: 900px; }
.single-header h1 { font-family: var(--f-display); font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 20px; }

.entry-content {
    max-width: 850px;
    margin: 60px auto;
    font-size: 1.1rem;
    line-height: 1.8;
}
.entry-content p { margin-bottom: 30px; }
.entry-content h2, .entry-content h3 { font-family: var(--f-display); margin: 50px 0 20px; color: var(--c-primary); }

/* Responsive */
@media (max-width: 1200px) {
    .sidebar { width: 80px; padding: 20px; }
    .side-nav a span { display: none; }
    .content-area { margin-left: 80px; width: calc(100% - 80px); }
    .logo::after { display: none; }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .content-area { margin-left: 0; width: 100%; }
    .hero { height: auto; padding: 100px 20px; }
    .hero-image { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
}
