/*
Theme Name: Bootstrapr Canvas
Author: ProductAdvance, inc - itisntdan
Description: A minimal, full-width canvas for WP Bootstrapr.
Version: 1.0.0
*/

/* Reset & Base */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: #0a0a0a;
    /* Ensure dark background matches brand */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Nav Menu Styling (Theme Specific) */
.menu-item {
    position: relative;
}

.menu-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
    text-decoration: none;
}

.menu-item a:hover {
    color: #3eb489;
    /* Mint */
}

/* ===========================================================================
   Blog Typography — .bsr-prose
   Used by single posts (article body). Uses theme CSS vars with safe fallbacks.
   =========================================================================== */
.bsr-prose {
    font-family: var(--bsr-font-body, system-ui, -apple-system, sans-serif);
    color: var(--bsr-text-secondary, rgba(255, 255, 255, 0.78));
    font-size: 1.125rem;
    line-height: 1.75;
    word-wrap: break-word;
}

.bsr-prose > * + * {
    margin-top: 1.5rem;
}

.bsr-prose h1,
.bsr-prose h2,
.bsr-prose h3,
.bsr-prose h4,
.bsr-prose h5,
.bsr-prose h6 {
    font-family: var(--bsr-font-display, var(--bsr-font-body, sans-serif));
    color: var(--bsr-text-primary, #ffffff);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.bsr-prose h1 {
    font-size: 2.75rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}

.bsr-prose h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.bsr-prose h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.bsr-prose h4 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.bsr-prose h5,
.bsr-prose h6 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bsr-prose p {
    margin: 0 0 1.5rem 0;
}

.bsr-prose a {
    color: var(--bsr-brand-primary, #3eb489);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease;
}

.bsr-prose a:hover {
    color: var(--bsr-brand-accent, var(--bsr-brand-primary, #3eb489));
    text-decoration-thickness: 2px;
}

.bsr-prose strong,
.bsr-prose b {
    color: var(--bsr-text-primary, #ffffff);
    font-weight: 700;
}

.bsr-prose em,
.bsr-prose i {
    font-style: italic;
}

.bsr-prose blockquote {
    border-left: 4px solid var(--bsr-brand-primary, #3eb489);
    background: rgba(255, 255, 255, 0.02);
    margin: 2rem 0;
    padding: 1.25rem 1.75rem;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--bsr-text-primary, #ffffff);
    border-radius: 0 0.5rem 0.5rem 0;
}

.bsr-prose blockquote p:last-child {
    margin-bottom: 0;
}

.bsr-prose blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    font-style: normal;
    color: var(--bsr-text-secondary, rgba(255, 255, 255, 0.6));
}

.bsr-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.92em;
    background: rgba(255, 255, 255, 0.07);
    color: var(--bsr-text-primary, #ffffff);
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bsr-prose pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 2rem 0;
}

.bsr-prose pre code {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--bsr-text-primary, #ffffff);
}

.bsr-prose ul,
.bsr-prose ol {
    margin: 1.5rem 0;
    padding-left: 1.75rem;
}

.bsr-prose ul {
    list-style: disc;
}

.bsr-prose ol {
    list-style: decimal;
}

.bsr-prose li {
    margin: 0.5rem 0;
}

.bsr-prose li::marker {
    color: var(--bsr-brand-primary, #3eb489);
}

.bsr-prose li > ul,
.bsr-prose li > ol {
    margin: 0.5rem 0;
}

.bsr-prose img,
.bsr-prose figure {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.bsr-prose figure img {
    margin: 0;
}

.bsr-prose figcaption {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--bsr-text-secondary, rgba(255, 255, 255, 0.55));
    font-style: italic;
}

.bsr-prose hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    margin: 3rem 0;
}

.bsr-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.bsr-prose th,
.bsr-prose td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bsr-prose th {
    color: var(--bsr-text-primary, #ffffff);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
}

.bsr-prose kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom-width: 2px;
    padding: 0.1em 0.4em;
    border-radius: 0.25rem;
}

/* Responsive size tweaks for narrow viewports */
@media (max-width: 640px) {
    .bsr-prose {
        font-size: 1.0625rem;
    }
    .bsr-prose h1 { font-size: 2rem; margin-top: 2.5rem; }
    .bsr-prose h2 { font-size: 1.6rem; margin-top: 2rem; }
    .bsr-prose h3 { font-size: 1.3rem; margin-top: 1.5rem; }
    .bsr-prose blockquote { font-size: 1.125rem; padding: 1rem 1.25rem; }
}

/* ===========================================================================
   Blog Layout Utilities
   =========================================================================== */

/* Line-clamp helpers (used on post cards) */
.bsr-line-clamp-2,
.bsr-line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bsr-line-clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.bsr-line-clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }

/* Post card base */
.bsr-post-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

/* Title color always reacts to hover regardless of card-hover style */
.bsr-post-card:hover .bsr-post-card-title {
    color: var(--bsr-brand-primary, #3eb489);
}

/* Hover style: LIFT (default) — translate + shadow */
.bsr-cards-hover-lift .bsr-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(var(--bsr-brand-primary-rgb, 62, 180, 137), 0.4) !important;
}

/* Hover style: GLOW — no transform, brand-colored outline + soft glow */
.bsr-cards-hover-glow .bsr-post-card:hover {
    box-shadow:
        0 0 0 1px var(--bsr-brand-primary, #3eb489),
        0 8px 30px rgba(var(--bsr-brand-primary-rgb, 62, 180, 137), 0.25);
    border-color: var(--bsr-brand-primary, #3eb489) !important;
}

/* Hover style: NONE — no transform or shadow (title color hover still applies) */
.bsr-cards-hover-none .bsr-post-card:hover {
    transform: none;
    box-shadow: none;
}

/* Blog/archive grid spacing fallback (Tailwind utilities also used inline) */
.bsr-post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .bsr-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .bsr-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Numeric pagination */
.bsr-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 3rem auto;
}
.bsr-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    color: var(--bsr-text-secondary, rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}
.bsr-pagination .page-numbers:hover {
    color: #fff;
    border-color: var(--bsr-brand-primary, #3eb489);
}
.bsr-pagination .page-numbers.current {
    background: var(--bsr-brand-primary, #3eb489);
    border-color: var(--bsr-brand-primary, #3eb489);
    color: #fff;
}
.bsr-pagination .page-numbers.dots {
    border: 0;
    background: transparent;
}