/*
Theme Name:   Kenardly
Theme URI:    https://kenardly.com
Description:  Rolls-Kenardly — The internet's finest collection of automotive disasters. Gallery-first community site with merch store.
Author:       Rolls-Kenardly
Template:     astra
Version:      2.0.0
Text Domain:  kenardly
*/

/* ── BRAND VARIABLES ─────────────────────────────────── */
:root {
    --rk-blue:    #1D5FA6;
    --rk-dark:    #0E2E55;
    --rk-darker:  #081C36;
    --rk-gold:    #C8A84B;
    --rk-gold-lt: #E8CC80;
    --sk-yellow:  #F5D000;
    --sk-black:   #111111;
    --bg-page:    #F4F1EB;
    --bg-card:    #FFFFFF;
    --bg-warm:    #FAF8F3;
    --border:     #E2DDD4;
    --text-dark:  #1A1A1A;
    --text-med:   #444444;
    --text-light: #888888;
    --text-dim:   #BBBBBB;
}

/* ── BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg-page); color: var(--text-dark); font-family: 'Barlow', sans-serif; font-weight: 300; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ── UTILITY BAR ─────────────────────────────────────── */
.rk-util-bar { background: var(--rk-darker); padding: 5px 28px; display: flex; justify-content: space-between; align-items: center; font-family: 'Barlow', sans-serif; }
.rk-util-left { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.rk-util-links { display: flex; gap: 16px; }
.rk-util-links a { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.rk-util-links a:hover { color: var(--rk-gold); }

/* ── NAV ─────────────────────────────────────────────── */
.rk-nav { background: var(--rk-dark); border-bottom: 3px solid var(--rk-gold); padding: 0 28px; display: flex; align-items: center; justify-content: space-between; height: 48px; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(8,28,54,0.4); }
.rk-nav-links { display: flex; }
.rk-nav-links a { font-family: 'Barlow', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.65); padding: 0 16px; line-height: 48px; display: block; transition: color 0.2s; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.rk-nav-links a:hover { color: var(--rk-gold); border-bottom-color: var(--rk-gold); }
.rk-nav-cta { background: var(--rk-gold); color: var(--rk-dark); font-family: 'Barlow', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 8px 16px; transition: background 0.2s; }
.rk-nav-cta:hover { background: var(--rk-gold-lt); color: var(--rk-dark); }

/* ── HERO: TWO LOGOS ─────────────────────────────────── */
.rk-hero { background: var(--rk-blue); border-bottom: 3px solid var(--rk-gold); padding: 40px 28px; display: flex; align-items: center; justify-content: center; gap: 64px; position: relative; overflow: hidden; }
.rk-hero::before { content: 'KENARDLY'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); font-family: 'Playfair Display', Georgia, serif; font-size: 160px; font-weight: 900; color: rgba(255,255,255,0.025); pointer-events: none; letter-spacing: -6px; }

.rk-logo-block { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* RK Shield placeholder */
.rk-shield { width: 90px; height: 116px; background: var(--rk-dark); border: 3px solid var(--rk-gold); border-radius: 8px 8px 30px 30px; position: relative; flex-shrink: 0; }
.rk-shield-inner { position: absolute; inset: 4px; background: var(--rk-blue); border-radius: 5px 5px 24px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rk-shield-top { font-family: 'Barlow', sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 3px; color: var(--rk-gold); margin-bottom: 2px; }
.rk-shield-mid { font-family: 'Playfair Display', Georgia, serif; font-size: 34px; font-weight: 700; font-style: italic; color: #fff; line-height: 1; }
.rk-shield-bot { font-family: 'Barlow', sans-serif; font-size: 7px; font-weight: 700; letter-spacing: 2px; color: var(--rk-gold); margin-top: 2px; }

/* Real logo when uploaded */
.rk-logo-block .custom-logo { max-height: 116px !important; width: auto !important; }
.rk-sk-logo-img { max-height: 110px; width: auto; }

.rk-logo-name { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; font-weight: 700; color: #fff; letter-spacing: 5px; text-transform: uppercase; }
.rk-logo-tag  { font-family: 'Barlow', sans-serif; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.45); }

/* SK Shield placeholder */
.rk-sk-shield { width: 84px; height: 104px; background: var(--sk-yellow); border: 3px solid var(--sk-black); border-radius: 5px 5px 26px 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.rk-sk-cow { font-size: 38px; line-height: 1; }
.rk-sk-initials { font-family: 'Playfair Display', Georgia, serif; font-size: 14px; font-weight: 700; font-style: italic; color: var(--sk-black); letter-spacing: 2px; }
.rk-sk-name { font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 600; color: #fff; letter-spacing: 3px; text-transform: uppercase; }
.rk-sk-sub  { font-family: 'Barlow', sans-serif; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.45); }

/* Divider */
.rk-hero-divider { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rk-divider-line { width: 1px; height: 80px; background: var(--rk-gold); opacity: 0.35; }
.rk-divider-diamond { width: 9px; height: 9px; background: var(--rk-gold); transform: rotate(45deg); opacity: 0.7; }

/* ── TICKER ──────────────────────────────────────────── */
.rk-ticker-wrap { background: var(--rk-gold); overflow: hidden; padding: 7px 0; white-space: nowrap; }
.rk-ticker-track { display: inline-block; animation: rkTicker 65s linear infinite; font-family: 'Barlow', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--rk-dark); padding-right: 80px; }
@keyframes rkTicker { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* ── CATEGORY STRIP ──────────────────────────────────── */
.rk-cat-strip { background: var(--rk-dark); display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid rgba(200,168,75,0.2); }
.rk-cat-strip::-webkit-scrollbar { display: none; }
.rk-cat-item { font-family: 'Barlow', sans-serif; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.7); padding: 0 18px; height: 46px; line-height: 46px; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: all 0.2s; flex-shrink: 0; display: block; font-weight: 500; }
.rk-cat-item:hover { color: var(--sk-yellow); border-bottom-color: var(--rk-gold); background: rgba(255,255,255,0.05); }
.rk-cat-item.active { color: var(--rk-gold); border-bottom-color: var(--rk-gold); }

/* ── TAGLINE BAND ────────────────────────────────────── */
.rk-tagline-band { background: var(--bg-warm); padding: 16px 28px; text-align: center; border-bottom: 1px solid var(--border); }
.rk-tagline-headline { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; font-weight: 700; font-style: italic; color: var(--rk-dark); margin-bottom: 4px; }
.rk-tagline-sub { font-family: 'Barlow', sans-serif; font-size: 11px; color: var(--text-light); letter-spacing: 1px; }

/* ── SECTION LABEL ───────────────────────────────────── */
.rk-section-label { font-family: 'Barlow', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--rk-gold); padding: 16px 20px 10px; display: flex; align-items: center; gap: 12px; }
.rk-section-label::after { content: ''; flex: 1; height: 0.5px; background: var(--border); }

/* ── CATEGORY GRID ───────────────────────────────────── */
.rk-cat-grid-wrap { background: var(--bg-page); }
.rk-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 0 20px 20px; }

.rk-cat-card { position: relative; height: 200px; overflow: hidden; cursor: pointer; display: block; }
.rk-cat-card--wide { grid-column: span 2; height: 220px; }
.rk-cat-card:hover .rk-cat-photo { transform: scale(1.05); }
.rk-cat-card:hover .rk-cat-overlay { background: linear-gradient(to top, rgba(8,28,54,0.96) 0%, rgba(8,28,54,0.5) 55%, rgba(0,0,0,0.1) 100%); }
.rk-cat-card:hover .rk-cat-btn { opacity: 1; transform: translateY(0); }

.rk-cat-photo { width: 100%; height: 100%; background-size: cover; background-position: center; background-color: #1a2030; transition: transform 0.4s ease; }
.rk-cat-photo--empty { display: flex; align-items: center; justify-content: center; background: var(--rk-dark); }
.rk-cat-no-photos { font-family: 'Barlow', sans-serif; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.25); }

.rk-cat-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; transition: background 0.3s; }
.rk-cat-name { font-family: 'Playfair Display', Georgia, serif; font-size: 16px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 4px; }
.rk-cat-card--wide .rk-cat-name { font-size: 22px; }
.rk-cat-desc { font-family: 'Barlow', sans-serif; font-size: 10px; color: rgba(255,255,255,0.6); letter-spacing: 0.5px; margin-bottom: 4px; }
.rk-cat-count { font-family: 'Barlow', sans-serif; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rk-gold); margin-bottom: 6px; }
.rk-cat-btn { display: inline-block; background: var(--rk-gold); color: var(--rk-dark); font-family: 'Barlow', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 5px 12px; opacity: 0; transform: translateY(6px); transition: all 0.25s; }

/* ── SUBMIT BANNER ───────────────────────────────────── */
.rk-submit-banner { background: var(--rk-dark); padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 20px; }
.rk-submit-headline { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; font-weight: 700; font-style: italic; color: #fff; margin-bottom: 5px; }
.rk-submit-body { font-family: 'Barlow', sans-serif; font-size: 12px; color: rgba(255,255,255,0.5); }
.rk-submit-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* ── BUTTONS ─────────────────────────────────────────── */
.rk-btn-gold { background: var(--rk-gold); color: var(--rk-dark); font-family: 'Barlow', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 11px 20px; display: inline-block; transition: background 0.2s; }
.rk-btn-gold:hover { background: var(--rk-gold-lt); color: var(--rk-dark); }
.rk-btn-ghost { background: transparent; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.2); font-family: 'Barlow', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; padding: 11px 18px; display: inline-block; transition: all 0.2s; }
.rk-btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.rk-btn-empo { background: var(--rk-gold); color: var(--rk-dark); font-family: 'Barlow', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 10px 18px; display: inline-block; white-space: nowrap; transition: background 0.2s; }
.rk-btn-empo:hover { background: var(--rk-gold-lt); color: var(--rk-dark); }

/* ── RECENT SUBMISSIONS ──────────────────────────────── */
.rk-recent-wrap { padding: 0 20px 20px; }
.rk-recent-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.rk-recent-card { display: block; background: var(--bg-card); overflow: hidden; transition: opacity 0.2s; }
.rk-recent-card:hover { opacity: 0.85; }
.rk-recent-photo { height: 110px; background-size: cover; background-position: center; background-color: var(--rk-dark); }
.rk-recent-photo--empty { display: flex; align-items: center; justify-content: center; font-size: 24px; }
.rk-recent-body { padding: 8px 10px; }
.rk-recent-cat { font-family: 'Barlow', sans-serif; font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rk-blue); margin-bottom: 3px; font-weight: 600; }
.rk-recent-title { font-family: 'Playfair Display', Georgia, serif; font-size: 12px; font-weight: 700; color: var(--rk-dark); line-height: 1.3; margin-bottom: 3px; }
.rk-recent-meta { font-family: 'Barlow', sans-serif; font-size: 9px; color: var(--text-dim); }

