/*
Theme Name: Suay Maak
Theme URI: https://suaymaak.com/
Template: enola-starter
Version: 1.0.0
Description: Beauty and skincare reviews for Thailand
Author: Enola Revenu
Author URI: https://enolarevenu.com
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: Private
Text Domain: enola-sm

© Sean Gal | enolarevenu.com
*/

/* ═══════════════════════════════════════════════════════════════
   BRAND TOKEN OVERRIDES — SM palette on top of enola-starter
═══════════════════════════════════════════════════════════════ */
:root {
    /* Primary brand */
    --enola-primary:        #d4618a;
    --enola-primary-dark:   #b84d74;
    --enola-primary-light:  #fff0f5;
    --enola-primary-border: #e8a5be;

    /* Typography — serif headings are SM's brand differentiator */
    --enola-font-heading:   'Playfair Display', Georgia, serif;

    /* Text palette */
    --enola-text:           #2d1f2a;
    --enola-text-mid:       #5c3d52;
    --enola-text-muted:     #8a6d7a;

    /* Surface & border */
    --enola-border:         #f0e0e8;
    --enola-bg:             #fdf5f8;

    /* Elevation */
    --enola-shadow:         0 2px 12px rgba(212, 97, 138, 0.10);
    --enola-shadow-card:    0 4px 24px rgba(44, 31, 42, 0.08);

    /* Radii */
    --enola-radius:         10px;
    --enola-radius-sm:      6px;
    --enola-radius-pill:    50px;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER — liquid glass with SM pink tint
═══════════════════════════════════════════════════════════════ */
.enola-header {
    background: rgba(255, 248, 251, 0.72);
    border-bottom-color: rgba(212, 97, 138, 0.18);
    box-shadow: 0 2px 24px rgba(212, 97, 138, 0.08), 0 1px 0 rgba(255,255,255,0.6) inset;
}

/* Orchid mark breathing animation */
@keyframes orchid-breathe {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%      { transform: scale(1.06) rotate(1.5deg); }
}

.sm-orchid-mark {
    transform-origin: 28px 27px;
    animation: orchid-breathe 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .sm-orchid-mark { animation: none; }
}

.enola-logo:hover svg {
    filter: drop-shadow(0 2px 8px rgba(212, 97, 138, 0.35));
}

/* ═══════════════════════════════════════════════════════════════
   PAGE TITLE BANNER
═══════════════════════════════════════════════════════════════ */
.enola-page-banner {
    background: linear-gradient(135deg, var(--enola-primary-light) 0%, #fce8ef 100%);
}

/* ═══════════════════════════════════════════════════════════════
   POST CARDS — pink gradient accent bar + beauty hover
═══════════════════════════════════════════════════════════════ */
.enola-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f0a0c0, #d4618a, #9e3d6a);
    opacity: 0;
    transition: opacity 0.25s;
    z-index: 1;
}

.enola-card:hover {
    box-shadow: 0 12px 40px rgba(212, 97, 138, 0.18), 0 4px 12px rgba(44,31,42,0.06);
}

.enola-card:hover::before { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   AFFILIATE CTA BOX
═══════════════════════════════════════════════════════════════ */
.sm-affiliate-cta {
    background: linear-gradient(135deg, var(--enola-primary-light) 0%, #fce8ef 100%);
    border: 1px solid var(--enola-primary-border);
    border-radius: var(--enola-radius);
    padding: 28px;
    margin: 32px 0;
    text-align: center;
}

.sm-affiliate-cta__label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--enola-text-muted);
    margin-bottom: 8px;
}

.sm-affiliate-cta__title {
    font-family: var(--enola-font-heading);
    font-size: 1.25rem;
    color: var(--enola-text);
    margin-bottom: 18px;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR CTA — gradient buy widget
═══════════════════════════════════════════════════════════════ */
.enola-widget--cta {
    background: linear-gradient(160deg, var(--enola-primary) 0%, var(--enola-primary-dark) 100%);
    border-color: transparent;
    text-align: center;
}

.enola-widget--cta .enola-widget__title {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.enola-widget--cta p {
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.enola-widget--cta .enola-btn {
    background: #fff;
    color: var(--enola-primary);
    width: 100%;
    justify-content: center;
}

.enola-widget--cta .enola-btn:hover {
    background: rgba(255,255,255,0.9);
    color: var(--enola-primary-dark);
    transform: none;
}

/* ═══════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER (EN / TH)
═══════════════════════════════════════════════════════════════ */
.sm-lang {
    display: inline-flex;
    gap: 2px;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--enola-primary-border);
    border-radius: var(--enola-radius-pill);
    padding: 3px;
    margin-left: 10px;
    box-shadow: 0 1px 3px rgba(212,97,138,0.08);
}

.sm-lang__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    padding: 0 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--enola-text-mid);
    border-radius: var(--enola-radius-pill);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.sm-lang__item:hover { color: var(--enola-primary); }

.sm-lang__item.is-active {
    background: var(--enola-primary);
    color: #fff;
    box-shadow: 0 1px 4px rgba(212,97,138,0.35);
}

.sm-lang__item.is-active:hover { color: #fff; }

.sm-mobile-lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0 4px;
    margin-top: 8px;
    border-top: 1px solid var(--enola-border);
}

.sm-mobile-lang__label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--enola-text-muted);
}

