/*
Theme Name: GoTrade1 Blog
Theme URI: https://gotrade1.com/blog/
Author: GoTrade1
Description: Child theme of Twenty Twenty-Five that applies the GoTrade1 brand design system (navy + teal, self-hosted Inter) to the WordPress blog, so a visitor clicking through from a blog post sees the same product site.
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: gotrade1-blog
*/

/* The shared design system lives on the main site at /css/site.css and is
   linked from functions.php. Only blog-specific overrides belong here —
   anything global belongs in that file so the main site and the blog cannot
   drift apart again. */

:root {
    --navy-900: #061a33;
    --navy-800: #0b2748;
    --navy: #103f6f;
    --navy-600: #1b5490;
    --navy-soft: #eaf1f9;
    --navy-soft-2: #dce8f5;

    --accent: #0ea896;
    --accent-dark: #0b8779;
    --accent-soft: #e6f7f4;

    --ink: #0f1c2e;
    --ink-2: #35485e;
    --muted: #61748b;
    --muted-2: #8b9aad;

    --surface: #ffffff;
    --surface-2: #f7f9fb;
    --surface-3: #eef2f6;
    --border: #e2e8ef;
    --border-strong: #cdd7e1;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;

    --shadow-sm: 0 1px 2px rgba(15, 28, 46, .05), 0 2px 8px rgba(15, 28, 46, .04);
    --shadow-md: 0 4px 12px rgba(15, 28, 46, .07), 0 12px 32px rgba(15, 28, 46, .06);
    --shadow-lg: 0 8px 24px rgba(15, 28, 46, .09), 0 28px 64px rgba(15, 28, 46, .10);

    --sp-4: 16px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;

    --ease: cubic-bezier(.4, 0, .2, 1);
    --header-h: 68px;
}

/* ---------- Base type ---------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
                 'Noto Sans CJK SC', sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy-900);
    letter-spacing: -.025em;
    font-weight: 700;
}

a { color: var(--navy); }
a:hover { color: var(--navy-600); }

p, li { color: var(--ink-2); }

/* ---------- Article content ---------- */
.wp-block-post-content,
.entry-content {
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1.75;
}
.wp-block-post-content h2,
.entry-content h2 {
    font-size: 28px;
    margin-top: 2.2em;
    margin-bottom: .6em;
}
.wp-block-post-content h3,
.entry-content h3 {
    font-size: 21px;
    margin-top: 1.8em;
    margin-bottom: .5em;
}
.wp-block-post-content p,
.entry-content p { margin-bottom: 1.3em; }

.wp-block-post-content a,
.entry-content a {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border-strong);
    transition: text-decoration-color .18s var(--ease);
}
.wp-block-post-content a:hover,
.entry-content a:hover { text-decoration-color: var(--accent); }

.wp-block-post-content ul,
.wp-block-post-content ol,
.entry-content ul,
.entry-content ol { padding-left: 1.4em; margin-bottom: 1.3em; }
.wp-block-post-content li,
.entry-content li { margin-bottom: .5em; }

.wp-block-post-content blockquote,
.entry-content blockquote {
    border-left: 3px solid var(--accent);
    padding: .2em 0 .2em 1.2em;
    margin: 1.6em 0;
    color: var(--ink);
    font-style: italic;
}

.wp-block-post-content hr,
.entry-content hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2.4em 0;
}

/* ---------- Tables (the trade-data tables are the whole point of the blog) ---------- */
.wp-block-post-content table,
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    font-size: 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.wp-block-post-content table th,
.entry-content table th {
    background: var(--surface-2);
    color: var(--navy-900);
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-strong);
    white-space: nowrap;
}
.wp-block-post-content table td,
.entry-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--ink-2);
}
.wp-block-post-content table tr:last-child td,
.entry-content table tr:last-child td { border-bottom: 0; }
.wp-block-post-content table tbody tr:hover,
.entry-content table tbody tr:hover { background: var(--navy-soft); }

/* ---------- Figure / caption ---------- */
.wp-block-post-content figure,
.entry-content figure { margin: 1.8em 0; }
.wp-block-post-content figcaption,
.entry-content figcaption {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    margin-top: .6em;
}

