/*
Theme Name: Proboards14
Theme URI: https://proboards14.com
Author: Proboards14
Author URI: https://proboards14.com
Description: Magazine francophone dedie a la culture pop, aux arts et au divertissement. Musique, BD, cinema, series et jeux video - toute l'actualite geek et culturelle.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: proboards14
Tags: blog, entertainment, magazine, custom-logo, custom-menu, featured-images, theme-options

Proboards14 - Votre dose quotidienne de culture pop.
*/

/* ============================================================
   DESIGN TOKENS - Editorial Dark Theme
   ============================================================ */
:root {
    /* Core Palette - Deep Blue & Electric */
    --pb-bg-primary: #0a0a0f;
    --pb-bg-secondary: #12121a;
    --pb-bg-tertiary: #1a1a26;
    --pb-bg-card: #16161f;
    --pb-bg-elevated: #1e1e2a;
    
    /* Accent Gradient System */
    --pb-accent-primary: #6366f1;
    --pb-accent-secondary: #8b5cf6;
    --pb-accent-tertiary: #a855f7;
    --pb-accent-highlight: #22d3ee;
    --pb-gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --pb-gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    
    /* Text Hierarchy */
    --pb-text-primary: #f1f1f4;
    --pb-text-secondary: #a1a1aa;
    --pb-text-muted: #71717a;
    --pb-text-subtle: #6b6b75;
    
    /* Semantic States */
    --pb-success: #10b981;
    --pb-error: #ef4444;
    --pb-warning: #f59e0b;
    --pb-info: #3b82f6;
    
    /* Borders & Effects */
    --pb-border: rgba(255, 255, 255, 0.06);
    --pb-border-hover: rgba(255, 255, 255, 0.12);
    --pb-border-accent: rgba(99, 102, 241, 0.3);
    --pb-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --pb-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --pb-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --pb-shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    
    /* Typography */
    --pb-font-display: 'Space Grotesk', 'SF Pro Display', system-ui, sans-serif;
    --pb-font-body: 'Inter', 'SF Pro Text', system-ui, sans-serif;
    
    /* Spacing & Layout */
    --pb-container-max: 1240px;
    --pb-container-narrow: 760px;
    --pb-radius-xs: 4px;
    --pb-radius-sm: 6px;
    --pb-radius-md: 10px;
    --pb-radius-lg: 16px;
    --pb-radius-xl: 24px;
    
    /* Transitions */
    --pb-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --pb-duration-fast: 150ms;
    --pb-duration-base: 250ms;
    --pb-duration-slow: 400ms;
}

/* ============================================================
   RESET & FOUNDATIONS
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-size: 16px;
    background: var(--pb-bg-primary);
}

body {
    font-family: var(--pb-font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--pb-text-primary);
    background: var(--pb-bg-primary);
    overflow-x: hidden;
}

::selection {
    background: var(--pb-accent-primary);
    color: #fff;
}

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

a {
    color: var(--pb-accent-primary);
    text-decoration: none;
    transition: color var(--pb-duration-fast) var(--pb-ease-out);
}

a:hover {
    color: var(--pb-accent-highlight);
}

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--pb-font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--pb-text-primary);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: clamp(2.5rem, 6vw, 4rem); 
    font-weight: 700;
    letter-spacing: -0.03em;
}
h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.375rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1.5rem;
    color: var(--pb-text-secondary);
}

p:last-child {
    margin-bottom: 0;
}

blockquote {
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--pb-bg-tertiary);
    border-left: 3px solid var(--pb-accent-primary);
    border-radius: var(--pb-radius-md);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--pb-text-secondary);
}

/* ============================================================
   LAYOUT SYSTEM
   ============================================================ */
