/*
Theme Name: WHG Theme
Theme URI: https://weddinghashtagsgenerator.com
Author: WeddingHashtagsGenerator
Author URI: https://weddinghashtagsgenerator.com
Description: Lightweight custom theme for Wedding Hashtags Generator — a free AI-powered wedding hashtag tool.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 8.0
License: GPL-2.0+
Text Domain: whg-theme
*/

/* ── Reset & Variables ───────────────────────────────────────── */
:root {
    --whg-blush: #fdf2f8;
    --whg-blush-deep: #fce7f3;
    --whg-sage: #f0fdf4;
    --whg-sage-deep: #dcfce7;
    --whg-rose: #be185d;
    --whg-rose-hover: #9d174d;
    --whg-rose-light: #f9a8d4;
    --whg-dark: #1f2937;
    --whg-body: #374151;
    --whg-muted: #6b7280;
    --whg-border: #e5e7eb;
    --whg-white: #ffffff;
    --whg-bg: #fffbfe;
    --whg-radius: 12px;
    --whg-radius-sm: 8px;
    --whg-max-w: 820px;
    --whg-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --whg-font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--whg-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--whg-body);
    background: var(--whg-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--whg-rose); text-decoration: none; transition: color .15s; }
a:hover { color: var(--whg-rose-hover); }

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--whg-font-serif);
    color: var(--whg-dark);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.45rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }

p { margin-bottom: 1rem; max-width: 68ch; }

/* ── Layout ──────────────────────────────────────────────────── */
.whg-container {
    max-width: var(--whg-max-w);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.whg-container--wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
    background: var(--whg-white);
    border-bottom: 1px solid var(--whg-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}

.site-brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--whg-rose), #e879a8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--whg-white);
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.site-brand-text {
    font-family: var(--whg-font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--whg-dark);
}

/* ── Nav ─────────────────────────────────────────────────────── */
.site-nav { display: flex; align-items: center; gap: .15rem; }

.site-nav a {
    padding: .4rem .75rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--whg-body);
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.site-nav a:hover {
    background: var(--whg-blush);
    color: var(--whg-rose);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    color: var(--whg-dark);
}

.mobile-toggle svg { width: 22px; height: 22px; }

/* ── Hero (front page) ───────────────────────────────────────── */
.whg-hero {
    text-align: center;
    padding: 3rem 1.25rem 1.5rem;
    background: linear-gradient(175deg, var(--whg-blush) 0%, var(--whg-bg) 100%);
}

.whg-hero h1 {
    font-size: 2.2rem;
    max-width: 600px;
    margin: 0 auto .6rem;
}

.whg-hero p {
    font-size: 1.05rem;
    color: var(--whg-muted);
    max-width: 520px;
    margin: 0 auto;
}

/* ── Page header ─────────────────────────────────────────────── */
.page-header {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--whg-border);
    margin-bottom: 2rem;
}

.page-header h1 { margin-bottom: .35rem; }

.page-header p {
    color: var(--whg-muted);
    font-size: .95rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Content area ────────────────────────────────────────────── */
.site-main {
    padding: 2rem 0 3rem;
}

/* Single post / page content */
.entry-content {
    max-width: var(--whg-max-w);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.entry-content h2 { font-size: 1.4rem; }
.entry-content h3 { font-size: 1.15rem; }

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.entry-content li { margin-bottom: .35rem; }

.entry-content blockquote {
    border-left: 3px solid var(--whg-rose-light);
    padding: .75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--whg-blush);
    border-radius: 0 var(--whg-radius-sm) var(--whg-radius-sm) 0;
    font-style: italic;
    color: var(--whg-dark);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .9rem;
}

.entry-content th,
.entry-content td {
    padding: .6rem .85rem;
    text-align: left;
    border-bottom: 1px solid var(--whg-border);
}

.entry-content th {
    background: var(--whg-blush);
    font-weight: 600;
    color: var(--whg-dark);
}

/* ── Post meta ───────────────────────────────────────────────── */
.entry-meta {
    font-size: .82rem;
    color: var(--whg-muted);
    margin-bottom: 1.5rem;
    text-align: center;
}

.entry-meta span + span::before {
    content: "·";
    margin: 0 .5rem;
}

/* ── Blog archive ────────────────────────────────────────────── */
.post-list { list-style: none; }

.post-card {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--whg-border);
}

