/* Blog page dark theme — overrides Bootstrap defaults to match portfolio */

:root {
    --accent: #ea3509;
    --bg: #020312;
    --bg-card: #07081f;
    --text-primary: #e0e0e0;
    --text-muted: #a0a0b0;
    --border: rgba(255,255,255,0.08);
}

/* ---- Base ---- */
html, body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.85;
}

a { color: var(--accent); }
a:hover { color: #ff5722; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Saira', sans-serif;
    color: #fff;
    font-weight: 600;
}

p {
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    font-size: 16px;
    line-height: 1.9;
}

ul, ol { color: var(--text-primary); padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }

img.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto 1.5rem auto;
}

code {
    background: var(--bg-card);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    color: var(--text-primary);
}

/* ---- Back nav ---- */
.blog-nav {
    background: rgba(2,3,18,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.blog-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.blog-nav .back-link {
    font-family: 'Saira', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.blog-nav .back-link:hover { color: var(--accent); }
.blog-nav .logo-text {
    font-family: 'Saira', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}
.blog-nav .logo-text span { color: var(--accent); }

/* ---- Main content wrapper ---- */
.portfolio-details {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 28px 80px;
    box-sizing: border-box;
}

/* Neutralise Bootstrap container/row/col inside blog — layout is handled by the section */
.portfolio-details .container {
    max-width: 100% !important;
    padding: 0 !important;
}
.portfolio-details .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.portfolio-details [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* ---- Blog title ---- */
.blog-title {
    font-family: 'Saira', sans-serif;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 28px;
    text-align: center;
}

/* ---- Author card ---- */
.author-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 36px;
}
.prof-img {
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 2px solid var(--accent);
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0;
    display: block;
}
.author-info {
    flex: 1;
}
.avatar-title {
    font-family: 'Saira', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    display: block;
}
.avatar-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}
.author-socials {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}
.author-socials a {
    color: var(--text-muted);
    font-size: 17px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    text-decoration: none;
}
.author-socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(234,53,9,0.1);
}

/* ---- Footer social links ---- */
.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.social-links a {
    color: var(--text-muted);
    font-size: 18px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    text-decoration: none;
}
.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(234,53,9,0.1);
}

/* ---- Blog content sections ---- */
.blog-text-container {
    margin-bottom: 32px;
}
.blog-text-container h2 {
    font-size: 24px;
    margin-top: 36px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.blog-text-container h3 {
    font-size: 20px;
    color: #fff;
    margin-top: 28px;
    margin-bottom: 12px;
}
.blog-text-container h4 {
    font-size: 17px;
    color: var(--accent);
    margin-bottom: 10px;
}
.blog-text-container ul, .blog-text-container ol {
    margin-bottom: 1rem;
}
.blog-text-container ul > li, .blog-text-container ol > li {
    margin-bottom: 12px;
}

/* ---- Feature card (Scriptable blog) ---- */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0;
}
.feature-card h4 { margin-bottom: 0; }

/* ---- Screenshot placeholder (Scriptable blog) ---- */
.screenshot-placeholder {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 32px 20px;
    text-align: center;
    color: var(--text-muted);
    margin: 20px 0;
    font-size: 14px;
}

/* ---- Step number ---- */
.step-number {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
}

/* ---- Footer ---- */
#footer, .blog-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}
#footer h3, .blog-footer h3 {
    font-family: 'Saira', sans-serif;
    font-size: 22px;
    color: #fff;
    margin-bottom: 8px;
}
#footer p, .blog-footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}
#footer .social-links, .blog-footer .social-links {
    justify-content: center;
    margin-bottom: 16px;
}
#footer .copyright, .blog-footer .copyright {
    font-size: 13px;
    color: var(--text-muted);
}
#footer .credits { display: none; }

/* Hide back-to-top button (uses missing boxicon) */
.back-to-top { display: none !important; }

/* ---- Bootstrap overrides ---- */
.container { padding-left: 20px; padding-right: 20px; }
.row { margin-left: -12px; margin-right: -12px; }
.row > * { padding-left: 12px; padding-right: 12px; }

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .portfolio-details { padding: 40px 20px 60px; }
    .blog-title { font-size: 24px; text-align: left; }
    .blog-text-container h2 { font-size: 20px; }
    .blog-text-container h3 { font-size: 18px; }
    /* Stack author card on very small screens */
    .author-card { flex-wrap: wrap; gap: 12px; }
    .author-socials { margin-left: auto; }
}
