/*
 Theme Name: Shine Harder
 Theme URI: https://yoursite.com
 Description: Child theme for graffiti/street art blog — editorial magazine layout
 Author: Your Name
 Template: twentytwentyfive
 Version: 1.0
*/

/* ── Google Fonts ────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700&family=Inter:wght@400;500&display=swap');

/* ── Global ──────────────────────────────────────────────────────────────── */
body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #111111;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* ── Headings ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #111111;
}

/* ── Site header ─────────────────────────────────────────────────────────── */
.wp-block-template-part header,
header.wp-block-template-part {
    padding: 20px 60px !important;
    margin-bottom: 0;
    box-sizing: border-box;
    border-bottom: 3px solid #111111;
}

.site-header-wrap {
    border-bottom: 3px solid #111111;
}

.wp-block-site-title a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111111 !important;
    text-decoration: none;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
.wp-block-navigation a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #111111 !important;
    text-decoration: none;
}

.wp-block-navigation a:hover {
    color: #E63030 !important;
}

/* Header nav links — white on dark background, red on hover/active */
.site-header-wrap .wp-block-navigation a {
    color: #ffffff !important;
    transition: color 0.15s;
}

.site-header-wrap .wp-block-navigation a:hover,
.site-header-wrap .wp-block-navigation a[aria-current="page"] {
    color: #E63030 !important;
}

/* ── Footer nav links ────────────────────────────────────────────────────── */
footer.wp-block-group p a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.15s;
}

footer.wp-block-group p a:hover,
footer.wp-block-group p a.sh-nav-active {
    color: #E63030 !important;
}

/* ── Global two column layout ────────────────────────────────────────────── */
main.wp-block-group {
    padding: 40px 60px 80px 60px !important;
    box-sizing: border-box;
}

.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 72% !important;
    max-width: 72% !important;
    min-width: 0;
}

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

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar-column {
    position: sticky;
    top: 20px;
}

.sidebar-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 70vh;
    overflow-y: auto;
}

.sidebar-categories li {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 0;
    border-bottom: 1px solid #eeeeee;
}

.sidebar-categories a {
    color: #111111 !important;
    text-decoration: none;
}

.sidebar-categories a:hover {
    color: #E63030 !important;
}

.sidebar-ad {
    background: #f5f5f5;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ── Homepage post grid ──────────────────────────────────────────────────── */
.wp-block-query {
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

/* ── Post cards ──────────────────────────────────────────────────────────── */
.wp-block-post {
    border: none;
    padding: 0;
    margin: 0;
}

.wp-block-post .wp-block-post-featured-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.wp-block-post .wp-block-post-featured-image a {
    display: block;
    overflow: hidden;
}

.wp-block-post .wp-block-post-featured-image img:hover {
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.wp-block-post-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 12px 0 6px 0;
    line-height: 1.2;
}

.wp-block-post-title a {
    color: #111111 !important;
    text-decoration: none;
}

.wp-block-post-title a:hover {
    color: #E63030 !important;
}

/* ── Post meta ───────────────────────────────────────────────────────────── */
.wp-block-post-date,
.wp-block-post-terms {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888888;
}

.wp-block-post-terms a {
    color: #E63030 !important;
    text-decoration: none;
    font-weight: 500;
}

/* ── Post excerpt ────────────────────────────────────────────────────────── */
.wp-block-post-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #555555;
    margin: 6px 0 8px 0;
}

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

/* ── Remove "Blog" heading ───────────────────────────────────────────────── */
.wp-block-query-title {
    display: none;
}

/* ── Hide comments ───────────────────────────────────────────────────────── */
.comments-area,
#comments {
    display: none !important;
}

/* ── Single post — hide duplicate image in content ───────────────────────── */
.single .wp-block-post-content .wp-block-image:first-of-type {
    display: none;
}

/* ── Single post featured image ──────────────────────────────────────────── */
.single .lightbox-trigger img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* ── Amazon references ───────────────────────────────────────────────────── */
.amazon-references {
    width: 100%;
}

.amazon-references h4 {
    font-size: 13px;
    margin-bottom: 20px;
}

.amazon-references .wp-block-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px;
    width: 100%;
}

.amazon-references .wp-block-column {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    overflow: hidden;
}

.amazon-ref-image img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    flex-shrink: 0;
}

.amazon-references p {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.amazon-references a {
    color: #111111;
    text-decoration: underline;
    word-break: break-word;
}

.amazon-references a:hover {
    color: #E63030;
}

/* ── Previous / Next navigation ─────────────────────────────────────────── */
.wp-block-post-navigation-link a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111111 !important;
    text-decoration: none;
}

.wp-block-post-navigation-link a:hover {
    color: #E63030 !important;
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
#sh-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

#sh-lightbox.active {
    display: flex;
}

#sh-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

#sh-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

#sh-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    line-height: 1;
    padding: 0;
}

#sh-lightbox-close:hover {
    color: #E63030;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.wp-block-template-part footer,
footer.wp-block-group {
    background-color: #111111 !important;
    border-top: none;
    margin-top: 0;
    padding: 30px 60px !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888888;
    box-sizing: border-box;
}

.wp-block-template-part footer .wp-block-site-title a,
footer.wp-block-group .wp-block-site-title a {
    color: #ffffff !important;
}

.site-info,
.powered-by {
    display: none;
}

/* ── Quote styling ─────────────────────────────────────────────────────────── */

.wp-block-post-content blockquote,
.entry-content blockquote,
.post-content blockquote {
    text-align: center;
    font-style: italic;
    font-size: 1.15em;
    line-height: 1.6;
    padding: 28px 40px;
    margin: 32px auto;
    max-width: 640px;
    border: none;
    border-left: none;
    color: #222;
}

.wp-block-post-content blockquote strong,
.entry-content blockquote strong,
.post-content blockquote strong {
    display: block;
    text-align: center;
    font-style: normal;
    font-size: 0.9em;
    letter-spacing: 0.04em;
    margin-top: 12px;
    color: #555;
}
