/*
 Theme Name: Shine Harder Tattoos
 Theme URI: https://tattoos.shineharder.com
 Description: Child theme for tattoos.shineharder.com — editorial magazine layout inspired by InkedMag
 Author: Shineharder
 Template: twentytwentyfive
 Version: 1.0
*/

/* ── Google Fonts ────────────────────────────────────────────────────────── */
/* Oswald = InkedMag's condensed bold headings style */
/* Inter = clean body copy */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── CSS Custom Properties ───────────────────────────────────────────────── */
:root {
    --color-black:   #000000;
    --color-white:   #ffffff;
    --color-red:     #E63030;
    --color-gray:    #888888;
    --color-light:   #f5f5f5;
    --color-border:  #e0e0e0;
    --font-heading:  'Oswald', sans-serif;
    --font-body:     'Inter', sans-serif;
    --max-width:     1240px;
    --pad-x:         40px;
}

/* ── Reset / Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background: var(--color-white);
    margin: 0;
    padding: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-black);
    margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   HEADER — black bar, white logo, category nav below
   ════════════════════════════════════════════════════════════════════════════ */

.wp-block-template-part header,
header.wp-block-template-part {
    background: var(--color-black) !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: none !important;
}

.site-header-wrap {
    background: var(--color-black) !important;
    border-bottom: none !important;
}

/* Top bar: logo centred, search icon right */
.header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px var(--pad-x);
    border-bottom: 1px solid #222;
}

/* Site title as logo text */
.wp-block-site-title a {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-white) !important;
    text-decoration: none;
}

/* Category nav bar below logo */
.wp-block-navigation {
    background: var(--color-black);
    border-top: 1px solid #222;
}

.wp-block-navigation a {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white) !important;
    text-decoration: none;
    padding: 10px 14px;
    display: inline-block;
    transition: color 0.15s;
}

.wp-block-navigation a:hover {
    color: var(--color-red) !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   HERO BANNER — full-width featured post overlay
   ════════════════════════════════════════════════════════════════════════════ */

.hero-banner {
    position: relative;
    width: 100%;
    max-height: 520px;
    overflow: hidden;
    background: var(--color-black);
}

.hero-banner img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    opacity: 0.75;
    display: block;
}

.hero-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px var(--pad-x) 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
}

.hero-banner-category {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-red);
    margin-bottom: 8px;
    display: block;
}

.hero-banner-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-white);
    line-height: 1.05;
    max-width: 700px;
    margin-bottom: 10px;
}

.hero-banner-excerpt {
    font-family: var(--font-body);
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ════════════════════════════════════════════════════════════════════════════ */

main.wp-block-group {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px var(--pad-x) 60px !important;
    box-sizing: border-box;
}

/* ── Section headings (Top Stories / Latest / Music) ─────────────────────── */
.section-heading {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-black);
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-black);
    margin: 0 0 24px 0;
}

/* ── Two-column layout: main feed + sidebar ──────────────────────────────── */
.wp-block-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

.wp-block-columns > .wp-block-column:first-child {
    flex: 0 0 70% !important;
    max-width: 70% !important;
    min-width: 0;
}