.pb-container {
    width: 100%;
    max-width: var(--pb-container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pb-container--narrow {
    max-width: var(--pb-container-narrow);
}

.pb-section {
    padding: 6rem 0;
}

.pb-section--alt {
    background: var(--pb-bg-secondary);
}

.pb-section--gradient {
    background: var(--pb-gradient-glow);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.pb-skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 1rem 2rem;
    background: var(--pb-accent-primary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--pb-radius-md);
    box-shadow: var(--pb-shadow-lg);
    transition: top 0.2s ease;
}

.pb-skip-link:focus {
    top: 1rem;
    color: #fff;
    outline: 3px solid var(--pb-accent-highlight);
    outline-offset: 2px;
}

.screen-reader-text,
.pb-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ============================================================
   HEADER - Floating Glass Effect
   ============================================================ */
.pb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--pb-duration-base) var(--pb-ease-out);
}

.pb-header--scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--pb-border);
    padding: 0.75rem 0;
}

.pb-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.pb-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--pb-text-primary);
    transition: opacity var(--pb-duration-fast);
}

.pb-logo:hover {
    opacity: 0.85;
    color: var(--pb-text-primary);
}

.pb-logo__mark {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pb-gradient-primary);
    border-radius: var(--pb-radius-sm);
    color: #fff;
}

.pb-logo__mark svg {
    width: 24px;
    height: 24px;
}

.pb-logo__text {
    font-family: var(--pb-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Navigation */
.pb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pb-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    font-family: var(--pb-font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--pb-text-secondary);
    border-radius: var(--pb-radius-sm);
    transition: all var(--pb-duration-fast) var(--pb-ease-out);
}

.pb-nav__link:hover {
    color: var(--pb-text-primary);
    background: var(--pb-bg-tertiary);
}

.pb-nav__link--active {
    color: var(--pb-text-primary);
    background: var(--pb-bg-tertiary);
}

.pb-nav__link--active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--pb-accent-primary);
    border-radius: 1px;
}

.pb-nav__link--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Mobile Toggle */
.pb-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--pb-bg-tertiary);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.pb-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--pb-text-primary);
    transition: all var(--pb-duration-fast);
    position: absolute;
}

.pb-menu-toggle span:nth-child(1) { top: 14px; }
.pb-menu-toggle span:nth-child(2) { top: 21px; }
.pb-menu-toggle span:nth-child(3) { top: 28px; }

.pb-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.pb-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.pb-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* Mobile Menu */
.pb-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--pb-duration-base) var(--pb-ease-out);
}

.pb-mobile-menu[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.pb-mobile-menu__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.pb-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.pb-mobile-menu__link {
    display: block;
    padding: 1rem 2rem;
    font-family: var(--pb-font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pb-text-secondary);
    border-radius: var(--pb-radius-md);
    transition: all var(--pb-duration-fast);
}

.pb-mobile-menu__link:hover {
    color: var(--pb-text-primary);
    background: var(--pb-bg-tertiary);
}

/* ============================================================
   HERO - Magazine Cover Style
   ============================================================ */
.pb-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
    overflow: hidden;
}

.pb-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.pb-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pb-hero__content {
    position: relative;
    z-index: 2;
}

.pb-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--pb-bg-tertiary);
    border: 1px solid var(--pb-border);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--pb-text-secondary);
    margin-bottom: 1.5rem;
}

.pb-hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--pb-accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pb-hero__title {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--pb-text-primary) 0%, var(--pb-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pb-hero__title span {
    display: block;
    background: var(--pb-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pb-hero__description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--pb-text-secondary);
    margin-bottom: 2rem;
    max-width: 520px;
}

.pb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero Visual */
.pb-hero__visual {
    position: relative;
}

.pb-hero__image-wrapper {
    position: relative;
    border-radius: var(--pb-radius-xl);
    overflow: hidden;
    box-shadow: var(--pb-shadow-lg), var(--pb-shadow-glow);
}

.pb-hero__image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 15, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

.pb-hero__image-wrapper img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.pb-hero__image-label {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 2;
}

.pb-hero__image-label span {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--pb-accent-primary);
    border-radius: var(--pb-radius-xs);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.pb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--pb-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--pb-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--pb-duration-fast) var(--pb-ease-out);
}

