/**
 * Blog Manager Pro - Frontend Styles
 * Clean, minimal design
 */

:root {
    --bmp-primary: #2d7a3e;
    --bmp-primary-dark: #1f5c2b;
    --bmp-text: #1d2327;
    --bmp-text-muted: #646970;
    --bmp-border: #e0e0e0;
    --bmp-bg-light: #f6f7f7;
}

/* ===== PAGE HEADER ===== */
.bmp-page-header {
    background: linear-gradient(135deg, var(--bmp-primary) 0%, var(--bmp-primary-dark) 100%);
    padding: 40px 0;
    margin-bottom: 0;
}

.bmp-page-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0 0;
}

.bmp-search-results {
    color: rgba(255,255,255,0.8);
    margin: 8px 0 0;
    font-size: 0.95rem;
}

.bmp-category-description {
    color: rgba(255,255,255,0.85);
    margin: 12px 0 0;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
}

/* ===== BREADCRUMBS - CLEAN DESIGN ===== */
.bmp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.bmp-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.bmp-breadcrumb-item:hover {
    color: #fff;
}

.bmp-breadcrumb-item svg {
    width: 14px;
    height: 14px;
}

.bmp-breadcrumb-sep {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.bmp-breadcrumb-current {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 500;
}

/* ===== SEARCH FORM ===== */
.bmp-search-form .input-group {
    max-width: 350px;
    margin-left: auto;
}

.bmp-search-form .form-control {
    border: none;
    border-radius: 6px 0 0 6px;
    padding: 12px 16px;
}

.bmp-search-form .btn-primary {
    background: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 12px 18px;
    color: var(--bmp-primary);
}

.bmp-search-form .btn-primary:hover {
    background: var(--bmp-bg-light);
    color: var(--bmp-primary-dark);
}

/* ===== POST CARDS ===== */
.bmp-post-card {
    border: 1px solid var(--bmp-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bmp-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.bmp-post-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.bmp-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.bmp-post-card:hover .bmp-post-thumbnail img {
    transform: scale(1.05);
}

.bmp-post-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--bmp-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 4px;
}

.bmp-post-category-inline {
    display: inline-block;
    background: var(--bmp-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Post Meta */
.bmp-post-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--bmp-text-muted);
}

/* Post Title */
.bmp-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px;
}

.bmp-post-title a {
    color: var(--bmp-text);
    text-decoration: none;
    transition: color 0.2s;
}

.bmp-post-title a:hover {
    color: var(--bmp-primary);
}

/* Post Excerpt */
.bmp-post-excerpt {
    font-size: 0.9rem;
    color: var(--bmp-text-muted);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ===== NO POSTS ===== */
.bmp-no-posts {
    padding: 60px 20px;
}

.bmp-no-posts-icon {
    color: var(--bmp-text-muted);
    opacity: 0.3;
}

/* ===== BUTTONS ===== */
.bmp-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--bmp-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.bmp-btn:hover {
    background: var(--bmp-primary-dark);
    color: #fff;
}

/* ===== SIDEBAR ===== */
.bmp-sidebar {
    position: sticky;
    top: 100px;
}

.bmp-widget {
    border: 1px solid var(--bmp-border);
    border-radius: 8px;
}

.bmp-widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bmp-border);
}

/* Categories */
.bmp-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bmp-category-list li {
    margin-bottom: 6px;
}

.bmp-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bmp-bg-light);
    border-radius: 6px;
    text-decoration: none;
    color: var(--bmp-text);
    font-size: 14px;
    transition: all 0.2s;
}

.bmp-category-list a:hover,
.bmp-category-list a.active {
    background: var(--bmp-primary);
    color: #fff;
}

.bmp-category-list .badge {
    background: rgba(0,0,0,0.1);
    color: inherit;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
}

/* Newsletter Widget */
.bmp-newsletter-widget {
    background: linear-gradient(135deg, var(--bmp-primary) 0%, var(--bmp-primary-dark) 100%);
    border: none;
    color: #fff;
}

.bmp-newsletter-widget h5 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 8px;
}

/* ===== PAGINATION ===== */
.bmp-pagination ul {
    display: flex;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bmp-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--bmp-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--bmp-text);
    font-weight: 500;
    transition: all 0.2s;
}

.bmp-pagination .page-numbers:hover,
.bmp-pagination .page-numbers.current {
    background: var(--bmp-primary);
    border-color: var(--bmp-primary);
    color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .bmp-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .bmp-page-header {
        padding: 30px 0;
    }

    .bmp-page-header .row {
        flex-direction: column;
        gap: 20px;
    }

    .bmp-page-title {
        font-size: 1.5rem;
    }

    .bmp-search-form .input-group {
        max-width: none;
        margin-left: 0;
    }
}

/* ===== SINGLE POST ===== */
.bmp-single-header .bmp-page-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-top: 15px;
}

.bmp-post-meta-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.bmp-post-meta-header span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bmp-post-meta-header svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.bmp-single-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--bmp-border);
}

.bmp-single-thumbnail {
    width: 100%;
}

.bmp-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.bmp-single-content {
    padding: 30px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--bmp-text);
}

.bmp-single-content p {
    margin-bottom: 1.5em;
}

.bmp-single-content h2,
.bmp-single-content h3,
.bmp-single-content h4 {
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.bmp-single-categories {
    padding: 20px 30px;
    border-top: 1px solid var(--bmp-border);
    font-size: 14px;
    color: var(--bmp-text-muted);
}

.bmp-single-categories span {
    margin-right: 10px;
}

.bmp-single-categories a {
    display: inline-block;
    background: var(--bmp-bg-light);
    color: var(--bmp-text);
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 8px;
    transition: all 0.2s;
}

.bmp-single-categories a:hover {
    background: var(--bmp-primary);
    color: #fff;
}

/* Post Navigation */
.bmp-post-navigation {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.bmp-post-navigation a {
    flex: 1;
    display: block;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--bmp-border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.bmp-post-navigation a:hover {
    border-color: var(--bmp-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.bmp-nav-prev {
    text-align: left;
}

.bmp-nav-next {
    text-align: right;
}

.bmp-nav-label {
    display: block;
    font-size: 13px;
    color: var(--bmp-text-muted);
    margin-bottom: 5px;
}

.bmp-nav-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--bmp-text);
    line-height: 1.4;
}

@media (max-width: 767px) {
    .bmp-single-header .bmp-page-title {
        font-size: 1.4rem;
    }

    .bmp-post-meta-header {
        gap: 12px;
        font-size: 13px;
    }

    .bmp-single-content {
        padding: 20px;
    }

    .bmp-post-navigation {
        flex-direction: column;
    }
}