.sm-mobile-lang .sm-lang { margin-left: 0; }

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE — HERO
═══════════════════════════════════════════════════════════════ */
.sm-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 15% 0%, #ffe3ef 0%, transparent 55%),
        radial-gradient(ellipse at 95% 95%, #fce8ef 0%, transparent 55%),
        linear-gradient(180deg, var(--enola-primary-light) 0%, #ffffff 100%);
    padding: 40px 0 48px;
    border-bottom: 1px solid var(--enola-border);
}

.sm-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.sm-hero__copy { position: relative; z-index: 2; }

.sm-hero__eyebrow {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--enola-primary);
    background: rgba(255,255,255,0.75);
    padding: 6px 14px;
    border-radius: var(--enola-radius-pill);
    border: 1px solid var(--enola-primary-border);
    margin-bottom: 18px;
}

.sm-hero__title {
    font-family: var(--enola-font-heading);
    font-size: clamp(2rem, 5.2vw, 3.2rem);
    line-height: 1.12;
    color: var(--enola-text);
    margin-bottom: 16px;
    letter-spacing: -0.015em;
}

.sm-hero__sub {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    color: var(--enola-text-mid);
    max-width: 560px;
    margin-bottom: 24px;
}

.sm-hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.sm-hero__bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    font-size: 0.88rem;
    color: var(--enola-text-mid);
    list-style: none;
    padding: 0;
    margin: 0;
}

.sm-hero__bullets li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sm-hero__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--enola-primary-light);
    color: var(--enola-primary);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
}

.sm-hero__disclosure {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 24px;
    font-size: 0.76rem;
    color: var(--enola-text-muted);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   HERO COLLAGE — 4 product thumbnail tiles
═══════════════════════════════════════════════════════════════ */
.sm-hero__collage {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.sm-collage__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sm-collage__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.6;
}

.sm-collage__blob--1 { width: 48%; height: 48%; top: 4%;  left: 10%; background: #ffd1e2; }
.sm-collage__blob--2 { width: 42%; height: 42%; bottom: 8%; right: 12%; background: #fce8ef; }
.sm-collage__blob--3 { width: 30%; height: 30%; top: 42%; right: 38%; background: #ffe3ef; }

.sm-collage__stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.sm-collage__tile {
    position: absolute;
    border-radius: var(--enola-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--enola-border);
    box-shadow: 0 8px 32px rgba(212,97,138,0.18), 0 2px 8px rgba(44,31,42,0.06);
    transition: transform 0.3s ease;
}

.sm-collage__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sm-collage__tile:hover { transform: translateY(-4px) rotate(0deg) !important; }

.sm-collage__tile--1 { top: 6%;  left: 4%;  width: 48%; height: 52%; transform: rotate(-6deg); z-index: 3; }
.sm-collage__tile--2 { top: 2%;  right: 4%; width: 42%; height: 42%; transform: rotate(4deg);  z-index: 2; }
.sm-collage__tile--3 { bottom: 4%; left: 12%; width: 42%; height: 38%; transform: rotate(3deg);  z-index: 2; }
.sm-collage__tile--4 { bottom: 8%; right: 2%; width: 46%; height: 46%; transform: rotate(-4deg); z-index: 3; }

.sm-collage__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #fff0f5 0%, #ffe3ef 100%);
}

.sm-collage__placeholder svg {
    width: 50%;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(212,97,138,0.22));
}

/* ═══════════════════════════════════════════════════════════════
   TRUSTED BRANDS STRIP
═══════════════════════════════════════════════════════════════ */
.sm-brands {
    padding: 24px 0;
    background: #fff;
    border-bottom: 1px solid var(--enola-border);
}

.sm-brands__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--enola-text-muted);
    text-align: center;
    margin-bottom: 14px;
}

.sm-brands__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 28px;
}

.sm-brands__item {
    font-family: var(--enola-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--enola-text-muted);
    letter-spacing: 0.01em;
    transition: color 0.2s;
    opacity: 0.7;
}