.pb-btn--primary {
    background: var(--pb-gradient-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.pb-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    color: #fff;
}

.pb-btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.pb-btn--primary:focus-visible {
    outline: 2px solid var(--pb-accent-highlight);
    outline-offset: 2px;
}

.pb-btn--secondary {
    background: var(--pb-bg-tertiary);
    color: var(--pb-text-primary);
    border: 1px solid var(--pb-border);
}

.pb-btn--secondary:hover {
    background: var(--pb-bg-elevated);
    border-color: var(--pb-border-hover);
    color: var(--pb-text-primary);
}

.pb-btn--secondary:active {
    background: var(--pb-bg-tertiary);
}

.pb-btn--secondary:focus-visible {
    outline: 2px solid var(--pb-accent-primary);
    outline-offset: 2px;
}

.pb-btn--ghost {
    background: transparent;
    color: var(--pb-text-secondary);
    padding: 0.5rem 0;
}

.pb-btn--ghost:hover {
    color: var(--pb-accent-primary);
}

.pb-btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--pb-duration-fast);
}

.pb-btn:hover svg {
    transform: translateX(3px);
}

.pb-btn__text {
    /* Text content inside button - inherits parent styling */
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.pb-section-header {
    margin-bottom: 3rem;
}

.pb-section-header--center {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.pb-section-header__label {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--pb-bg-tertiary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pb-accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.pb-section-header__title {
    margin-bottom: 0.75rem;
}

.pb-section-header__description {
    color: var(--pb-text-muted);
    font-size: 1.0625rem;
}

/* ============================================================
   CATEGORY CARDS - Horizontal Scroll
   ============================================================ */
.pb-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.pb-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    padding: 1.5rem;
    border-radius: var(--pb-radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--pb-duration-base) var(--pb-ease-out);
}

.pb-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 15, 0.95) 100%);
    z-index: 1;
    transition: background var(--pb-duration-base);
}

.pb-category-card:hover::before {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(10, 10, 15, 0.98) 100%);
}

.pb-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pb-shadow-lg), var(--pb-shadow-glow);
}

.pb-category-card__image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.pb-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--pb-duration-slow) var(--pb-ease-out);
}

.pb-category-card:hover .pb-category-card__image img {
    transform: scale(1.05);
}

.pb-category-card__content {
    position: relative;
    z-index: 2;
}

.pb-category-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pb-text-primary);
    margin-bottom: 0.375rem;
}

.pb-category-card__count {
    font-size: 0.8125rem;
    color: var(--pb-text-muted);
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.pb-grid {
    display: grid;
    gap: 1.5rem;
}

.pb-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pb-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pb-grid--4 { grid-template-columns: repeat(4, 1fr); }

.pb-card {
    display: flex;
    flex-direction: column;
    background: var(--pb-bg-card);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-lg);
    overflow: hidden;
    transition: all var(--pb-duration-base) var(--pb-ease-out);
}

.pb-card:hover {
    border-color: var(--pb-border-hover);
    box-shadow: var(--pb-shadow-md);
    transform: translateY(-2px);
}

.pb-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.pb-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--pb-duration-slow) var(--pb-ease-out);
}

.pb-card:hover .pb-card__image img {
    transform: scale(1.03);
}

.pb-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.pb-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--pb-text-muted);
    margin-bottom: 0.75rem;
}

.pb-card__category {
    color: var(--pb-accent-primary);
    font-weight: 500;
}

.pb-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.625rem;
}

.pb-card__title a {
    color: var(--pb-text-primary);
    transition: color var(--pb-duration-fast);
}

.pb-card__title a:hover {
    color: var(--pb-accent-primary);
}

.pb-card__excerpt {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--pb-text-muted);
    line-height: 1.6;
}

/* Featured Card - Large */
.pb-card--featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 400px;
}

.pb-card--featured .pb-card__image {
    aspect-ratio: auto;
}

.pb-card--featured .pb-card__content {
    padding: 2rem;
    justify-content: center;
}

.pb-card--featured .pb-card__title {
    font-size: 1.5rem;
}

