/**
 * WUPO Plugins 2026 Theme
 * Premium, glassmorphic UI using the original color palette
 */

:root {
    /* Base Original Header Gradient Colors */
    --brand-blue: #3469f5;
    --brand-purple: #988be5;
    --brand-pink: #d7a0da;

    /* 2026 Neon/Glow Interpretations */
    --brand-blue-glow: rgba(52, 105, 245, 0.5);
    --brand-purple-glow: rgba(152, 139, 229, 0.5);
    --brand-pink-glow: rgba(215, 160, 218, 0.4);

    /* Gradient definitions for reuse */
    --gradient-primary: linear-gradient(135deg, var(--brand-blue), var(--brand-purple), var(--brand-pink));
    --gradient-hero: linear-gradient(90deg, rgba(52, 105, 245, 1) 0%, rgba(152, 139, 229, 1) 40%, rgba(215, 160, 218, 1) 100%);

    /* Modern 2026 UI Colors */
    --bg-dark: #0f1115;
    --bg-card: rgba(30, 32, 40, 0.6);
    --bg-card-hover: rgba(40, 42, 55, 0.8);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-glass: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Layout */
    --container-max: 1200px;
    --nav-height: 80px;
    --radius-lg: 16px;
    --radius-md: 8px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   Reset & Base Styles
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--brand-purple-glow) 0%, transparent 70%);
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--brand-blue-glow) 0%, transparent 70%);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--brand-pink);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* =========================================================================
   Components
   ========================================================================= */

/* Glass Panels */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-main);
    box-shadow: 0 4px 15px var(--brand-blue-glow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--brand-purple-glow);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
    border-color: var(--border-glass);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--brand-purple);
    color: #fff;
}

/* Header & Navigation */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 100;
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: baseline;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: #fff;
}

.logo-dot {
    color: var(--brand-pink);
    font-size: 2rem;
    line-height: 0;
    margin-left: 2px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.main-nav a:hover {
    color: #fff;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-purple);
    transition: width var(--transition-smooth);
    border-radius: 2px;
}

.main-nav a:hover::after {
    width: 100%;
}

.service-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 0;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle span:first-child {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 9px;
}

.mobile-menu-toggle span:last-child {
    top: 18px;
}

/* Main Content Area */
.main-content {
    margin-top: 60px;
    min-height: calc(100vh - var(--nav-height) - 300px);
}

/* Footer */
.site-footer {
    margin-top: 80px;
    padding: 60px 0 30px;
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 16px;
    max-width: 300px;
    font-size: 0.95rem;
}

.link-group h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 12px;
}

.link-group a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.link-group a:hover {
    color: var(--brand-pink);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .service-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   Page & Article Styles
   ========================================================================= */
.page-header {
    background: linear-gradient(to bottom, rgba(15, 17, 21, 0.9), transparent);
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5rem;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-inner {
    padding: 40px;
    margin-bottom: 80px;
}

/* Markdown Typography Base */
.markdown-body {
    font-size: 1.05rem;
    color: var(--text-main);
}

.markdown-body h1,
.markdown-body h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: #fff;
    font-family: var(--font-heading);
}

.markdown-body h2 {
    margin-top: 0;
    margin-bottom: 1em;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 10px;
}

.markdown-body h3 {
    font-size: 1.4rem;
    color: var(--brand-purple);
    margin-top: 0px;
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

.markdown-body blockquote {
    border-left: 4px solid var(--brand-purple);
    padding: 10px 20px;
    margin: 20px 0;
    background: rgba(137, 121, 229, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Base image styling */
.markdown-body img {
    margin: 20px 0;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* =========================================================================
   Home Page specific
   ========================================================================= */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.hero-card {
    padding: 20px;
    border: 1px solid rgba(145, 206, 167, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(137, 121, 229, 0.1);
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Feature tweaks from index.md ingestion */
.features-wrapper {
    padding: 40px;
    margin-top: -60px;
    /* Pull up over hero slightly */
    position: relative;
    z-index: 10;
}

/* Hide the duplicate title/paragraphs that we replaced with the heroic header */
.home-features .markdown-body>p:nth-child(2),
.home-features .markdown-body>h1:first-child,
.home-features .markdown-body>p:first-of-type,
.home-features .markdown-body>p:nth-of-type(2),
.home-features .markdown-body>a {
    display: none;
}

@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .features-wrapper {
        margin-top: 40px;
        padding: 20px;
    }
}

/* =========================================================================
   Pricing Tables
   ========================================================================= */
.pricing-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin: 60px 0;
}

.pricing-card {
    background: rgba(15, 17, 21, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px;
    flex: 1;
    min-width: 300px;
    text-align: center;
    position: relative;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.popular {
    transform: scale(1.05);
    border-color: rgba(152, 139, 229, 0.5);
    box-shadow: 0 10px 40px var(--brand-purple-glow);
    z-index: 10;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 50px var(--brand-purple-glow);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px var(--brand-blue-glow);
}

.pricing-card h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
    font-family: var(--font-heading);
    margin-top: 0;
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
    font-family: var(--font-heading);
    line-height: 1;
}

.pricing-card .currency {
    font-size: 1.8rem;
    vertical-align: super;
    margin-right: 5px;
    color: var(--text-muted);
}

.pricing-card .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card .lifetime-price {
    font-size: 0.95rem;
    color: var(--brand-pink);
    margin-bottom: 30px;
    font-weight: 500;
}

.pricing-card .features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: left;
}

.pricing-card .features li {
    margin-bottom: 15px;
    color: var(--text-muted);
    position: relative;
    padding-left: 30px;
    font-size: 1.05rem;
}

.pricing-card .features li::before {
    content: "✓";
    color: var(--brand-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.pricing-card.popular .features li::before {
    color: var(--brand-pink);
}

.pricing-card .features li strong {
    color: var(--text-main);
}

.pricing-card .btn {
    width: 100%;
    margin-bottom: 0;
}