/* ==========================================================================
   PF GUIDES LANDING — PREMIUM FINTECH EDITION
   Path: pf-theme/guides-landing.css
   
   A stunning dark theme with dramatic glows, glassmorphism, 3D transforms,
   particle effects, and sophisticated animations for guides listing pages
   ========================================================================== */

/* ==========================================================================
   FONTS & BASE VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Sora:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@500;600;700&display=swap');

.pf-guides {
    /* Core palette */
    --pf-bg-dark: #030712;
    --pf-bg-deeper: #010409;
    --pf-bg-panel: rgba(15, 23, 42, 0.65);
    --pf-bg-panel-solid: #0a1628;
    --pf-bg-glass: rgba(255, 255, 255, 0.03);
    --pf-bg-glass-hover: rgba(255, 255, 255, 0.06);
    
    /* Borders */
    --pf-border-light: rgba(148, 163, 184, 0.12);
    --pf-border-glow: rgba(56, 189, 248, 0.4);
    --pf-border-gold: rgba(251, 191, 36, 0.3);
    
    /* Primary brand colors */
    --pf-primary: #38bdf8;
    --pf-primary-dark: #0ea5e9;
    --pf-primary-light: #7dd3fc;
    --pf-primary-glow: rgba(56, 189, 248, 0.5);
    --pf-primary-subtle: rgba(56, 189, 248, 0.1);
    
    /* Accent colors */
    --pf-accent-gold: #fbbf24;
    --pf-accent-gold-glow: rgba(251, 191, 36, 0.4);
    --pf-accent-emerald: #34d399;
    --pf-accent-emerald-glow: rgba(52, 211, 153, 0.4);
    --pf-accent-violet: #a78bfa;
    --pf-accent-violet-glow: rgba(167, 139, 250, 0.4);
    --pf-accent-rose: #fb7185;
    --pf-accent-rose-glow: rgba(251, 113, 133, 0.3);
    
    /* Text colors */
    --pf-text-main: #f8fafc;
    --pf-text-secondary: #e2e8f0;
    --pf-text-muted: #94a3b8;
    --pf-text-dim: #64748b;
    
    /* Typography */
    --pf-font-head: 'Sora', 'Space Grotesk', system-ui, sans-serif;
    --pf-font-body: 'Outfit', system-ui, sans-serif;
    --pf-font-mono: 'DM Mono', monospace;
    
    /* Spacing */
    --pf-space-xs: 4px;
    --pf-space-sm: 8px;
    --pf-space-md: 16px;
    --pf-space-lg: 24px;
    --pf-space-xl: 32px;
    --pf-space-2xl: 48px;
    --pf-space-3xl: 64px;
    
    /* Border radius */
    --pf-radius-sm: 8px;
    --pf-radius-md: 12px;
    --pf-radius-lg: 20px;
    --pf-radius-xl: 28px;
    --pf-radius-full: 9999px;
    
    /* Shadows */
    --pf-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --pf-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --pf-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --pf-shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    --pf-shadow-glow: 0 0 40px var(--pf-primary-glow);
    
    /* Transitions */
    --pf-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --pf-transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pf-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --pf-transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   BASE RESET & CONTAINER
   ========================================================================== */
.pf-guides {
    position: relative;
    min-height: 100vh;
    padding: var(--pf-space-lg) 0 var(--pf-space-3xl);
    background: var(--pf-bg-dark);
    color: var(--pf-text-main);
    font-family: var(--pf-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* ==========================================================================
   ANIMATED BACKGROUND — MULTI-LAYER
   ========================================================================== */

/* Layer 1: Large gradient orbs */
.pf-guides::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 120% 80% at 20% 10%, rgba(56, 189, 248, 0.1), transparent 50%),
        radial-gradient(ellipse 100% 70% at 80% 90%, rgba(167, 139, 250, 0.08), transparent 45%),
        radial-gradient(ellipse 80% 60% at 90% 20%, rgba(251, 191, 36, 0.06), transparent 40%),
        radial-gradient(ellipse 70% 50% at 5% 80%, rgba(52, 211, 153, 0.05), transparent 35%);
    pointer-events: none;
    z-index: 0;
    animation: pfGuidesBgPulse 25s ease-in-out infinite alternate;
}

@keyframes pfGuidesBgPulse {
    0% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; transform: scale(1.15) rotate(2deg); }
}

/* Layer 2: Noise texture */
.pf-guides::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 1;
}

