/*
Theme Name: Capture Pipeline
Theme URI: https://subscription.rudieproductions.com
Author: Rudie Productions
Author URI: https://rudieproductions.com
Description: Custom Capture Pipeline theme — dark glassmorphism design with violet gradient accents. Elementor-ready.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
Text Domain: capture-pipeline
Tags: dark-mode, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready, elementor
*/

/* ─── Design tokens — mirror of subscription-site frontend ─── */
:root {
    color-scheme: dark;
    --bg-primary: #07070e;
    --bg-secondary: rgba(16, 16, 28, 0.85);
    --bg-tertiary: rgba(24, 24, 42, 0.8);
    --bg-elevated: #1e1e36;
    --border: rgba(80, 80, 140, 0.2);
    --border-light: rgba(100, 100, 160, 0.3);
    --text-primary: #eeeef4;
    --text-secondary: #a0a0be;
    --text-muted: #5c5c7e;
    --accent: #7c5cfc;
    --accent-hover: #6b4ce6;
    --accent-light: rgba(124, 92, 252, 0.15);
    --accent-purple: #c084fc;
    --gradient-primary: linear-gradient(135deg, #7c5cfc, #c084fc);
    --gradient-accent: linear-gradient(135deg, #5c6cfc, #c084fc, #f0a0e0);
    --glass-bg: rgba(16, 16, 30, 0.65);
    --glass-border: rgba(100, 100, 180, 0.15);
    --glow-sm: 0 0 15px rgba(124, 92, 252, 0.15);
    --glow-md: 0 0 30px rgba(124, 92, 252, 0.2);
    --glow-lg: 0 4px 40px rgba(124, 92, 252, 0.25);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Wix Madefor Text', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Wix Madefor Display', sans-serif;
    color: var(--text-primary);
}
a { color: var(--accent-purple); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* ─── Ambient background ─── */
.bg-glow {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0;
    overflow: hidden;
}
.bg-glow::before, .bg-glow::after {
    content: '';
    position: absolute;
    background: radial-gradient(ellipse, rgba(124, 92, 252, 0.06) 0%, transparent 70%);
    animation: drift 20s ease-in-out infinite;
}
.bg-glow::before { top: -40%; left: -20%; width: 80%; height: 80%; }
.bg-glow::after {
    bottom: -30%; right: -20%; width: 70%; height: 70%;
    background: radial-gradient(ellipse, rgba(192, 132, 252, 0.04) 0%, transparent 70%);
    animation: drift 25s ease-in-out infinite reverse;
}
@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(5%, 3%); }
}

/* ─── Navigation ─── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7, 7, 14, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 32px; border-radius: 6px; }
.nav-logo span {
    font-family: 'Wix Madefor Display', sans-serif;
    font-weight: 700; font-size: 18px;
    color: var(--text-primary);
}
.nav-menu { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-menu a {
    color: var(--text-secondary);
    font-size: 14px; font-weight: 500;
    transition: color 0.2s;
}
.nav-menu a:hover, .nav-menu .current-menu-item a { color: var(--text-primary); }
.nav-cta {
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* ─── Site content container ─── */
.site-main { position: relative; z-index: 1; padding-top: 80px; min-height: 60vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ─── Buttons ─── */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-family: 'Wix Madefor Display', sans-serif;
    font-size: 16px; font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--glow-sm);
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-2px); box-shadow: var(--glow-lg); color: #fff; }
.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover { background: var(--bg-tertiary); transform: translateY(-2px); color: var(--text-primary); }

/* ─── Cards (glass) ─── */
.cp-card {
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.2s, border-color 0.2s;
}
.cp-card:hover { transform: translateY(-4px); border-color: rgba(124, 92, 252, 0.3); }

/* ─── Gradient text utility (for Elementor reuse) ─── */
.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Footer ─── */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 80px;
    padding: 40px;
    border-top: 1px solid var(--glass-border);
    background: rgba(7, 7, 14, 0.6);
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--text-primary); }

/* ─── Default post/page content (non-Elementor fallback) ─── */
.entry-content { max-width: 800px; margin: 40px auto; padding: 0 40px; }
.entry-content h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 16px; letter-spacing: -1px; }
.entry-content h2 { font-size: 32px; margin: 32px 0 16px; }
.entry-content h3 { font-size: 22px; margin: 24px 0 12px; }
.entry-content p  { margin-bottom: 16px; color: var(--text-secondary); }
.entry-content ul, .entry-content ol { margin: 0 0 16px 24px; color: var(--text-secondary); }
.entry-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 8px 20px;
    margin: 20px 0;
    background: var(--glass-bg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-secondary);
    font-style: italic;
}
.entry-content code {
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.entry-content pre {
    background: var(--bg-elevated);
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 16px;
}

/* ─── Forms ─── */
input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .site-header { padding: 12px 20px; }
    .nav-menu { display: none; }
    .nav-menu.mobile-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-primary); padding: 20px; border-bottom: 1px solid var(--glass-border); }
    .container, .entry-content { padding: 0 20px; }
}

/* ─── Admin bar adjustment ─── */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ─── Elementor integration — ensure container widths match site ─── */
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1200px; }
