/* Base container */
.bgl-container {
    padding: 24px;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: all 0.3s ease;
}

/* Theme Options: Light Theme (DEFAULT) */
.bgl-container.bgl-theme-light {
    background-color: #f7f6fb;
    color: #1a1924;
}
.bgl-theme-light .bgl-header {
    border-bottom: 1px solid #e1e0eb;
}
.bgl-theme-light .bgl-cat-select {
    background-color: #ffffff;
    color: #1a1924;
    border: 1px solid #d1cfe2;
}
.bgl-theme-light .bgl-search-wrapper {
    background-color: #ffffff;
    border: 1px solid #d1cfe2;
}
.bgl-theme-light .bgl-search-input {
    color: #1a1924;
}
.bgl-theme-light .bgl-post-card {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.bgl-theme-light .bgl-post-title a {
    color: #1a1924;
}
.bgl-theme-light .bgl-post-excerpt {
    color: #55536b;
}
.bgl-theme-light .bgl-meta {
    color: #716f87;
    border-top: 1px solid #f0edf7;
}
.bgl-theme-light .bgl-author-name {
    color: #1a1924;
}
.bgl-theme-light .bgl-pagination {
    border-top: 1px solid #e1e0eb;
}
.bgl-theme-light .bgl-pagination .page-numbers {
    background-color: #ffffff;
    color: #55536b;
    border: 1px solid #d1cfe2;
}

/* Theme Options: Dark Theme */
.bgl-container.bgl-theme-dark {
    background-color: #1a1924;
    color: #ffffff;
}
.bgl-theme-dark .bgl-header {
    border-bottom: 1px solid #2e2c3e;
}
.bgl-theme-dark .bgl-cat-select {
    background-color: #242232;
    color: #ffffff;
    border: 1px solid #3d3b54;
}
.bgl-theme-dark .bgl-search-wrapper {
    background-color: #242232;
    border: 1px solid #3d3b54;
}
.bgl-theme-dark .bgl-search-input {
    color: #ffffff;
}
.bgl-theme-dark .bgl-post-card {
    background-color: #222030;
}
.bgl-theme-dark .bgl-post-title a {
    color: #ffffff;
}
.bgl-theme-dark .bgl-post-excerpt {
    color: #a09eb4;
}
.bgl-theme-dark .bgl-meta {
    color: #8c89a0;
    border-top: 1px solid #2e2c3e;
}
.bgl-theme-dark .bgl-author-name {
    color: #ffffff;
}
.bgl-theme-dark .bgl-pagination {
    border-top: 1px solid #2e2c3e;
}
.bgl-theme-dark .bgl-pagination .page-numbers {
    background-color: #242232;
    color: #a09eb4;
    border: 1px solid #3d3b54;
}

/* Common Header Styles */
.bgl-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
}
.bgl-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.bgl-cat-select {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    min-width: 180px;
    cursor: pointer;
    outline: none;
}
.bgl-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    max-width: 400px;
    width: 100%;
}
.bgl-search-input {
    background: transparent;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    width: 100%;
    outline: none;
}
.bgl-search-submit {
    background: transparent;
    border: none;
    color: #8c89a0;
    padding: 0 16px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
}
.bgl-search-submit:hover {
    color: #ff3366;
}

/* Post Grid & Cards Layout */
.bgl-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}
.bgl-post-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.bgl-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.bgl-thumbnail {
    background-size: cover;
    background-position: center;
    position: relative;
    padding-bottom: 56.25%;
}
.bgl-thumbnail-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.bgl-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.bgl-category {
    color: #ff3366;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.bgl-post-title {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 12px 0;
    font-weight: 600;
}
.bgl-post-title a {
    text-decoration: none;
    transition: color 0.2s ease;
}
.bgl-post-title a:hover {
    color: #ff3366 !important;
}
.bgl-post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}
.bgl-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    gap: 16px;
    padding-top: 12px;
    margin-top: auto;
}
.bgl-author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bgl-author-name {
    font-weight: 500;
}
.bgl-comments {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Grid Layout Spans */
.bgl-layout-featured {
    grid-column: span 6;
    display: flex;
    flex-direction: row;
}
.bgl-layout-featured .bgl-thumbnail {
    width: 60%;
    padding-bottom: 0;
    min-height: 350px;
}
.bgl-layout-featured .bgl-content {
    width: 40%;
    justify-content: center;
    padding: 30px;
}
.bgl-layout-featured .bgl-post-title {
    font-size: 26px;
}
.bgl-layout-medium {
    grid-column: span 3;
}
.bgl-layout-small {
    grid-column: span 2;
}

/* Pagination container */
.bgl-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 20px;
}
.bgl-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.bgl-pagination .page-numbers:hover {
    background-color: #ff3366 !important;
    border-color: #ff3366 !important;
    color: #ffffff !important;
}
.bgl-pagination .page-numbers.current {
    background-color: #ff3366 !important;
    border-color: #ff3366 !important;
    color: #ffffff !important;
    cursor: default;
}
.bgl-pagination .page-numbers i {
    font-size: 12px;
}

@media (max-width: 991px) {
    .bgl-layout-featured {
        flex-direction: column;
    }
    .bgl-layout-featured .bgl-thumbnail {
        width: 100%;
        padding-bottom: 56.25%;
        min-height: auto;
    }
    .bgl-layout-featured .bgl-content {
        width: 100%;
    }
    .bgl-layout-medium {
        grid-column: span 3;
    }
    .bgl-layout-small {
        grid-column: span 3;
    }
}
@media (max-width: 767px) {
    .bgl-grid {
        grid-template-columns: 1fr;
    }
    .bgl-layout-featured, .bgl-layout-medium, .bgl-layout-small {
        grid-column: span 6;
    }
}