/* Layer 3: Floating particles (via pseudo on wrap) */
.pf-guides-wrap::before {
    content: '';
    position: fixed;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--pf-primary-glow) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.2;
    pointer-events: none;
    animation: pfFloatOrb1 20s ease-in-out infinite;
    z-index: 0;
}

.pf-guides-wrap::after {
    content: '';
    position: fixed;
    bottom: 10%;
    right: 15%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--pf-accent-violet-glow) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    animation: pfFloatOrb2 25s ease-in-out infinite;
    z-index: 0;
}

@keyframes pfFloatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(20px, 40px) scale(0.9); }
    75% { transform: translate(-30px, 20px) scale(1.05); }
}

@keyframes pfFloatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.15); }
    66% { transform: translate(30px, -20px) scale(0.95); }
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */
.pf-guides-wrap {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--pf-space-lg);
}

/* ==========================================================================
   HERO SECTION — PREMIUM GLASS PANEL
   ========================================================================== */
.pf-guides-hero {
    position: relative;
    margin-bottom: var(--pf-space-xl);
    padding: var(--pf-space-2xl) var(--pf-space-2xl);
    border-radius: var(--pf-radius-xl);
    overflow: hidden;
    
    /* Multi-layer glass effect */
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(10, 20, 35, 0.85) 50%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    
    border: 1px solid var(--pf-border-light);
    box-shadow: 
        var(--pf-shadow-xl),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
    
    animation: pfHeroEnter 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pfHeroEnter {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hero decorative gradient orbs */
.pf-guides-hero::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--pf-primary-glow) 0%, transparent 65%);
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    animation: pfHeroOrb1 18s ease-in-out infinite;
}

.pf-guides-hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -150px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--pf-accent-violet-glow) 0%, transparent 65%);
    filter: blur(100px);
    opacity: 0.25;
    pointer-events: none;
    animation: pfHeroOrb2 22s ease-in-out infinite reverse;
}

@keyframes pfHeroOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
    33% { transform: translate(40px, -30px) scale(1.1); opacity: 0.4; }
    66% { transform: translate(-20px, 20px) scale(0.95); opacity: 0.3; }
}

@keyframes pfHeroOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.25; }
    50% { transform: translate(-50px, 30px) scale(1.15); opacity: 0.3; }
}

/* Hero grid layout */
.pf-guides-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: var(--pf-space-2xl);
    align-items: center;
}

/* ==========================================================================
   HERO TEXT CONTENT
   ========================================================================== */

/* Kicker / eyebrow */
.pf-guides-kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--pf-space-sm);
    margin-bottom: var(--pf-space-md);
    font-family: var(--pf-font-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pf-primary-light);
    animation: pfFadeSlideUp 0.6s ease-out 0.15s both;
}

/* Animated dot */
.pf-guides-kicker::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pf-primary);
    box-shadow: 
        0 0 12px var(--pf-primary-glow), 
        0 0 24px var(--pf-primary-glow),
        0 0 36px var(--pf-primary-glow);
    animation: pfDotPulse 2s ease-in-out infinite;
}

@keyframes pfDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 12px var(--pf-primary-glow), 0 0 24px var(--pf-primary-glow); }
    50% { transform: scale(1.3); opacity: 0.7; box-shadow: 0 0 20px var(--pf-primary-glow), 0 0 40px var(--pf-primary-glow); }
}

/* Hero title — animated gradient */
.pf-guides-title {
    position: relative;
    margin: 0 0 var(--pf-space-md);
    font-family: var(--pf-font-head);
    font-size: clamp(2.2rem, 5.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    
    /* Animated gradient text */
    background: linear-gradient(
        135deg, 
        #ffffff 0%, 
        var(--pf-primary-light) 35%, 
        #ffffff 50%,
        var(--pf-accent-gold) 75%,
        #ffffff 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    animation: 
        pfFadeSlideUp 0.7s ease-out 0.25s both, 
        pfGradientFlow 10s ease infinite;
}

@keyframes pfGradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pfFadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero subtitle */
.pf-guides-sub {
    max-width: 560px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--pf-text-muted);
    animation: pfFadeSlideUp 0.7s ease-out 0.35s both;
}

/* Back link */
.pf-guides-back {
    margin-top: var(--pf-space-lg);
    animation: pfFadeSlideUp 0.6s ease-out 0.45s both;
}

.pf-guides-back a {
    display: inline-flex;
    align-items: center;
    gap: var(--pf-space-sm);
    padding: 10px 18px;
    border-radius: var(--pf-radius-full);
    background: var(--pf-bg-glass);
    border: 1px solid var(--pf-border-light);
    color: var(--pf-text-muted);
    font-family: var(--pf-font-head);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--pf-transition-base);
}

