/*
Theme Name: PluginHub
Theme URI: https://github.com/revolutionaryit/pluginhub-theme
Author: Revolutionary IT
Author URI: https://revolutionaryit.com
Description: A god-tier WordPress theme for selling, showcasing and supporting WordPress plugins and themes. Built around Revolutionary Blocks with eight ready-made demo packs (Plugin Marketplace, Theme Showcase, Agency, Single-Product Launch, Docs/SaaS, Blog/Changelog, Pricing-focused, Affiliate/Partner) — installable from a TechCore-style dashboard.
Version: 0.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pluginhub
Tags: blog, business, portfolio, e-commerce, one-column, two-columns, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, translation-ready

PluginHub depends on the Revolutionary Blocks plugin to render the demo pages. Install and activate it before importing demo content.
*/

/* ==========================================================================
   ROOT TOKENS
   ========================================================================== */
:root {
    --ph-primary:       #6366f1;
    --ph-primary-dark:  #4f46e5;
    --ph-primary-light: #818cf8;
    --ph-accent:        #ec4899;
    --ph-success:       #10b981;
    --ph-warning:       #f59e0b;
    --ph-danger:        #ef4444;
    --ph-dark:          #0b1020;
    --ph-dark-alt:      #131a33;
    --ph-text:          #1e293b;
    --ph-muted:         #64748b;
    --ph-border:        #e2e8f0;
    --ph-bg:            #ffffff;
    --ph-bg-alt:        #f8fafc;
    --ph-bg-soft:       #f1f5f9;
    --ph-radius:        12px;
    --ph-radius-lg:     20px;
    --ph-shadow:        0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
    --ph-shadow-lg:     0 8px 32px rgba(99,102,241,.18);
    --ph-font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ph-font-mono:     'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --ph-container:     1200px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--ph-font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ph-text);
    background: var(--ph-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ph-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--ph-primary-dark); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--ph-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--ph-border); margin: 2em 0; }
button { font-family: inherit; cursor: pointer; }

/* ==========================================================================
   LAYOUT PRIMITIVES
   ========================================================================== */
.ph-container { width: 100%; max-width: var(--ph-container); margin: 0 auto; padding: 0 24px; }
.ph-section { padding: 80px 0; }
.ph-section--tight { padding: 48px 0; }
.ph-section--alt { background: var(--ph-bg-alt); }
.ph-section--dark { background: var(--ph-dark); color: #fff; }
.ph-section--dark h1, .ph-section--dark h2, .ph-section--dark h3 { color: #fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.ph-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--ph-border);
}
.ph-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}
.ph-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ph-dark); font-size: 1.15rem; }
.ph-brand__mark { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--ph-primary), var(--ph-accent)); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.ph-nav { display: none; gap: 24px; align-items: center; }
.ph-nav a { color: var(--ph-text); font-weight: 500; }
.ph-nav a:hover { color: var(--ph-primary); }
.ph-nav .current-menu-item > a, .ph-nav .current_page_item > a { color: var(--ph-primary); }
.ph-header__cta { display: none; align-items: center; gap: 12px; }
.ph-burger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--ph-border); border-radius: 8px; background: #fff; }
.ph-burger span { display: block; width: 18px; height: 2px; background: var(--ph-dark); position: relative; }
.ph-burger span::before, .ph-burger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ph-dark); }
.ph-burger span::before { top: -6px; }
.ph-burger span::after { top: 6px; }
@media (min-width: 900px) {
    .ph-nav { display: inline-flex; }
    .ph-header__cta { display: inline-flex; }
    .ph-burger { display: none; }
}

