/*
Theme Name: AffiliateCMS Child
Theme URI: https://lat.vn/
Description: Child theme for AffiliateCMS Theme. Add your custom styles and overrides here.
Author: AffiliateCMS Team
Author URI: https://lat.vn/
Template: affiliateCMS-theme
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: affiliatecms-child
*/

/* ==========================================================================
   Custom Styles - Add your overrides below
   ========================================================================== */

/* GearScope design system - editorial tech-review look (Verge x Wirecutter hybrid):
   confident single-accent color, tight big type, flat bordered cards instead of
   soft shadows, small-caps "kicker" labels above headlines. Colors/radius/card-style
   are already set via Customizer theme_mods (acms_color_*, acms_border_radius,
   acms_card_style=border, acms_card_hover=shadow) - this file is the polish layer
   the Customizer can't reach: type scale, letter-spacing, header treatment,
   category "kicker" labels, and the comparison-list rank/badge system. */

:root {
    --gs-kicker-size: .72rem;
    --gs-kicker-tracking: .08em;
}

/* ---------- Typography ---------- */
body {
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
}

h1, .featured-card__title, .post-card__title {
    letter-spacing: var(--tracking-tight, -0.025em);
    font-weight: var(--font-bold, 700);
}

.featured-card--main .featured-card__title {
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    line-height: 1.08;
}

article h2 { letter-spacing: var(--tracking-tight, -0.025em); }

/* "Kicker" treatment for category eyebrows - small caps, wide tracking, accent
   color, sits above the headline instead of a soft pill badge. */
.featured-card__category,
.post-card__image-category {
    font-size: var(--gs-kicker-size);
    font-weight: var(--font-bold, 700);
    letter-spacing: var(--gs-kicker-tracking);
    text-transform: uppercase;
    color: var(--color-primary);
    background: transparent;
    padding: 0;
}

/* ---------- Header ---------- */
.site-header {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: none;
}

.header__nav a,
.header__menu a {
    font-size: .875rem;
    font-weight: var(--font-semibold, 600);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.site-logo__text {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* the_custom_logo() renders class="custom-logo" - the parent theme's own
   .site-logo__image sizing rule targets a class that doesn't match it (theme
   drift), so the logo rendered at unconstrained natural size (374x93) and
   got clipped by the header's fixed-height flex row. Constrain it directly. */
.site-header img.custom-logo {
    height: 34px !important;
    width: auto !important;
    max-width: 160px !important;
}

.site-footer img.footer__logo-img,
footer img.footer__logo-img {
    height: 28px !important;
    width: auto !important;
}

/* ---------- Cards ---------- */
.post-card {
    transition: border-color .15s ease, box-shadow .15s ease;
}

.post-card--grid-v2:hover {
    border-color: var(--color-text-muted);
}

.section-header-v2__title {
    letter-spacing: var(--tracking-tight, -0.025em);
    font-weight: var(--font-bold, 700);
}

/* ---------- Comparison list ([acms_list]) - the money component on a
   review page. Turn the plain rank number into a real "Best Overall" style
   badge for #1, and give every row a crisper flat-bordered frame. ---------- */
.acms-list__item {
    border-radius: 6px;
}

.acms-list__rank {
    font-weight: 800;
    font-family: var(--font-sans);
}

.acms-list__row--main:has(.acms-list__rank[data-rank="1"]),
.acms-list__item:first-child .acms-list__row--main {
    position: relative;
}

.acms-list__item:first-child {
    border: 2px solid var(--color-primary) !important;
}

.acms-list__item:first-child::before {
    content: "EDITOR'S PICK";
    display: inline-block;
    position: absolute;
    top: -11px;
    left: 16px;
    background: var(--color-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 4px;
    z-index: 2;
}

.acms-card__price-current,
.acms-list__price-current {
    color: var(--color-text);
    font-weight: 800;
}

.acms-btn--primary,
.acms-btn--affiliate,
.acms-btn--amazon {
    font-weight: 700;
    letter-spacing: .01em;
    border-radius: 6px;
}

.acms-badge {
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: .02em;
}

/* WG Score box (Editor's Review, from functions.php wg_render_editorial_review_box) */
.wg-editorial-review {
    border-left-width: 3px;
    border-radius: 8px;
}

/* ---------- Footer ---------- */
.site-footer,
footer.site-footer {
    border-top: 1px solid var(--color-border);
}