.pf-guides-back a:hover {
    background: var(--pf-primary-subtle);
    border-color: var(--pf-primary);
    color: var(--pf-text-main);
    transform: translateX(-6px);
    box-shadow: 0 0 20px var(--pf-primary-subtle);
}

/* ==========================================================================
   HERO INFO CARD — FLOATING GLASS
   ========================================================================== */
.pf-guides-hero-card {
    position: relative;
    padding: var(--pf-space-lg) var(--pf-space-xl);
    border-radius: var(--pf-radius-lg);
    overflow: hidden;
    
    /* Premium glass effect */
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    
    animation: pfFadeSlideUp 0.7s ease-out 0.5s both;
}

/* Animated border glow on hover */
.pf-guides-hero-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(
        135deg, 
        var(--pf-primary), 
        var(--pf-accent-violet), 
        var(--pf-accent-gold), 
        var(--pf-accent-emerald),
        var(--pf-primary)
    );
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -2;
    opacity: 0;
    transition: opacity var(--pf-transition-base);
    animation: pfGradientBorder 8s ease infinite;
}

@keyframes pfGradientBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Inner background */
.pf-guides-hero-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(145deg, rgba(10, 20, 35, 0.97), rgba(5, 12, 25, 0.98));
    border-radius: calc(var(--pf-radius-lg) - 1px);
    z-index: -1;
}

.pf-guides-hero-card:hover::before {
    opacity: 0.6;
}

/* Card header */
.pf-guides-hero-card b {
    display: flex;
    align-items: center;
    gap: var(--pf-space-sm);
    margin-bottom: var(--pf-space-md);
    font-family: var(--pf-font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.pf-guides-hero-card b::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--pf-primary), var(--pf-accent-violet));
    border-radius: 2px;
    box-shadow: 0 0 12px var(--pf-primary-glow);
}

/* Card list */
.pf-guides-hero-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pf-guides-hero-card li {
    position: relative;
    padding: var(--pf-space-sm) 0 var(--pf-space-sm) var(--pf-space-xl);
    color: var(--pf-text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all var(--pf-transition-fast);
}

.pf-guides-hero-card li:last-child {
    border-bottom: none;
}

.pf-guides-hero-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--pf-primary);
    font-weight: 700;
    opacity: 0.5;
    transition: all var(--pf-transition-fast);
}

.pf-guides-hero-card li:hover {
    color: var(--pf-text-main);
    padding-left: calc(var(--pf-space-xl) + 4px);
}

.pf-guides-hero-card li:hover::before {
    opacity: 1;
    transform: translateX(2px);
}

/* ==========================================================================
   CARDS GRID
   ========================================================================== */
.pf-guides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--pf-space-lg);
    perspective: 1200px;
}

/* List view for group pages */
.pf-guides-grid--list {
    grid-template-columns: 1fr;
    gap: var(--pf-space-md);
}

/* ==========================================================================
   CATEGORY CARDS — PREMIUM 3D HOVER
   ========================================================================== */
.pf-guides-card {
    position: relative;
    display: block;
    padding: var(--pf-space-xl) var(--pf-space-xl);
    border-radius: var(--pf-radius-xl);
    text-decoration: none;
    color: var(--pf-text-main);
    overflow: hidden;
    
    /* Glass background */
    background: 
        linear-gradient(160deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 18, 32, 0.9) 100%);
    border: 1px solid var(--pf-border-light);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    /* 3D setup */
    transform-style: preserve-3d;
    transform: translateZ(0);
    
    transition: 
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color var(--pf-transition-base),
        box-shadow var(--pf-transition-slow);
    
    /* Staggered entrance */
    animation: pfCardEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--card-i, 0) * 0.1s + 0.3s);
}

/* Animation delay indices */
.pf-guides-card:nth-child(1) { --card-i: 1; }
.pf-guides-card:nth-child(2) { --card-i: 2; }
.pf-guides-card:nth-child(3) { --card-i: 3; }
.pf-guides-card:nth-child(4) { --card-i: 4; }
.pf-guides-card:nth-child(5) { --card-i: 5; }
.pf-guides-card:nth-child(6) { --card-i: 6; }
.pf-guides-card:nth-child(7) { --card-i: 7; }
.pf-guides-card:nth-child(8) { --card-i: 8; }
.pf-guides-card:nth-child(9) { --card-i: 9; }
.pf-guides-card:nth-child(10) { --card-i: 10; }
.pf-guides-card:nth-child(11) { --card-i: 11; }
.pf-guides-card:nth-child(12) { --card-i: 12; }