.pb-card--featured .pb-card__excerpt {
    font-size: 1rem;
}

/* ============================================================
   QUOTE BLOCK
   ============================================================ */
.pb-quote {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--pb-bg-tertiary);
    border-radius: var(--pb-radius-xl);
    overflow: hidden;
}

.pb-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--pb-gradient-primary);
    border-radius: 2px;
}

.pb-quote__icon {
    color: var(--pb-accent-primary);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.pb-quote__text {
    font-family: var(--pb-font-display);
    font-size: clamp(1.25rem, 3vw, 1.625rem);
    font-weight: 500;
    font-style: normal;
    line-height: 1.5;
    color: var(--pb-text-primary);
    max-width: 720px;
    margin: 0 auto 1.5rem;
}

.pb-quote__author {
    font-size: 0.9375rem;
    color: var(--pb-text-muted);
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.pb-newsletter {
    position: relative;
    padding: 3rem;
    background: var(--pb-bg-tertiary);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-xl);
    text-align: center;
    overflow: hidden;
}

.pb-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.pb-newsletter__title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.pb-newsletter__description {
    color: var(--pb-text-muted);
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.pb-newsletter__form {
    display: flex;
    gap: 0.75rem;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
}

.pb-newsletter__input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--pb-bg-primary);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-md);
    font-family: var(--pb-font-body);
    font-size: 0.9375rem;
    color: var(--pb-text-primary);
    transition: all var(--pb-duration-fast);
}

.pb-newsletter__input::placeholder {
    color: var(--pb-text-muted);
}

.pb-newsletter__input:focus {
    outline: none;
    border-color: var(--pb-accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.pb-newsletter__input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pb-newsletter__form .pb-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pb-newsletter__note {
    font-size: 0.8125rem;
    color: var(--pb-text-subtle);
    margin-top: 1rem;
    position: relative;
}

.pb-newsletter__message {
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--pb-radius-sm);
    animation: fadeIn 0.3s var(--pb-ease-out);
}

.pb-newsletter__message--success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--pb-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pb-newsletter__message--error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--pb-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.pb-footer {
    background: var(--pb-bg-secondary);
    border-top: 1px solid var(--pb-border);
    padding: 5rem 0 2rem;
}

.pb-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.pb-footer__brand {
    max-width: 280px;
}

.pb-footer__brand .pb-logo {
    margin-bottom: 1.25rem;
}

.pb-footer__description {
    font-size: 0.9375rem;
    color: var(--pb-text-muted);
    line-height: 1.7;
}

.pb-footer__heading {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pb-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.pb-footer__links {
    list-style: none;
}

.pb-footer__links li {
    margin-bottom: 0.75rem;
}

.pb-footer__links a {
    font-size: 0.9375rem;
    color: var(--pb-text-muted);
    transition: color var(--pb-duration-fast);
}

.pb-footer__links a:hover {
    color: var(--pb-text-primary);
}

.pb-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--pb-border);
}

.pb-footer__copy {
    font-size: 0.875rem;
    color: var(--pb-text-muted);
}

.pb-footer__legal {
    display: flex;
    gap: 1.5rem;
}

.pb-footer__legal a {
    font-size: 0.875rem;
    color: var(--pb-text-muted);
}

.pb-footer__legal a:hover {
    color: var(--pb-text-primary);
}

.pb-footer__col {
    /* Column styling handled by grid parent */
}

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.pb-article {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.pb-article__header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.pb-article__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--pb-text-muted);
    margin-bottom: 1.5rem;
}

.pb-article__category {
    padding: 0.375rem 0.875rem;
    background: var(--pb-accent-primary);
    border-radius: 100px;
    font-weight: 500;
    color: #fff;
}

.pb-article__title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.pb-article__excerpt {
    font-size: 1.25rem;
    color: var(--pb-text-secondary);
    line-height: 1.65;
}

.pb-article__hero {
    margin-bottom: 3rem;
    border-radius: var(--pb-radius-xl);
    overflow: hidden;
    box-shadow: var(--pb-shadow-lg);
}

