/* ========================================
   Zen Omikuji Theme - CSS Overrides
   Minimal, conservative styling that preserves
   existing Bootstrap structure
   ======================================== */

/* === Base & Typography === */
body {
    font-family: 'Shippori Mincho', 'Noto Serif JP', 'Noto Serif SC', serif !important;
    background-color: #f5f5f0 !important;
    color: #292524 !important;
}

/* Override Bootstrap link colors */
a {
    color: #292524;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #dc2626;
    text-decoration: none;
}

/* === Header/Navbar === */
.navbar-default {
    background-color: #1c1917 !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-default .navbar-brand,
.navbar-default .navbar-nav>li>a {
    color: #d6d3d1 !important;
    font-family: 'Shippori Mincho', serif;
}

.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus,
.navbar-default .navbar-nav>.active>a {
    color: #ffffff !important;
    background-color: transparent !important;
    border-bottom: 2px solid #78716c;
}

.navbar-brand img {
    max-height: 32px;
}

/* Language Switcher Styling */
.lang-switcher {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 0 12px;
    padding: 0 12px;
    border-right: 1px solid #44403c;
}

.lang-switcher a {
    color: #78716c;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 2px 6px;
}

.lang-switcher a:hover {
    color: #ffffff;
}

.lang-switcher a.active {
    color: #ffffff;
    font-weight: 700;
}

/* === Panels & Cards === */
.panel {
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    border-top: 4px solid #e7e5e4 !important;
    border-radius: 2px !important;
    background: #ffffff;
}

.panel:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transition: box-shadow 0.3s ease;
}

.panel-heading {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e7e5e4 !important;
    padding: 16px 20px !important;
}

.panel-title {
    font-family: 'Shippori Mincho', serif !important;
    font-weight: 700 !important;
    color: #292524 !important;
    font-size: 18px !important;
    letter-spacing: 0.5px;
}

.panel-body {
    padding: 20px !important;
}

/* === Article Items === */
.article-item {
    padding: 20px;
    margin-bottom: 24px;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #d6d3d1;
    transition: all 0.3s ease;
}

.article-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left-color: #dc2626;
}

.article-title {
    font-family: 'Shippori Mincho', serif !important;
    font-weight: 700 !important;
    color: #292524 !important;
    font-size: 20px !important;
    margin-bottom: 12px !important;
}

.article-title a {
    color: #292524;
}

.article-title a:hover {
    color: #dc2626;
}

.article-intro {
    color: #57534e;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.article-tag {
    font-size: 12px;
    color: #a8a29e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-tag .tag-primary {
    background: transparent;
    color: #dc2626;
    border: none;
    font-weight: 700;
    padding: 0 8px 0 0;
}

/* === Sidebar === */
.panel-default.lasest-update .panel-body li {
    padding: 8px 0;
    border-bottom: 1px dashed #e7e5e4;
}

.panel-default.lasest-update .panel-body li:last-child {
    border-bottom: none;
}

.hot-tags .tag {
    display: inline-block;
    padding: 4px 12px;
    margin: 4px;
    background: #f5f5f4;
    color: #57534e;
    border-radius: 16px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.hot-tags .tag:hover {
    background: #292524;
    color: #ffffff;
}

/* === Footer === */
#footer {
    background-color: #1c1917;
    color: #a8a29e;
    border-top: 1px solid #292524;
    padding: 48px 0;
}

#footer a {
    color: #a8a29e;
}

#footer a:hover {
    color: #ffffff;
}

/* === Carousel/Slider === */
.carousel-focus {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-top: 4px solid #e7e5e4;
}

.carousel-caption h3 {
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* === Buttons === */
.btn {
    font-family: 'Shippori Mincho', serif;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.btn-primary {
    background-color: #292524;
    border-color: #292524;
}

.btn-primary:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

/* === Search Form === */
.form-search input {
    background: #292524;
    border: none;
    color: #d6d3d1;
    border-radius: 16px;
    padding: 6px 16px;
    font-size: 12px;
}

.form-search input::placeholder {
    color: #78716c;
}

.form-search input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #57534e;
}

/* === Paper Texture Overlay === */
.with-paper-bg {
    position: relative;
}

.with-paper-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png');
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.with-paper-bg>* {
    position: relative;
    z-index: 2;
}

/* === Responsive Adjustments === */
@media (min-width: 1024px) {
    .container {
        width: 1024px;
    }
}