@keyframes pfCardEnter {
    from {
        opacity: 0;
        transform: translateY(40px) rotateX(15deg) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
    }
}

/* Gradient overlay — color varies by position */
.pf-guides-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: radial-gradient(ellipse 100% 140% at 20% 0%, rgba(56, 189, 248, 0.15), transparent 60%);
    opacity: 0.7;
    transition: opacity var(--pf-transition-base);
    pointer-events: none;
}

/* Top accent bar — hidden initially */
.pf-guides-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pf-primary), var(--pf-accent-violet), var(--pf-accent-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Card hover state */
.pf-guides-card:hover {
    border-color: var(--pf-border-glow);
    transform: translateY(-10px) scale(1.02) rotateX(2deg);
    box-shadow: 
        var(--pf-shadow-xl),
        0 0 80px rgba(56, 189, 248, 0.12),
        0 0 0 1px rgba(56, 189, 248, 0.1) inset;
}

.pf-guides-card:hover::before {
    opacity: 1;
}

.pf-guides-card:hover::after {
    transform: scaleX(1);
}

/* Focus state */
.pf-guides-card:focus-visible {
    outline: none;
    border-color: var(--pf-primary);
    box-shadow: 
        var(--pf-shadow-lg),
        0 0 0 4px var(--pf-primary-subtle);
}

/* Card color variations */
.pf-guides-card:nth-child(2n)::before {
    background: radial-gradient(ellipse 100% 140% at 80% 0%, rgba(167, 139, 250, 0.15), transparent 60%);
}

.pf-guides-card:nth-child(3n)::before {
    background: radial-gradient(ellipse 100% 140% at 50% 0%, rgba(251, 191, 36, 0.12), transparent 60%);
}

.pf-guides-card:nth-child(4n)::before {
    background: radial-gradient(ellipse 100% 140% at 30% 0%, rgba(52, 211, 153, 0.12), transparent 60%);
}

.pf-guides-card:nth-child(5n)::before {
    background: radial-gradient(ellipse 100% 140% at 70% 0%, rgba(251, 113, 133, 0.1), transparent 60%);
}

/* ==========================================================================
   CARD CONTENT
   ========================================================================== */
.pf-guides-card-title {
    position: relative;
    margin: 0 0 var(--pf-space-sm);
    padding-right: 60px; /* Space for arrow */
    font-family: var(--pf-font-head);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    transition: color var(--pf-transition-fast);
}

.pf-guides-card:hover .pf-guides-card-title {
    color: var(--pf-primary-light);
}

.pf-guides-card-desc {
    position: relative;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--pf-text-muted);
    transition: color var(--pf-transition-fast);
}

.pf-guides-card:hover .pf-guides-card-desc {
    color: var(--pf-text-secondary);
}

/* ==========================================================================
   TAGS / META — PILL BADGES
   ========================================================================== */
.pf-guides-meta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: var(--pf-space-sm);
    margin-top: var(--pf-space-lg);
}

.pf-guides-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--pf-radius-full);
    font-family: var(--pf-font-head);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--pf-text-muted);
    
    transition: all var(--pf-transition-fast);
}

/* Small dot before tag */
.pf-guides-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
}

.pf-guides-card:hover .pf-guides-tag {
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(56, 189, 248, 0.06);
    color: var(--pf-text-secondary);
}

/* Count badge — glowing special style */
.pf-guides-tag--count {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(56, 189, 248, 0.08));
    border-color: rgba(56, 189, 248, 0.35);
    color: var(--pf-primary-light);
    font-weight: 700;
    box-shadow: 
        0 0 15px rgba(56, 189, 248, 0.15),
        0 0 0 1px rgba(56, 189, 248, 0.1) inset;
}

.pf-guides-tag--count::before {
    background: var(--pf-primary);
    opacity: 1;
    box-shadow: 0 0 8px var(--pf-primary-glow);
}

.pf-guides-card:hover .pf-guides-tag--count {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(56, 189, 248, 0.15));
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 
        0 0 30px rgba(56, 189, 248, 0.2),
        0 0 0 1px rgba(56, 189, 248, 0.15) inset;
}

