/*
Theme Name: Onebit Brand
Description: Child theme of Twenty Twenty-Five styled with the Onebit Digital Service brand (onebit.id look).
Author: Onebit Digital Service
Template: twentytwentyfive
Version: 1.3.0
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════
   ONEBIT BRAND OVERRIDES — mirror of onebit.id
═══════════════════════════════════════════════ */

:root {
    --blue-primary: #009CDC;
    --blue-dark:    #003087;
    --blue-mid:     #0060B6;
    --blue-light:   #E8F6FC;
    --blue-pale:    #F0F8FD;
    --white:        #FFFFFF;
    --dark:         #0F1B2D;
    --gray-700:     #374151;
    --gray-500:     #6B7280;
    --gray-300:     #D1D5DB;
    --gray-200:     #E5E7EB;
    --gray-100:     #F9FAFB;
    --radius-sm:    8px;
    --radius-md:    16px;
    --radius-lg:    24px;
    --radius-xl:    32px;
    --shadow-md:    0 4px 16px rgba(0, 0, 0, .10);
    --shadow-lg:    0 10px 40px rgba(0, 0, 0, .12);
    --shadow-blue:  0 8px 32px rgba(0, 156, 220, .25);

    /* WP theme palette override */
    --wp--preset--color--base: #ffffff;
    --wp--preset--color--contrast: #0F1B2D;
    --wp--preset--color--accent: #009CDC;
    --wp--preset--color--accent-2: #003087;
    --wp--preset--color--accent-3: #E8F6FC;
    --wp--preset--color--accent-4: #F0F8FD;
    --wp--preset--color--border: #E5E7EB;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--dark);
    background: var(--white);
    font-size: 16px;
    line-height: 1.7;
}

/* ── Font: Inter (same as onebit.id) ── */

/* ════ Headings ════ */
h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", -apple-system, sans-serif;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
}

h1 { font-size: clamp(36px, 5vw, 58px); }
h2 { font-size: clamp(28px, 4vw, 42px); }

/* ════ Links & buttons ════ */
a { color: var(--blue-primary); text-decoration: none; }
a:hover { color: #0088BE; }

.wp-element-button,
button,
input[type="submit"],
.wp-block-button__link,
form button,
form input[type="submit"],
form .button,
#submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px !important;
    border-radius: 100px !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .25s;
    background: var(--blue-primary) !important;
    color: var(--white) !important;
    box-shadow: 0 8px 32px rgba(0, 156, 220, .25);
}

.wp-element-button:hover, .wp-block-button__link:hover, button:hover,
input[type="submit"]:hover {
    background: #0088BE !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* ════ Header / site nav ════ */
header, .wp-block-template-part > header,
.site-header, [class*="header"] {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .wp-block-navigation a,
.wp-block-template-part-header .wp-block-navigation a {
    color: var(--gray-700) !important;
    font-size: 14px;
    font-weight: 500;
}

.wp-block-navigation a:hover {
    color: var(--blue-primary) !important;
}

/* Logo area */
header a:has(img), header .custom-logo-link { transition: opacity .2s; }
header a:has(img):hover { opacity: .8; }

/* ════ Blog posts listing — card style like onebit.id service cards ════ */
.wp-block-post-template .wp-block-post {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    transition: transform .25s, box-shadow .25s;
    overflow: hidden;
}

.wp-block-post-template .wp-block-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
}

.wp-block-post-title {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.wp-block-post-title a {
    color: var(--dark);
    text-decoration: none;
}
.wp-block-post-title a:hover { color: var(--blue-primary); }

.wp-block-post-date, .wp-block-post-terms {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.wp-block-post-excerpt {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.7;
}

.wp-block-post-excerpt__excerpt { color: var(--gray-500); }

/* Featured image */
.wp-block-post-featured-image img {
    border-radius: var(--radius-md);
}

/* ════ Tag pills (like tech-pill from onebit.id) ════ */
.wp-block-post-terms a {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-primary);
    background: rgba(0, 156, 220, .1);
    padding: 4px 12px;
    border-radius: 100px;
    margin: 2px;
    text-transform: none;
    letter-spacing: 0;
}

.wp-block-post-terms a:hover {
    background: rgba(0, 156, 220, .2);
}

/* ════ Pagination — pill buttons ════ */
.wp-block-query-pagination-numbers .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next,
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 16px;
    border-radius: 100px;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 14px;
}

.page-numbers.current,
.wp-block-query-pagination-numbers .page-numbers.current {
    background: var(--blue-primary);
    color: var(--white);
    border-color: var(--blue-primary);
}

/* ════ Footer — dark like onebit.id ════ */
footer, .wp-block-template-part > footer,
.site-footer, [class*="footer"] {
    background: var(--dark) !important;
    color: rgba(255, 255, 255, .7);
    padding: 64px 0 32px;
}

footer h2, footer h3, footer h4, footer h5,
footer .wp-block-heading {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
}

/* Column headings in onebit footer (uppercase like onebit.id footer h5) */
.onebit-footer-heading {
    color: var(--white);
    font-size: 14px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

footer a { color: rgba(255, 255, 255, .7); }

/* Site title in footer: normal case, like onebit.id brand */
footer .wp-block-site-title,
footer .wp-block-site-title a {
    text-transform: none;
    letter-spacing: normal;
    font-size: 20px;
    font-weight: 800;
    color: var(--white) !important;
}
footer a:hover { color: var(--white); }

footer p { color: rgba(255, 255, 255, .55); font-size: 14px; }

/* onebit footer layout */
.onebit-footer-brand { max-width: 320px; }
.onebit-footer-brand img { width: 160px; height: auto; }
.onebit-footer-brand .wp-block-site-tagline { color: rgba(255, 255, 255, .55); font-size: 14px; }
footer .wp-block-navigation a,
.onebit-footer-cols .wp-block-navigation a,
[role="contentinfo"] .wp-block-navigation a,
.has-contrast-background-color .wp-block-navigation a {
    color: rgba(255, 255, 255, .7) !important;
    font-size: 14px;
    font-weight: 400;
}
.onebit-footer-cols .wp-block-navigation a:hover { color: var(--white) !important; }
.onebit-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.onebit-footer-copy { color: rgba(255, 255, 255, .45); font-size: 13px; }

/* ════ Single post content ════ */
.entry-content,
.wp-block-post-content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--gray-700);
}