.wp-block-columns > .wp-block-column:last-child {
    flex: 0 0 calc(30% - 40px) !important;
    max-width: calc(30% - 40px) !important;
    min-width: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   POST CARD GRID — 3 columns like InkedMag
   ════════════════════════════════════════════════════════════════════════════ */

.wp-block-query {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── Post card ───────────────────────────────────────────────────────────── */
.wp-block-post {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Thumbnail */
.wp-block-post .wp-block-post-featured-image {
    position: relative;
    overflow: hidden;
    background: var(--color-black);
    aspect-ratio: 4/3;
}

.wp-block-post .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.wp-block-post .wp-block-post-featured-image a:hover img {
    transform: scale(1.03);
    opacity: 0.85;
}

/* Category pill — InkedMag style black label on image */
.wp-block-post-terms {
    position: relative;
    z-index: 2;
}

.wp-block-post-terms a {
    display: inline-block;
    background: var(--color-black);
    color: var(--color-white) !important;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 3px 8px;
    text-decoration: none;
    margin-top: 8px;
}

.wp-block-post-terms a:hover {
    background: var(--color-red);
}

/* Post title */
.wp-block-post-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin: 8px 0 6px;
}

.wp-block-post-title a {
    color: var(--color-black) !important;
    text-decoration: none;
}

.wp-block-post-title a:hover {
    color: var(--color-red) !important;
}

/* Excerpt */
.wp-block-post-excerpt {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    color: #444;
    margin: 0 0 8px;
}

.wp-block-post-excerpt p { margin: 0; }

/* Date */
.wp-block-post-date {
    font-family: var(--font-body);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gray);
    margin-top: auto;
}

/* ════════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════════════════ */

.sidebar-column {
    position: sticky;
    top: 20px;
}

/* The Latest — magazine cover thumbnails */
.sidebar-latest {}

.sidebar-latest .section-heading {
    font-size: 18px;
}

.sidebar-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-categories a {
    color: var(--color-black) !important;
    text-decoration: none;
}

.sidebar-categories a:hover {
    color: var(--color-red) !important;
}

/* Ad placeholder */
.sidebar-ad {
    background: var(--color-light);
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    border: 1px solid var(--color-border);
}

.sidebar-ad p {
    font-family: var(--font-body);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════════════════════════════════════ */

.wp-block-query-pagination {
    display: flex;
    gap: 8px;
    margin-top: 40px;
    justify-content: center;
}

.wp-block-query-pagination a,
.wp-block-query-pagination span {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border: 2px solid var(--color-black);
    color: var(--color-black);
    text-decoration: none;
    transition: all 0.15s;
}

.wp-block-query-pagination a:hover,
.wp-block-query-pagination-next a,
.wp-block-query-pagination-previous a {
    background: var(--color-black);
    color: var(--color-white);
}

/* ════════════════════════════════════════════════════════════════════════════
   SINGLE POST
   ════════════════════════════════════════════════════════════════════════════ */

.single main.wp-block-group {
    max-width: 860px;
}

.single .wp-block-post-featured-image {
    margin-bottom: 28px;
}

.single .wp-block-post-featured-image img {
    width: 100%;
    height: auto;
}

.single .wp-block-post-title {
    font-size: 42px;
    margin-bottom: 16px;
}

.single .wp-block-post-content {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: #222;
}

.single .wp-block-post-content p {
    margin-bottom: 20px;
}

.single .wp-block-post-content h2 {
    font-size: 26px;
    margin: 32px 0 12px;
}

/* Hide first image in content (already shown as featured) */
.single .wp-block-post-content .wp-block-image:first-of-type {
    display: none;
}

/* Discovery source attribution */
.discovery-source {
    font-size: 13px !important;
    color: var(--color-gray) !important;
    font-style: italic;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
    margin-top: 24px !important;
}

.discovery-source a {
    color: var(--color-black) !important;
    text-decoration: underline;
}

/* Image credit (Unsplash) */
.image-credit {
    font-size: 11px !important;
    color: var(--color-gray) !important;
    text-align: right;
    margin-top: 4px !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   ARCHIVE PAGE
   ════════════════════════════════════════════════════════════════════════════ */

.archive-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-black);
    margin-bottom: 28px;
}

/* ════════════════════════════════════════════════════════════════════════════
   FOOTER — dark, multi-column like InkedMag
   ════════════════════════════════════════════════════════════════════════════ */

.wp-block-template-part footer {
    background: var(--color-black) !important;
    color: var(--color-white);
    padding: 48px var(--pad-x) 32px !important;
    margin-top: 60px;
    border-top: none !important;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white) !important;
    display: block;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-cols {
    display: flex;
    gap: 60px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-col ul a:hover {
    color: var(--color-red) !important;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5) !important;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-social a:hover {
    color: var(--color-red) !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   HIDE DEFAULTS
   ════════════════════════════════════════════════════════════════════════════ */

.wp-block-query-title { display: none; }
.comments-area, #comments { display: none !important; }
.wp-block-template-part footer .wp-block-site-title,
.wp-block-template-part footer .powered-by,
.site-info { display: none; }

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    :root { --pad-x: 24px; }

    .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr);
    }

    .wp-block-columns {
        flex-direction: column !important;
    }

    .wp-block-columns > .wp-block-column:first-child,
    .wp-block-columns > .wp-block-column:last-child {
        flex: 1 1 auto !important;
        max-width: 100% !important;
    }

    .hero-banner-title { font-size: 36px; }
}

@media (max-width: 600px) {
    .wp-block-post-template {
        grid-template-columns: 1fr;
    }

    .hero-banner-title { font-size: 28px; }
    .hero-banner img { height: 340px; }
}