/* ==========================================================================
   ARROW BUTTON — ANIMATED ICON
   ========================================================================== */
.pf-guides-go {
    position: absolute;
    top: var(--pf-space-xl);
    right: var(--pf-space-xl);
    width: 48px;
    height: 48px;
    border-radius: var(--pf-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    font-size: 1.2rem;
    color: var(--pf-text-dim);
    
    transition: all var(--pf-transition-base);
    z-index: 2;
}

.pf-guides-go span {
    display: block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pf-guides-card:hover .pf-guides-go {
    background: var(--pf-primary);
    border-color: var(--pf-primary);
    color: var(--pf-bg-dark);
    box-shadow: 
        0 0 30px var(--pf-primary-glow),
        0 8px 20px rgba(56, 189, 248, 0.3);
    transform: rotate(-45deg);
}

.pf-guides-card:hover .pf-guides-go span {
    transform: translate(2px, -2px);
}

/* ==========================================================================
   LIST VIEW CARDS (Group pages)
   ========================================================================== */
.pf-guides-card--wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pf-space-lg);
    padding: var(--pf-space-lg) var(--pf-space-xl);
}

.pf-guides-card--wide .pf-guides-card-title {
    padding-right: 0;
    font-size: 1.15rem;
    margin-bottom: var(--pf-space-xs);
}

.pf-guides-card--wide .pf-guides-card-desc {
    font-size: 0.88rem;
}

.pf-guides-card--wide .pf-guides-meta {
    margin-top: var(--pf-space-sm);
}