.pb-article__hero img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

.pb-article__content {
    max-width: var(--pb-container-narrow);
    margin: 0 auto;
}

.pb-article__content p {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--pb-text-secondary);
    margin-bottom: 1.75rem;
}

.pb-article__content h2 {
    margin: 3rem 0 1.25rem;
    padding-top: 1rem;
}

.pb-article__content h3 {
    margin: 2.5rem 0 1rem;
}

.pb-article__content ul,
.pb-article__content ol {
    margin: 0 0 1.75rem 1.5rem;
    color: var(--pb-text-secondary);
}

.pb-article__content li {
    margin-bottom: 0.625rem;
    line-height: 1.75;
}

.pb-article__content a {
    color: var(--pb-accent-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pb-article__content a:hover {
    color: var(--pb-accent-highlight);
}

.pb-article__content strong {
    font-weight: 600;
    color: var(--pb-text-primary);
}

.pb-article__content em {
    font-style: italic;
}

.pb-article__content code {
    padding: 0.2em 0.4em;
    background: var(--pb-bg-tertiary);
    border-radius: var(--pb-radius-xs);
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.875em;
    color: var(--pb-accent-highlight);
}

.pb-article__content pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--pb-bg-tertiary);
    border-radius: var(--pb-radius-md);
    overflow-x: auto;
}

.pb-article__content pre code {
    padding: 0;
    background: none;
}

.pb-article__content img {
    border-radius: var(--pb-radius-md);
    margin: 2rem 0;
}

/* Article Footer & Tags */
.pb-article__footer {
    max-width: var(--pb-container-narrow);
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--pb-border);
}

.pb-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.pb-article__tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--pb-bg-tertiary);
    border: 1px solid var(--pb-border);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--pb-text-secondary);
    transition: all var(--pb-duration-fast) var(--pb-ease-out);
}

.pb-article__tag:hover {
    background: var(--pb-bg-elevated);
    border-color: var(--pb-border-accent);
    color: var(--pb-accent-primary);
}

/* ============================================================
   ARCHIVE / CATEGORY
   ============================================================ */
.pb-archive {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.pb-archive__header {
    text-align: center;
    margin-bottom: 4rem;
}

.pb-archive__title {
    font-size: clamp(2rem, 5vw, 2.75rem);
}

.pb-archive__description {
    font-size: 1.0625rem;
    color: var(--pb-text-muted);
    max-width: 560px;
    margin: 1rem auto 0;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.pb-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.pb-404__code {
    font-family: var(--pb-font-display);
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 700;
    background: var(--pb-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.pb-404__title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.pb-404__description {
    color: var(--pb-text-muted);
    margin-bottom: 2rem;
    max-width: 400px;
}

/* ============================================================
   SEARCH
   ============================================================ */
.pb-search-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
}

.pb-search-form__input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--pb-bg-tertiary);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-md);
    font-family: var(--pb-font-body);
    font-size: 0.9375rem;
    color: var(--pb-text-primary);
}

.pb-search-form__input:focus {
    outline: none;
    border-color: var(--pb-accent-primary);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pb-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.pb-pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--pb-text-secondary);
    background: var(--pb-bg-tertiary);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-md);
    transition: all var(--pb-duration-fast);
}

.pb-pagination__link:hover {
    border-color: var(--pb-accent-primary);
    color: var(--pb-accent-primary);
}

.pb-pagination__link--current {
    background: var(--pb-accent-primary);
    border-color: var(--pb-accent-primary);
    color: #fff;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.pb-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--pb-text-muted);
    margin-bottom: 1.5rem;
}

.pb-breadcrumbs a {
    color: var(--pb-text-muted);
}

.pb-breadcrumbs a:hover {
    color: var(--pb-accent-primary);
}