.entry-content h2, .entry-content h3 { margin-top: 1.8em; }

.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

blockquote {
    border-left: 3px solid var(--blue-primary);
    padding-left: 20px;
    color: var(--gray-500);
    font-style: italic;
}

code, pre {
    background: var(--blue-pale);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

pre { padding: 16px 20px; overflow-x: auto; }

/* ════ Search form ════ */
.wp-block-search__input,
input[type="search"], input[type="text"], input[type="email"],
textarea, select {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 15px;
    color: var(--dark);
    transition: border-color .2s, box-shadow .2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(0, 156, 220, .1);
}

/* ════ Badge style (onebit.id badge) ════ */
.wp-block-post-date::before { content: "— "; color: var(--gray-300); }

/* ════ Comments ════ */
.comment-body {
    border-radius: var(--radius-md);
    padding: 24px;
    background: var(--gray-100);
    margin-bottom: 16px;
}

/* ════ Responsive ════ */
@media (max-width: 782px) {
    .wp-block-post-template .wp-block-post { padding: 22px; }
    footer { padding: 48px 0 24px; }
}

/* Footer tagline */
footer .wp-block-site-tagline { color: rgba(255, 255, 255, .55); font-size: 14px; }


/* ════ Homepage — hero + professional card listing ════ */
.onebit-hero {
    position: relative;
    overflow: hidden;
}
.onebit-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 75% 50%, rgba(0,156,220,.25) 0%, transparent 70%);
    pointer-events: none;
}
.onebit-hero .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 100px;
    padding: 6px 16px;
    margin-bottom: 24px;
    color: rgba(255,255,255,.9) !important;
}
.onebit-hero .hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ADE80;
}
.onebit-hero h1 { color: #fff !important; }
.onebit-hero p { color: rgba(255,255,255,.75) !important; max-width: 560px; }

.onebit-listing { background: #fff; }

.post-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    margin-bottom: 48px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
}
.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,.10);
}
.post-card .wp-block-post-featured-image {
    margin: 0;
    border-radius: 0;
    overflow: hidden;
}
.post-card .wp-block-post-featured-image img {
    border-radius: 0 !important;
    width: 100%;
    display: block;
    transition: transform .4s ease;
}
.post-card:hover .wp-block-post-featured-image img {
    transform: scale(1.02);
}
.post-card .post-date-pill {
    color: var(--blue-primary);
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 20px 28px 0;
    margin: 0;
    display: block;
}
.post-card .wp-block-post-title {
    padding: 8px 28px 0;
    margin: 0;
}
.post-card .wp-block-post-title a {
    color: var(--dark);
    text-decoration: none;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.post-card .wp-block-post-title a:hover { color: var(--blue-primary); }
.post-card .wp-block-post-excerpt {
    padding: 12px 28px 28px;
    margin: 0;
}
.post-card .wp-block-post-excerpt p {
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Wide layout: image left, content right */
@media (min-width: 960px) {
    .wp-block-post-template .wp-block-post {
        display: grid;
        grid-template-columns: 380px 1fr;
        align-items: stretch;
    }
    .post-card { display: contents; }
    .post-card .wp-block-post-featured-image { height: 100%; min-height: 240px; }
    .post-card .wp-block-post-featured-image img { height: 100%; object-fit: cover; }
}

/* Pagination */
.wp-block-query-pagination {
    border-top: 1px solid var(--gray-200);
    padding-top: 32px;
    margin-top: 16px;
}