.pf-guides-go--right {
    position: static;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

/* List card hover — horizontal slide */
.pf-guides-card--wide:hover {
    transform: translateY(-6px) translateX(6px) scale(1.01);
}

.pf-guides-card--wide:hover .pf-guides-go--right {
    transform: rotate(-45deg) scale(1.05);
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.pf-msg {
    padding: var(--pf-space-2xl) var(--pf-space-xl);
    border-radius: var(--pf-radius-xl);
    border: 1px dashed var(--pf-border-light);
    background: rgba(56, 189, 248, 0.03);
    text-align: center;
    color: var(--pf-text-muted);
    font-size: 1rem;
}

.pf-msg::before {
    content: '📁';
    display: block;
    font-size: 2.5rem;
    margin-bottom: var(--pf-space-md);
    opacity: 0.5;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
    .pf-guides-hero-inner {
        grid-template-columns: 1fr;
        gap: var(--pf-space-xl);
    }
    
    .pf-guides-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 900px) {
    .pf-guides-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pf-guides {
        padding: var(--pf-space-md) 0 var(--pf-space-2xl);
    }
    
    .pf-guides-wrap {
        padding: 0 var(--pf-space-md);
    }
    
    .pf-guides-hero {
        padding: var(--pf-space-xl);
        margin-bottom: var(--pf-space-lg);
    }
    
    .pf-guides-title {
        font-size: 2rem;
    }
    
    .pf-guides-sub {
        font-size: 0.98rem;
    }
    
    .pf-guides-hero-card {
        padding: var(--pf-space-lg);
    }
    
    .pf-guides-card {
        padding: var(--pf-space-lg);
    }
    
    .pf-guides-card-title {
        font-size: 1.2rem;
        padding-right: 50px;
    }
    
    .pf-guides-card-desc {
        font-size: 0.9rem;
    }
    
    .pf-guides-go {
        width: 40px;
        height: 40px;
        top: var(--pf-space-lg);
        right: var(--pf-space-lg);
    }
    
    .pf-guides-card--wide {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--pf-space-md);
        padding: var(--pf-space-lg);
    }
    
    .pf-guides-go--right {
        position: absolute;
        top: var(--pf-space-lg);
        right: var(--pf-space-lg);
    }
}

@media (max-width: 480px) {
    .pf-guides-hero {
        padding: var(--pf-space-lg);
        border-radius: var(--pf-radius-lg);
    }
    
    .pf-guides-title {
        font-size: 1.65rem;
    }
    
    .pf-guides-kicker {
        font-size: 0.65rem;
    }
    
    .pf-guides-hero-card {
        padding: var(--pf-space-md);
    }
    
    .pf-guides-hero-card b {
        font-size: 0.95rem;
    }
    
    .pf-guides-hero-card li {
        font-size: 0.85rem;
    }
    
    .pf-guides-card {
        padding: var(--pf-space-md);
        border-radius: var(--pf-radius-lg);
    }
    
    .pf-guides-card-title {
        font-size: 1.1rem;
    }
    
    .pf-guides-card-desc {
        font-size: 0.85rem;
    }
    
    .pf-guides-tag {
        padding: 5px 10px;
        font-size: 0.65rem;
    }
    
    .pf-guides-meta {
        gap: 6px;
    }
    
    .pf-guides-go {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .pf-guides::before,
    .pf-guides-wrap::before,
    .pf-guides-wrap::after,
    .pf-guides-hero::before,
    .pf-guides-hero::after,
    .pf-guides-hero-card::before {
        animation: none !important;
    }
    
    .pf-guides-card,
    .pf-guides-hero,
    .pf-guides-title,
    .pf-guides-kicker,
    .pf-guides-sub,
    .pf-guides-back,
    .pf-guides-hero-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .pf-guides-card {
        transition: border-color var(--pf-transition-fast), box-shadow var(--pf-transition-fast) !important;
    }
    
    .pf-guides-card:hover {
        transform: translateY(-4px) !important;
    }
}

/* ==========================================================================
   FOCUS STATES (Accessibility)
   ========================================================================== */
.pf-guides a:focus-visible,
.pf-guides button:focus-visible {
    outline: 2px solid var(--pf-primary);
    outline-offset: 3px;
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */
.pf-guides ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.pf-guides ::-webkit-scrollbar-track {
    background: var(--pf-bg-deeper);
}

.pf-guides ::-webkit-scrollbar-thumb {
    background: var(--pf-border-light);
    border-radius: 4px;
}

.pf-guides ::-webkit-scrollbar-thumb:hover {
    background: var(--pf-text-dim);
}

/* ==========================================================================
   SELECTION
   ========================================================================== */
.pf-guides ::selection {
    background: var(--pf-primary);
    color: var(--pf-bg-dark);
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
    .pf-guides {
        background: #fff;
        color: #000;
    }
    
    .pf-guides::before,
    .pf-guides::after,
    .pf-guides-wrap::before,
    .pf-guides-wrap::after,
    .pf-guides-hero::before,
    .pf-guides-hero::after {
        display: none;
    }
    
    .pf-guides-card {
        border: 1px solid #ccc;
        background: #fff;
        box-shadow: none;
    }
    
    .pf-guides-tag {
        border: 1px solid #999;
        background: #f5f5f5;
    }
}

/* =========================================================
   HOTFIX (firm.css style): stop scrollbars + footer bounce on guides landing
   ========================================================= */

/* Wrapper behaves like firm.css .pf-wrap */
.pf-guides{
  position: relative;
  min-height: auto;          /* avoid forcing viewport-height scroll quirks */
  overflow-x: hidden;        /* only clip X */
  overflow-y: visible;       /* do NOT create a 2nd scroll container */
}

/* All fixed background layers must be clipped to viewport */
.pf-guides::before,
.pf-guides::after,
.pf-guides-wrap::before,
.pf-guides-wrap::after{
  position: fixed;
  inset: 0;
  pointer-events: none;

  clip-path: inset(0);
  transform-origin: 50% 50%;
  will-change: opacity, transform;
}

/* BUT: don't animate transform/scale on the big fixed layer (causes bounce).
   Keep the premium motion via opacity + background-position instead. */
.pf-guides::before{
  background-size: 200% 200%;
  animation:
    pfGuidesBgPulseSafe 25s ease-in-out infinite alternate,
    pfGuidesBgDriftSafe 35s ease-in-out infinite alternate;
}

/* Replace the old transform-based pulse */
@keyframes pfGuidesBgPulseSafe{
  0%   { opacity: 1; }
  100% { opacity: 0.6; }
}
@keyframes pfGuidesBgDriftSafe{
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Also fix the two floating orbs that used translate/scale:
   keep motion but prevent them from affecting layout. */
.pf-guides-wrap::before,
.pf-guides-wrap::after{
  clip-path: inset(0);
}

/* Optional: hide dropdown scrollbar visuals on desktop (same as guides pages) */
@media (min-width: 981px){
  .pf-nav-dd__menu{
    scrollbar-width: none;
  }
  .pf-nav-dd__menu::-webkit-scrollbar{
    width: 0;
    height: 0;
  }
}


/* ==========================================================================
   END OF STYLESHEET
   ========================================================================== */