/*
Theme Name: Peptides Reference
Theme URI: https://peptidesreference.com
Description: Clean, modern, authoritative child theme for research peptide reference site. Inspired by premium research and lab aesthetics with gold accents.
Author: Grok for Peptides Reference
Author URI: https://peptidesreference.com
Template: assembler
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: peptides-reference
*/

/* Import parent styles if needed */
@import url('../assembler/style.css');

/* Custom global styles for clean, modern, authoritative look */
:root {
    --pr-gold: #C9A227; /* Warm gold accent matching premium research feel */
    --pr-dark: #1A1A1A;
    --pr-gray: #4A4A4A;
    --pr-light-gray: #F5F5F5;
    --pr-white: #FFFFFF;
}

/* Improve typography for authority */
body, .wp-block {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--pr-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--pr-dark);
    letter-spacing: -0.02em;
}

/* Gold accent for links and buttons */
a {
    color: var(--pr-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--pr-gold);
}

.wp-block-button__link,
button,
input[type="submit"] {
    background-color: var(--pr-dark) !important;
    color: var(--pr-white) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.wp-block-button__link:hover,
button:hover {
    background-color: var(--pr-gold) !important;
    color: var(--pr-dark) !important;
}

/* Clean card styles for sections */
.wp-block-group[style*="border"] {
    border: 1px solid #E5E5E5 !important;
    border-radius: 8px !important;
    padding: 2rem !important;
    transition: box-shadow 0.2s ease;
}

.wp-block-group[style*="border"]:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Professional header */
.wp-block-template-part.header {
    border-bottom: 1px solid #E5E5E5;
}

/* Better spacing for content */
.wp-block-post-content {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Research-focused callouts */
.pr-callout {
    background: var(--pr-light-gray);
    border-left: 4px solid var(--pr-gold);
    padding: 1.5rem;
    margin: 2rem 0;
}

/* =============================================================
   Peptide-page patterns
   Reusable styles for the patterns in /patterns/*.php
   ============================================================= */

/* Monospace utility for sequences/formulas */
.pr-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 0.9rem;
    word-break: break-word;
}

/* Quick Facts infobox — make it wider than content on desktop, stack on mobile */
.pr-peptide-infobox {
    max-width: 880px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.pr-peptide-infobox .wp-block-columns {
    gap: 2rem;
}

@media (max-width: 600px) {
    .pr-peptide-infobox .wp-block-columns {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
}

/* Override generic border-card hover for our patterns (no lift on infobox/disclaimer) */
.pr-peptide-infobox,
.pr-peptide-tldr,
.pr-peptide-disclaimer {
    transition: none !important;
}

.pr-peptide-infobox:hover,
.pr-peptide-tldr:hover,
.pr-peptide-disclaimer:hover {
    box-shadow: none !important;
}

/* TL;DR callout — slightly different from generic card */
.pr-peptide-tldr {
    background: #FCF8EE;
    max-width: 880px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Evidence cards — quiet, scannable */
.pr-evidence-card {
    max-width: 880px;
    margin-left: auto !important;
    margin-right: auto !important;
    background: var(--pr-white);
}

.pr-evidence-card:hover {
    border-color: var(--pr-gold) !important;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.08);
}

.pr-evidence-cite a {
    color: var(--pr-gold);
    font-weight: 500;
}

/* References list — tighter line height, hanging indent for numbers */
.pr-peptide-references {
    max-width: 880px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.pr-refs-list li {
    margin-bottom: 0.6rem;
}

.pr-refs-list li::marker {
    color: var(--pr-gold);
    font-weight: 600;
}

/* Disclaimer — slightly amber tinted */
.pr-peptide-disclaimer {
    background: #FAF6EA !important;
}

/* Hero — make sure dark bg + light text overrides anything inherited */
.pr-peptide-hero h1 {
    color: inherit !important;
}

.pr-peptide-eyebrow {
    margin-top: 0 !important;
    margin-bottom: 0.25rem !important;
}

/* Related card grid — equal heights, subtle hover */
.pr-related-card {
    height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.pr-related-card:hover {
    border-color: var(--pr-gold) !important;
    transform: translateY(-2px);
}

/* Auto-anchored headings (from functions.php filter) — show # on hover */
.entry-content h2[id],
.entry-content h3[id],
.wp-block-post-content h2[id],
.wp-block-post-content h3[id] {
    scroll-margin-top: 80px;
    position: relative;
}

.entry-content h2[id]::before,
.wp-block-post-content h2[id]::before {
    content: "";
}

.entry-content h2[id]:hover::after,
.entry-content h3[id]:hover::after,
.wp-block-post-content h2[id]:hover::after,
.wp-block-post-content h3[id]:hover::after {
    content: " §";
    color: var(--pr-gold);
    margin-left: 0.4rem;
    font-weight: 400;
    opacity: 0.7;
}

/* Override generic .wp-block-group[style*="border"] padding for patterns
   that already specify their own padding via inline styles */
.pr-peptide-hero,
.pr-peptide-infobox,
.pr-peptide-tldr,
.pr-peptide-disclaimer,
.pr-evidence-card,
.pr-related-card,
.pr-peptide-references {
    padding: unset;
}