/* ---------- Post list / archive cards ---------- */
.wp-block-post-template {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wp-block-post-template > li {
    margin-bottom: var(--sp-12);
    padding-bottom: var(--sp-12);
    border-bottom: 1px solid var(--border);
}
.wp-block-post-template > li:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.wp-block-post-title {
    margin-bottom: .5em;
    line-height: 1.25;
}
.wp-block-post-title a {
    color: var(--navy-900);
    text-decoration: none;
    transition: color .18s var(--ease);
}
.wp-block-post-title a:hover { color: var(--navy); }
.wp-block-post-date,
.wp-block-post-author-name {
    color: var(--muted);
    font-size: 14px;
}
.wp-block-post-excerpt {
    color: var(--ink-2);
    font-size: 16.5px;
    line-height: 1.7;
    margin-top: .8em;
}

/* ---------- Page header ---------- */
.wp-block-post-title {
    font-size: clamp(32px, 5vw, 46px);
}
.page-title, .wp-block-page-title {
    font-size: clamp(32px, 5vw, 46px);
}

/* ---------- Pagination ---------- */
.wp-block-query-pagination {
    margin-top: var(--sp-12);
    justify-content: center;
}
.wp-block-query-pagination a,
.wp-block-query-pagination .current {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 14px;
    transition: all .18s var(--ease);
}
.wp-block-query-pagination a:hover {
    border-color: var(--navy);
    color: var(--navy);
}
.wp-block-query-pagination .current {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* ---------- Search form ---------- */
.wp-block-search__inside-wrapper {
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 2px;
    background: var(--surface);
}
.wp-block-search__input {
    border: 0;
    background: transparent;
    padding: 10px 18px;
    font-size: 15px;
    color: var(--ink);
    width: 100%;
}
.wp-block-search__input:focus { outline: none; }
.wp-block-search__button {
    background: var(--navy);
    border: 0;
    border-radius: 999px;
    padding: 10px 20px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .18s var(--ease);
}
.wp-block-search__button:hover { background: var(--navy-800); }

/* ---------- Comments ---------- */
.wp-block-comment-template {
    list-style: none;
    padding: 0;
}
.comment-body {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--sp-6);
    margin-bottom: var(--sp-4);
}

/* ---------- The GoTrade1 blog shell (nav + footer rendered in functions.php) ---------- */
.gt1-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    padding: 0 var(--sp-6);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.gt1-nav .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -.02em;
    color: var(--navy-900);
    white-space: nowrap;
}
.gt1-nav .brand:hover { color: var(--navy); }
.gt1-nav .brand svg { width: 28px; height: 28px; display: block; flex: none; }
.gt1-nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    margin-left: auto;
    font-size: 14px;
    font-weight: 500;
}
.gt1-nav-links a { color: var(--ink-2); transition: color .18s var(--ease); }
.gt1-nav-links a:hover { color: var(--navy); }
.gt1-nav-right { display: flex; align-items: center; gap: var(--sp-4); }
.gt1-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.gt1-cta:hover {
    background: var(--navy-800);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.gt1-foot {
    background: var(--navy-900);
    color: rgba(255,255,255,.55);
    font-size: 14px;
    padding: var(--sp-16) 0 var(--sp-10);
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: var(--sp-16);
}
.gt1-foot .gt1-foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: var(--sp-10);
    margin-bottom: var(--sp-10);
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--sp-6);
}
@media (max-width: 860px) {
    .gt1-foot .gt1-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8); }
}
@media (max-width: 520px) {
    .gt1-foot .gt1-foot-grid { grid-template-columns: minmax(0, 1fr); }
}
.gt1-foot .brand-lockup {
    display: inline-flex; align-items: center; gap: 10px;
    color: #fff; font-weight: 700; font-size: 16px;
    letter-spacing: -.02em; margin-bottom: var(--sp-4);
}
.gt1-foot .brand-lockup svg { width: 24px; height: 24px; }
.gt1-foot .foot-brand p {
    margin: 0; font-size: 13.5px; line-height: 1.7;
    max-width: 320px; color: rgba(255,255,255,.5);
}
.gt1-foot h4 {
    color: #fff; font-size: 12px; font-weight: 700;
    letter-spacing: .11em; text-transform: uppercase;
    margin: 0 0 var(--sp-4);
}
.gt1-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gt1-foot li a { color: rgba(255,255,255,.58); font-size: 13.5px; transition: color .18s var(--ease); }
.gt1-foot li a:hover { color: #fff; }
.gt1-foot .foot-bottom {
    border-top: 1px solid rgba(255,255,255,.09);
    padding-top: var(--sp-5);
    max-width: 1180px;
    margin: 0 auto;
    padding-left: var(--sp-6);
    padding-right: var(--sp-6);
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
    font-size: 12.5px;
    color: rgba(255,255,255,.42);
}
.gt1-foot .foot-bottom a { color: rgba(255,255,255,.58); }
.gt1-foot .foot-bottom a:hover { color: #fff; }

/* ---------- Page wrapper ---------- */
.gt1-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: var(--sp-12) var(--sp-6) 0;
}
.gt1-shell-narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: var(--sp-12) var(--sp-6) 0;
}

/* ---------- Responsive nav ---------- */
@media (max-width: 900px) {
    .gt1-nav-links { display: none; }
    .gt1-nav-right { margin-left: auto; }
}
@media (max-width: 560px) {
    .gt1-nav .brand span { display: none; }
}

/* ---------- Wide tables scroll instead of breaking the layout ---------- */
.wp-block-post-content table,
.entry-content table { display: block; overflow-x: auto; }