.post-card:last-child { border-bottom: none; }

.post-card h2 {
    font-size: 1.2rem;
    margin: 0 0 .3rem;
}

.post-card h2 a { color: var(--whg-dark); }
.post-card h2 a:hover { color: var(--whg-rose); }

.post-card .entry-meta { text-align: left; margin-bottom: .4rem; }

.post-card .post-excerpt {
    font-size: .92rem;
    color: var(--whg-body);
    max-width: 65ch;
}

/* ── Pagination ──────────────────────────────────────────────── */
.whg-pagination {
    display: flex;
    justify-content: center;
    gap: .5rem;
    padding: 2rem 0;
}

.whg-pagination a,
.whg-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 .65rem;
    font-size: .85rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid var(--whg-border);
    color: var(--whg-body);
    transition: all .15s;
}

.whg-pagination a:hover {
    background: var(--whg-blush);
    border-color: var(--whg-rose-light);
    color: var(--whg-rose);
}

.whg-pagination .current {
    background: var(--whg-rose);
    border-color: var(--whg-rose);
    color: var(--whg-white);
}

/* ── Sidebar / widget area ───────────────────────────────────── */
.widget {
    margin-bottom: 1.75rem;
}

.widget-title {
    font-family: var(--whg-font);
    font-size: .82rem;
    font-weight: 700;
    color: var(--whg-rose);
    letter-spacing: .03em;
    margin-bottom: .65rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--whg-blush-deep);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: .3rem 0;
    font-size: .9rem;
}

.widget li a { color: var(--whg-body); }
.widget li a:hover { color: var(--whg-rose); }

/* ── CTA section ─────────────────────────────────────────────── */
.whg-cta-section {
    background: linear-gradient(135deg, var(--whg-blush), var(--whg-sage));
    border-radius: var(--whg-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 2.5rem auto;
    max-width: var(--whg-max-w);
}

.whg-cta-section h2 {
    font-size: 1.35rem;
    margin-bottom: .5rem;
}

.whg-cta-section p {
    max-width: 480px;
    margin: 0 auto .85rem;
    color: var(--whg-muted);
}

.whg-cta-btn {
    display: inline-block;
    padding: .7rem 1.75rem;
    font-size: .95rem;
    font-weight: 700;
    font-family: var(--whg-font);
    color: var(--whg-white);
    background: var(--whg-rose);
    border: none;
    border-radius: var(--whg-radius-sm);
    text-decoration: none;
    transition: background .15s;
}

.whg-cta-btn:hover { background: var(--whg-rose-hover); color: var(--whg-white); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
    background: var(--whg-dark);
    color: #9ca3af;
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
    font-size: .85rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-col h4 {
    color: var(--whg-white);
    font-family: var(--whg-font);
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: .6rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .35rem; }
.footer-col a { color: #9ca3af; }
.footer-col a:hover { color: var(--whg-white); }

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 1.75rem;
    padding-top: 1rem;
    text-align: center;
    font-size: .78rem;
    color: #6b7280;
}

/* ── Ad containers ───────────────────────────────────────────── */
.whg-ad-slot {
    max-width: var(--whg-max-w);
    margin: 1.5rem auto;
    text-align: center;
}

/* ── 404 ─────────────────────────────────────────────────────── */
.whg-404 {
    text-align: center;
    padding: 4rem 1.25rem;
}

.whg-404 h1 {
    font-size: 4rem;
    color: var(--whg-rose-light);
    margin-bottom: .25rem;
}

.whg-404 p { margin: 0 auto 1.5rem; max-width: 400px; }

/* ── FAQ schema styling (from plugin CPT content) ────────────── */
.whg-faq h3 {
    font-family: var(--whg-font);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.25rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .whg-hero h1 { font-size: 1.65rem; }

    .footer-inner { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 600px) {
    .site-nav { display: none; }
    .site-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--whg-white);
        border-bottom: 1px solid var(--whg-border);
        padding: .75rem 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
    }
    .mobile-toggle { display: block; }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }

    .whg-cta-section { padding: 1.75rem 1.25rem; }
}