.pb-breadcrumbs__separator {
    color: var(--pb-text-subtle);
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.pb-page {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.pb-page__header {
    max-width: var(--pb-container-narrow);
    margin: 0 auto 3rem;
    text-align: center;
}

.pb-page__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.pb-page__content {
    max-width: var(--pb-container-narrow);
    margin: 0 auto;
}

.pb-page__content p {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--pb-text-secondary);
}

.pb-page__content h2 {
    margin: 2.5rem 0 1rem;
}

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.pb-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--pb-bg-elevated);
    border: 1px solid var(--pb-border);
    border-radius: 50%;
    color: var(--pb-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--pb-duration-base) var(--pb-ease-out);
    z-index: 100;
    box-shadow: var(--pb-shadow-md);
}

.pb-scroll-top:not([hidden]) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pb-scroll-top:hover {
    background: var(--pb-accent-primary);
    border-color: var(--pb-accent-primary);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--pb-shadow-lg), var(--pb-shadow-glow);
}

.pb-scroll-top:active {
    transform: translateY(-2px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.pb-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--pb-ease-out), transform 0.6s var(--pb-ease-out);
}

.pb-fade-in.pb-visible {
    opacity: 1;
    transform: translateY(0);
}

.pb-grid .pb-fade-in:nth-child(1) { transition-delay: 0s; }
.pb-grid .pb-fade-in:nth-child(2) { transition-delay: 0.08s; }
.pb-grid .pb-fade-in:nth-child(3) { transition-delay: 0.12s; }
.pb-grid .pb-fade-in:nth-child(4) { transition-delay: 0.16s; }
.pb-grid .pb-fade-in:nth-child(5) { transition-delay: 0.2s; }
.pb-grid .pb-fade-in:nth-child(6) { transition-delay: 0.24s; }

/* Image loaded state */
img {
    opacity: 1;
    transition: opacity 0.3s var(--pb-ease-out);
}

img.pb-loaded {
    opacity: 1;
}

/* ============================================================
   FOCUS STATES
   ============================================================ */
*:focus-visible {
    outline: 2px solid var(--pb-accent-primary);
    outline-offset: 2px;
}

/* Keyboard navigation mode - enhanced focus visibility */
.pb-keyboard-nav *:focus {
    outline: 2px solid var(--pb-accent-primary);
    outline-offset: 3px;
}

.pb-keyboard-nav a:focus,
.pb-keyboard-nav button:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.pb-text-center { text-align: center; }
.pb-text-gradient {
    background: var(--pb-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pb-mt-0 { margin-top: 0; }
.pb-mb-0 { margin-bottom: 0; }
.pb-mt-4 { margin-top: 2rem; }
.pb-mb-4 { margin-bottom: 2rem; }

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
    .pb-hero__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .pb-hero__visual {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .pb-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pb-grid--3,
    .pb-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pb-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pb-card--featured {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pb-section {
        padding: 4rem 0;
    }
    
    .pb-nav {
        display: none;
    }
    
    .pb-menu-toggle {
        display: flex;
    }
    
    .pb-hero {
        min-height: auto;
        padding: 7rem 0 4rem;
    }
    
    .pb-hero__actions {
        flex-direction: column;
    }
    
    .pb-categories {
        grid-template-columns: 1fr;
    }
    
    .pb-category-card {
        min-height: 200px;
    }
    
    .pb-grid--2,
    .pb-grid--3,
    .pb-grid--4 {
        grid-template-columns: 1fr;
    }
    
    .pb-card--featured {
        grid-column: span 1;
    }
    
    .pb-newsletter__form {
        flex-direction: column;
    }
    
    .pb-footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .pb-footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .pb-container {
        padding: 0 1rem;
    }
    
    .pb-header__inner {
        gap: 1rem;
    }
    
    .pb-logo__text {
        font-size: 1.125rem;
    }
    
    .pb-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pb-404__code {
        font-size: 5rem;
    }
    
    .pb-scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .pb-header,
    .pb-footer,
    .pb-mobile-menu,
    .pb-newsletter,
    .pb-btn,
    .pb-pagination,
    .pb-scroll-top,
    .pb-skip-link {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }
    
    .pb-article {
        padding-top: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .pb-fade-in {
        opacity: 1;
        transform: none;
    }
}