/* Mobile nav overlay */
.ph-mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(11,16,32,.96);
    color: #fff;
    z-index: 200;
    display: none;
    flex-direction: column;
    padding: 80px 32px 32px;
}
.ph-mobile-nav.is-open { display: flex; }
.ph-mobile-nav a { color: #fff; font-size: 1.4rem; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); display: block; }
.ph-mobile-nav__close { position: absolute; top: 20px; right: 20px; background: transparent; border: 0; color: #fff; font-size: 28px; cursor: pointer; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.ph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ph-btn--primary { background: var(--ph-primary); color: #fff; box-shadow: 0 4px 14px rgba(99,102,241,.4); }
.ph-btn--primary:hover { background: var(--ph-primary-dark); color: #fff; transform: translateY(-1px); }
.ph-btn--ghost { background: transparent; color: var(--ph-text); border-color: var(--ph-border); }
.ph-btn--ghost:hover { background: var(--ph-bg-soft); }
.ph-btn--light { background: #fff; color: var(--ph-dark); }
.ph-btn--light:hover { background: var(--ph-bg-alt); }
.ph-btn--lg { padding: 16px 28px; font-size: 1rem; }

/* ==========================================================================
   PAGE TITLE BANNER (inner pages)
   ========================================================================== */
.ph-page-banner {
    padding: 64px 0 48px;
    background: linear-gradient(135deg, var(--ph-dark), var(--ph-dark-alt));
    color: #fff;
    text-align: center;
}
.ph-page-banner h1 { color: #fff; margin: 0 0 8px; }
.ph-page-banner__crumbs { color: rgba(255,255,255,.65); font-size: .9rem; }
.ph-page-banner__crumbs a { color: rgba(255,255,255,.85); }

/* ==========================================================================
   ARTICLE / CONTENT
   ========================================================================== */
.ph-article { padding: 56px 0; }
.ph-article-inner { max-width: 780px; margin: 0 auto; }
.ph-article-inner img { border-radius: var(--ph-radius); margin: 24px 0; }
.ph-article-inner pre, .ph-article-inner code { font-family: var(--ph-font-mono); font-size: .92rem; }
.ph-article-inner pre { background: var(--ph-dark); color: #e2e8f0; padding: 18px; border-radius: var(--ph-radius); overflow-x: auto; }
.ph-article-inner blockquote { border-left: 4px solid var(--ph-primary); padding: 8px 18px; margin: 24px 0; color: var(--ph-muted); font-style: italic; }
.ph-article-inner .wp-caption { max-width: 100%; }

.ph-post-card {
    background: #fff;
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ph-post-card:hover { transform: translateY(-3px); box-shadow: var(--ph-shadow); }
.ph-post-card__thumb img { width: 100%; height: 200px; object-fit: cover; }
.ph-post-card__body { padding: 20px 22px 24px; }
.ph-post-card__title { font-size: 1.1rem; margin: 0 0 8px; }
.ph-post-card__meta { font-size: .82rem; color: var(--ph-muted); margin-bottom: 8px; }
.ph-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ph-footer { background: var(--ph-dark); color: rgba(255,255,255,.7); padding: 56px 0 24px; }
.ph-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.ph-footer a { color: rgba(255,255,255,.7); }
.ph-footer a:hover { color: #fff; }
.ph-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
@media (max-width: 800px) { .ph-footer__grid { grid-template-columns: 1fr; gap: 24px; } }
.ph-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.5); }
.ph-footer ul { list-style: none; padding: 0; margin: 0; }
.ph-footer ul li { padding: 4px 0; }
.ph-socials { display: inline-flex; gap: 10px; margin-top: 14px; }
.ph-socials a { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); }
.ph-socials a:hover { background: var(--ph-primary); }

/* ==========================================================================
   COMMENTS
   ========================================================================== */
.ph-comments { padding: 40px 0; max-width: 780px; margin: 0 auto; }
.ph-comments h3 { font-size: 1.4rem; }
.ph-comments .comment { background: var(--ph-bg-alt); border: 1px solid var(--ph-border); border-radius: var(--ph-radius); padding: 18px; margin-bottom: 14px; list-style: none; }
.ph-comments ol.children { padding-left: 24px; }

/* ==========================================================================
   404
   ========================================================================== */
.ph-404 { padding: 100px 24px; text-align: center; max-width: 540px; margin: 0 auto; }
.ph-404 h1 { font-size: 6rem; margin: 0; color: var(--ph-primary); }

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.screen-reader-text { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
