/* ═══════════════════════════════════════════════════════
   UnveilHiddenUSA — Category Section Styles
   File: uhusa-category-section.css
   Matches site palette: gold #e8a838 / black #111 / white #fffef9
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@400;500;600&display=swap');

/* ── Variables ── */
.uhusa-cat-section {
    --gold:       #e8a838;
    --gold-dk:    #c9960a;
    --gold-pale:  #fdf6e3;
    --black:      #111111;
    --ink:        #2d2d2d;
    --body:       #555555;
    --muted:      #888888;
    --border:     #e8e2d4;
    --bg:         #fffef9;
    --white:      #ffffff;
    --radius:     14px;
    --tr:         0.28s ease;
    --font-head:  'Playfair Display', Georgia, serif;
    --font-body:  'DM Sans', sans-serif;
}

/* ── Section wrapper ── */
.uhusa-cat-section {
    width: 100%;
    padding: 64px 0;
    background: var(--bg);
    font-family: var(--font-body);
}

/* ── 4-column grid ── */
.uhusa-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ═══════════════════════════════════════════════════════
   CATEGORY COLUMN CARD
═══════════════════════════════════════════════════════ */
.uhusa-cat-col {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr);
}
.uhusa-cat-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 52px rgba(0,0,0,0.10);
    border-color: var(--gold);
}

/* ── Category Header ── */
.uhusa-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 0;
    text-decoration: none;
    color: var(--black);
    transition: color var(--tr);
}
.uhusa-cat-header:hover { color: var(--gold-dk); }

.uhusa-cat-icon {
    width: 48px;
    height: 48px;
    background: var(--black);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--tr);
}
.uhusa-cat-col:hover .uhusa-cat-icon {
    background: var(--gold-dk);
}
.uhusa-cat-icon svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
    transition: color var(--tr);
}
.uhusa-cat-col:hover .uhusa-cat-icon svg {
    color: var(--white);
}

.uhusa-cat-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.uhusa-cat-name {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
    transition: color var(--tr);
}
.uhusa-cat-header:hover .uhusa-cat-name { color: var(--gold-dk); }

.uhusa-cat-count {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.uhusa-cat-arrow {
    width: 28px;
    height: 28px;
    background: var(--gold-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--tr), transform var(--tr);
}
.uhusa-cat-arrow svg {
    width: 13px;
    height: 13px;
    color: var(--gold-dk);
}
.uhusa-cat-header:hover .uhusa-cat-arrow {
    background: var(--gold);
    transform: translateX(3px);
}
.uhusa-cat-header:hover .uhusa-cat-arrow svg { color: var(--white); }

/* ── Gold Divider ── */
.uhusa-cat-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-pale));
    margin: 14px 20px 0;
    border-radius: 2px;
    opacity: 0.5;
    transition: opacity var(--tr);
}
.uhusa-cat-col:hover .uhusa-cat-divider { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   POST CARD
═══════════════════════════════════════════════════════ */
.uhusa-cat-post {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 0 0;
}

/* ── Thumbnail ── */
.uhusa-cat-thumb-link {
    display: block;
    margin: 0 20px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.uhusa-cat-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: var(--border);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: transform var(--tr);
}
.uhusa-cat-col:hover .uhusa-cat-thumb {
    transform: scale(1.03);
}
.uhusa-cat-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.35) 0%,
        transparent 55%
    );
    opacity: 0;
    transition: opacity var(--tr);
}
.uhusa-cat-col:hover .uhusa-cat-thumb-overlay { opacity: 1; }

/* No thumbnail placeholder */
.uhusa-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-pale);
}
.uhusa-no-thumb svg {
    width: 36px;
    height: 36px;
    color: var(--gold);
    opacity: 0.6;
}

/* ── Post body ── */
.uhusa-cat-post-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 20px 20px;
    gap: 8px;
}

/* Date */
.uhusa-cat-post-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.73rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.uhusa-cat-post-date svg {
    width: 12px;
    height: 12px;
    color: var(--gold);
    flex-shrink: 0;
}

/* Title */
.uhusa-cat-post-title {
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    flex: 1;
}
.uhusa-cat-post-title a {
    color: var(--ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--tr);
}
.uhusa-cat-post-title a:hover { color: var(--gold-dk); }

/* Read more link */
.uhusa-cat-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-dk);
    text-decoration: none;
    padding: 8px 0 0;
    border-top: 1px solid var(--border);
    margin-top: auto;
    transition: gap var(--tr), color var(--tr);
}
.uhusa-cat-read-more:hover { gap: 10px; color: var(--black); }
.uhusa-cat-read-more svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* ── Empty state ── */
.uhusa-cat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 28px;
    text-align: center;
    gap: 10px;
    flex: 1;
}
.uhusa-cat-empty svg {
    width: 36px;
    height: 36px;
    color: var(--gold);
    opacity: 0.5;
}
.uhusa-cat-empty p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}
.uhusa-cat-empty a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-dk);
    text-decoration: none;
    transition: color var(--tr);
}
.uhusa-cat-empty a:hover { color: var(--black); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET (2 columns)
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .uhusa-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 24px;
    }
    .uhusa-cat-section { padding: 52px 0; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (1 column)
═══════════════════════════════════════════════════════ */
@media (max-width: 580px) {
    .uhusa-cat-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    .uhusa-cat-section { padding: 40px 0; }
    .uhusa-cat-col:hover { transform: none; }
    .uhusa-cat-thumb { aspect-ratio: 16 / 9; }
}