.sm-brands__item:hover { color: var(--enola-primary); opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   HOME SECTIONS — shared section layout
═══════════════════════════════════════════════════════════════ */
.sm-home-section { padding: 56px 0; }

.sm-home-section--alt {
    background: var(--enola-bg);
    border-top: 1px solid var(--enola-border);
    border-bottom: 1px solid var(--enola-border);
}

.sm-home-section__head { margin-bottom: 32px; }

.sm-home-section__head--center {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.sm-home-section__head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.sm-home-section__head h2 {
    font-family: var(--enola-font-heading);
    font-size: clamp(1.7rem, 3.2vw, 2.2rem);
    color: var(--enola-text);
    line-height: 1.25;
    margin-bottom: 8px;
}

.sm-home-section__head p {
    font-size: 1rem;
    color: var(--enola-text-muted);
}

.sm-home-section__more { text-align: center; margin-top: 40px; }

.sm-link-arrow {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--enola-primary);
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY GRID — product-imagery cards
═══════════════════════════════════════════════════════════════ */
.sm-cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.sm-cat-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--enola-border);
    border-radius: var(--enola-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s, border-color 0.2s;
    position: relative;
}

.sm-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(212,97,138,0.16);
    border-color: var(--enola-primary-border);
}

.sm-cat-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(160deg, #fff0f5 0%, #fce8ef 100%);
}

.sm-cat-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sm-cat-card:hover .sm-cat-card__media img { transform: scale(1.05); }

.sm-cat-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #fff0f5 0%, #fce8ef 100%);
}

.sm-cat-card__icon {
    font-size: 2.6rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(212,97,138,0.2));
}

.sm-cat-card__body { padding: 20px; }

.sm-cat-card__label {
    font-family: var(--enola-font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--enola-text);
    margin-bottom: 6px;
}

.sm-cat-card__blurb {
    font-size: 0.88rem;
    color: var(--enola-text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.sm-cat-card__count {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--enola-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sm-cat-card__count--soon {
    color: var(--enola-text-muted);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   MAGAZINE-STYLE LATEST GRID
═══════════════════════════════════════════════════════════════ */
.sm-posts-grid--mag { grid-template-columns: 1fr; }

.sm-latest-placeholder {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.enola-card--soon { opacity: 0.92; border-style: dashed; }
.enola-card--soon:hover { transform: none; }

.enola-card__soon-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--enola-primary);
    background: var(--enola-primary-light);
    padding: 4px 10px;
    border-radius: var(--enola-radius-pill);
}

/* ═══════════════════════════════════════════════════════════════
   INGREDIENT SPOTLIGHT — left-bar color cards
═══════════════════════════════════════════════════════════════ */
.sm-ingredients { background: #fff; }

.sm-ing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.sm-ing-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--enola-border);
    border-radius: var(--enola-radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.sm-ing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--ing-color, var(--enola-primary));
    opacity: 0.8;
}

.sm-ing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--enola-shadow-card);
    border-color: var(--enola-primary-border);
}

.sm-ing-card__dot {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ing-color, var(--enola-primary));
    opacity: 0.85;
    box-shadow: inset 0 -6px 16px rgba(255,255,255,0.4), 0 4px 10px rgba(44,31,42,0.08);
}

.sm-ing-card__content { flex: 1; }

.sm-ing-card__role {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--enola-text-muted);
    margin-bottom: 4px;
}

.sm-ing-card__name {
    font-family: var(--enola-font-heading);
    font-size: 1.15rem;
    color: var(--enola-text);
    margin-bottom: 6px;
}

.sm-ing-card__desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--enola-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   TRUST / METHODOLOGY BLOCK
═══════════════════════════════════════════════════════════════ */
.sm-trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 36px;
}

.sm-trust-card {
    background: #fff;
    border: 1px solid var(--enola-border);
    border-radius: var(--enola-radius);
    padding: 24px;
    text-align: center;
}

.sm-trust-card__icon { font-size: 2rem; margin-bottom: 10px; }

.sm-trust-card h3 {
    font-family: var(--enola-font-heading);
    font-size: 1.1rem;
    color: var(--enola-text);
    margin-bottom: 8px;
}

.sm-trust-card p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--enola-text-muted);
}

.sm-trust__cta { text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — SM-specific breakpoints
═══════════════════════════════════════════════════════════════ */

/* Tablet 640px+ */
@media (min-width: 640px) {
    .sm-posts-grid--mag { grid-template-columns: repeat(2, 1fr); }
    .sm-latest-placeholder { grid-template-columns: repeat(2, 1fr); }
    .sm-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .sm-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .sm-ing-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .sm-hero { padding: 56px 0 64px; }
    .sm-hero__title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
}

/* Desktop 900px+ */
@media (min-width: 900px) {
    .sm-trust-grid { grid-template-columns: repeat(4, 1fr); }
    .sm-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .sm-ing-grid { grid-template-columns: repeat(3, 1fr); }
    .sm-hero { padding: 72px 0 88px; }
    .sm-hero__grid { grid-template-columns: 1.15fr 1fr; gap: 48px; }
    .sm-hero__copy { text-align: left; }
    .sm-hero__cta { justify-content: flex-start; }
    .sm-hero__bullets { justify-content: flex-start; }
    .sm-hero__disclosure { text-align: left; }
    .sm-posts-grid--mag { grid-template-columns: repeat(3, 1fr); }
    .sm-latest-placeholder { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* Wide 1100px+ */
@media (min-width: 1100px) {
    .sm-cat-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; }
}