/* ── EMPORIUM STRIP ──────────────────────────────────── */
.rk-emporium-strip { background: var(--sk-black); display: flex; align-items: stretch; margin: 20px 20px 0; }
.rk-empo-black { background: #111; padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; min-width: 160px; flex-shrink: 0; border-right: 1px solid #222; }
.rk-empo-name { font-family: 'Playfair Display', Georgia, serif; font-size: 16px; font-weight: 700; color: var(--rk-gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 2px; }
.rk-empo-sub { font-family: 'Barlow', sans-serif; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.rk-empo-merch { flex: 1; display: flex; align-items: center; gap: 2px; padding: 12px; background: #1a1a1a; }
.rk-merch-item { display: flex; flex-direction: column; align-items: center; gap: 5px; background: #222; border: 0.5px solid #333; padding: 12px 10px; flex: 1; cursor: pointer; transition: border-color 0.2s; text-align: center; }
.rk-merch-item:hover { border-color: var(--rk-gold); }
.rk-merch-icon { font-size: 26px; }
.rk-merch-img { width: 50px; height: 50px; object-fit: cover; }
.rk-merch-name { font-family: 'Barlow', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.rk-merch-price { font-family: 'Playfair Display', Georgia, serif; font-size: 13px; color: var(--rk-gold); }
.rk-empo-cta-wrap { padding: 20px; display: flex; align-items: center; background: #111; flex-shrink: 0; }

/* ── SCUDERIA BAND ───────────────────────────────────── */
.rk-scuderia-band { background: var(--sk-yellow); border-top: 4px solid var(--sk-black); border-bottom: 4px solid var(--sk-black); display: flex; align-items: stretch; margin: 20px 20px 0; }
.rk-sk-black-panel { background: var(--sk-black); padding: 24px 24px; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.rk-sk-panel-logo { max-height: 70px; width: auto; }
.rk-sk-panel-shield { width: 52px; height: 64px; background: var(--sk-yellow); border: 2.5px solid var(--sk-black); border-radius: 4px 4px 18px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.rk-sk-panel-name { font-family: 'Playfair Display', Georgia, serif; font-size: 16px; font-weight: 700; color: var(--sk-yellow); letter-spacing: 2px; text-transform: uppercase; line-height: 1.2; }
.rk-sk-panel-sub { font-family: 'Barlow', sans-serif; font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-top: 3px; }
.rk-sk-yellow-panel { flex: 1; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; overflow: hidden; }
.rk-sk-yellow-panel::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 120px; background-image: repeating-conic-gradient(rgba(0,0,0,0.07) 0% 25%, transparent 0% 50%); background-size: 18px 18px; }
.rk-sk-headline { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; font-weight: 700; color: var(--sk-black); margin-bottom: 6px; }
.rk-sk-headline em { font-style: italic; }
.rk-sk-body { font-family: 'Barlow', sans-serif; font-size: 12px; color: rgba(0,0,0,0.55); line-height: 1.6; max-width: 480px; }
.rk-sk-cta-btn { background: var(--sk-black); color: var(--sk-yellow); font-family: 'Barlow', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 10px 20px; display: inline-block; white-space: nowrap; position: relative; z-index: 1; flex-shrink: 0; transition: opacity 0.2s; }
.rk-sk-cta-btn:hover { opacity: 0.85; color: var(--sk-yellow); }

/* ── GAZETTE PREVIEW ─────────────────────────────────── */
.rk-gazette-wrap { padding: 0 20px 20px; }
.rk-gazette-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.rk-gazette-card { display: block; background: var(--bg-card); border: 0.5px solid var(--border); overflow: hidden; transition: opacity 0.2s; }
.rk-gazette-card:hover { opacity: 0.85; }
.rk-gazette-thumb { height: 140px; background-size: cover; background-position: center; background-color: var(--rk-dark); }
.rk-gazette-thumb--empty { background: var(--rk-dark); }
.rk-gazette-body { padding: 14px 16px; }
.rk-gazette-title { font-family: 'Playfair Display', Georgia, serif; font-size: 15px; font-weight: 700; color: var(--rk-dark); line-height: 1.3; margin-bottom: 6px; }
.rk-gazette-excerpt { font-family: 'Barlow', sans-serif; font-size: 12px; color: var(--text-light); line-height: 1.5; margin-bottom: 8px; }
.rk-gazette-meta { font-family: 'Barlow', sans-serif; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
.rk-gazette-all-wrap { text-align: center; margin-top: 16px; }
.rk-gazette-all-link { font-family: 'Barlow', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--rk-blue); border-bottom: 1px solid rgba(29,95,166,0.3); }

/* ── FOOTER ──────────────────────────────────────────── */
.rk-footer { background: var(--rk-dark); border-top: 3px solid var(--rk-gold); padding: 40px 28px 20px; margin-top: 20px; }
.rk-footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; max-width: 1200px; }
.rk-footer-logo-name { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.rk-footer-tagline { font-family: 'Barlow', sans-serif; font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.6; margin-bottom: 12px; }
.rk-footer-copy { font-family: 'Barlow', sans-serif; font-size: 10px; color: rgba(255,255,255,0.2); }
.rk-footer-col-title { font-family: 'Barlow', sans-serif; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--rk-gold); margin-bottom: 14px; font-weight: 600; }
.rk-footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rk-footer-links a { font-family: 'Barlow', sans-serif; font-size: 12px; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.rk-footer-links a:hover { color: var(--rk-gold); }
.rk-footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 16px; font-family: 'Barlow', sans-serif; font-size: 10px; color: rgba(255,255,255,0.2); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 960px) {
    .rk-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .rk-cat-card--wide { grid-column: span 2; }
    .rk-recent-grid { grid-template-columns: repeat(3, 1fr); }
    .rk-gazette-grid { grid-template-columns: repeat(2, 1fr); }
    .rk-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .rk-util-bar { display: none; }
    .rk-nav-links { display: none; }
    .rk-hero { gap: 32px; padding: 28px 20px; }
    .rk-hero::before { display: none; }
    .rk-cat-grid { grid-template-columns: 1fr; padding: 0 12px 12px; }
    .rk-cat-card--wide { grid-column: span 1; }
    .rk-recent-grid { grid-template-columns: repeat(2, 1fr); }
    .rk-gazette-grid { grid-template-columns: 1fr; }
    .rk-submit-banner { flex-direction: column; margin: 0 12px; }
    .rk-emporium-strip { flex-direction: column; margin: 12px 12px 0; }
    .rk-scuderia-band { flex-direction: column; margin: 12px 12px 0; }
    .rk-footer-inner { grid-template-columns: 1fr; }
}
