/* ================================================
   BLOG STYLING OVERRIDES - KITCHEE COLORS
   Added to fix Bootstrap defaults
   ================================================ */

/* === TITLE LINKS === */
/* Light mode: black */
.blog-list h2 a,
.blog-list h1 a,
article header h2 a,
article header h1 a,
.post-title a,
main article h2 a,
main article h1 a {
    color: #000000 !important;
    text-decoration: none !important;
}

/* Dark mode: white */
[data-theme="dark"] .blog-list h2 a,
[data-theme="dark"] .blog-list h1 a,
[data-theme="dark"] article header h2 a,
[data-theme="dark"] article header h1 a,
[data-theme="dark"] .post-title a,
[data-theme="dark"] main article h2 a,
[data-theme="dark"] main article h1 a,
html[data-theme="dark"] h1 a,
html[data-theme="dark"] h2 a {
    color: #ffffff !important;
}

/* Hover: Kitchee green */
.blog-list h2 a:hover,
article header h2 a:hover,
.post-title a:hover,
[data-theme="dark"] .blog-list h2 a:hover,
[data-theme="dark"] article header h2 a:hover {
    color: #44A682 !important;
}

/* === TAGS / BADGES - KITCHEE BLUE === */
.badge,
.badge.bg-secondary,
.badge.bg-primary,
span.badge,
a.badge,
.post-tags .badge,
.blog-card-tags .badge,
article .badge,
main .badge {
    background-color: #006699 !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    margin: 4px 6px 12px 0 !important;
    border-radius: 20px !important;
    font-size: 0.85em !important;
    font-weight: 500 !important;
    border: none !important;
}

.badge:hover,
.badge.bg-secondary:hover,
a.badge:hover {
    background-color: #44A682 !important;
    color: #ffffff !important;
}

/* === FEATURED TAG - KITCHEE GREEN === */
.badge.bg-primary,
.featured-badge,
span.badge.bg-primary {
    background-color: #44A682 !important;
}

/* === READ MORE BUTTON - KITCHEE GREEN FILLED === */
.btn,
.btn-outline-primary,
.btn-primary,
.btn-sm,
a.btn,
a.btn-outline-primary,
.read-more,
article .btn,
main .btn {
    background-color: #44A682 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.btn:hover,
.btn-outline-primary:hover,
a.btn:hover,
.read-more:hover {
    background-color: #367d68 !important;
    color: #ffffff !important;
}

/* === SHARE BUTTONS - OUTLINE STYLE === */
.share-buttons .btn,
.share-buttons a.btn {
    background-color: transparent !important;
    color: #006699 !important;
    border: 2px solid #006699 !important;
    padding: 8px 16px !important;
}

.share-buttons .btn:hover {
    background-color: #006699 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .share-buttons .btn {
    color: #ffffff !important;
    border-color: #ffffff !important;
    background-color: transparent !important;
}

[data-theme="dark"] .share-buttons .btn:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* === BACK TO BLOG BUTTON === */
.btn-outline-secondary,
a.btn-outline-secondary {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border: 2px solid var(--border-color) !important;
    margin-bottom: 40px !important;
}

.btn-outline-secondary:hover,
a.btn-outline-secondary:hover {
    background-color: var(--bg-secondary) !important;
}

/* === POST CONTENT LINKS === */
.post-content a:not(.btn):not(.badge),
article .post-content a:not(.btn):not(.badge),
.entry-content a:not(.btn):not(.badge) {
    color: #006699 !important;
    text-decoration: underline !important;
}

[data-theme="dark"] .post-content a:not(.btn):not(.badge),
[data-theme="dark"] article .post-content a:not(.btn):not(.badge) {
    color: #44A682 !important;
}

/* === TAGS CONTAINER SPACING === */
.post-tags,
.blog-card-tags,
article .badges,
.tags-container {
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
}

/* === END KITCHEE BLOG OVERRIDES === */

/* ================================================
   BLOG MINIMAL HEADER
   ================================================ */

.blog-header-minimal {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.blog-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

/* Brand */
.blog-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.blog-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.blog-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.blog-brand-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.blog-brand-label {
    font-size: 12px;
    color: #44A682;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-brand:hover .blog-brand-name {
    color: #44A682;
}

/* Right Side */
.blog-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Switcher */
.blog-lang-switcher {
    position: relative;
}

.blog-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.blog-lang-btn:hover {
    border-color: #44A682;
}

.blog-lang-icon {
    font-size: 16px;
}

.blog-lang-arrow {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.blog-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.blog-lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.blog-lang-option {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.blog-lang-option:hover {
    background: var(--bg-secondary);
}

.blog-lang-option.active {
    color: #44A682;
    font-weight: 600;
}

/* Back Button */
.blog-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #44A682, #006699);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.blog-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 166, 130, 0.4);
    color: white;
}

.blog-back-icon {
    font-size: 16px;
}

/* ================================================
   BLOG MINIMAL FOOTER
   ================================================ */

.blog-footer-minimal {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    padding: 40px 0 20px;
}

.blog-footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

/* Footer Brand */
.blog-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.blog-footer-brand strong {
    display: block;
    font-size: 18px;
    color: var(--text-primary);
}

.blog-footer-brand p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Footer Links */
.blog-footer-links {
    display: flex;
    gap: 24px;
}

.blog-footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.blog-footer-links a:hover {
    color: #44A682;
}

/* Footer CTA */
.blog-footer-cta {
    text-align: right;
}

.blog-footer-cta p {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.blog-footer-download {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #44A682, #006699);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.blog-footer-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 166, 130, 0.4);
    color: white;
}

/* Footer Bottom */
.blog-footer-bottom {
    padding-top: 20px;
    text-align: center;
}

.blog-footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ================================================
   MOBILE RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
    .blog-nav {
        padding: 10px 0;
    }

    .blog-brand-text {
        display: none;
    }

    .blog-back-text {
        display: none;
    }

    .blog-back-btn {
        padding: 8px 12px;
    }

    .blog-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .blog-footer-brand {
        justify-content: center;
    }

    .blog-footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .blog-footer-cta {
        text-align: center;
    }
}

/* ================================================
   DARK MODE
   ================================================ */

[data-theme="dark"] .blog-header-minimal {
    background: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .blog-lang-dropdown {
    background: var(--bg-secondary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Clear fixed navbar */
.blog-header {
    padding-top: 100px !important;
}

/* Clear fixed navbar on single post pages */
.blog-post-single,
.post-header,
article.post,
article > header,
main > article {
    padding-top: 100px !important;
}
