/*
Theme Name: BotFlowCraft
Theme URI: https://faisalnadeem.net
Author: Faisal Nadeem
Author URI: https://botflowcraft.com
Description: A modern WordPress theme for n8n automation services. Features a dark, gradient-based design with smooth animations and a professional layout.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: botflowcraft
Tags: automation, business, dark, modern, custom-menu, featured-images, threaded-comments, translation-ready

This theme is based on the n8n automation services design.
*/

:root {
    --primary: #FF6D5A;
    /* n8n Orange/Red */
    --primary-hover: #ff8f80;
    --secondary: #2D3E50;
    --accent: #00E5FF;
    /* Neon Blue */
    --bg-dark: #0F1115;
    --bg-card: #1A1D24;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --gradient-main: linear-gradient(135deg, #FF6D5A 0%, #FF9F43 100%);
    --gradient-text: linear-gradient(90deg, #FFFFFF 0%, #FF6D5A 100%);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 109, 90, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: left 0.1s ease, top 0.1s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.n8n-color {
    color: var(--primary);
}

/* Layout */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 109, 90, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 109, 90, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 1.2rem;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--primary);
    transition: fill 0.3s ease;
}

/* Navigation - Mobile First */
.nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 17, 21, 0.98);
    padding: 2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    align-items: center;
}

.nav-links.active {
    display: flex;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    text-align: left;
}

.nav-links a:not(.btn):last-child {
    border-bottom: none;
}

.nav-links a:not(.btn):hover {
    color: white;
}

.nav-links .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.mobile-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    transition: transform 0.3s ease;
    z-index: 1001;
}

.mobile-toggle.active {
    transform: rotate(90deg);
}

.mobile-toggle i {
    transition: transform 0.3s ease;
}

/* Icon change handled by JavaScript */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(255, 109, 90, 0.05) 0%, rgba(15, 17, 21, 0) 70%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 0.5rem;
    box-shadow: 0 0 10px var(--accent);
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

.hero-btns .btn {
    width: 100%;
    justify-content: center;
}

.tech-stack-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 1.25rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 1.5rem;
}

.tech-stack-icons i:hover {
    color: white;
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

/* Hero Visual - Floating Workflow */
.hero-visual {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: center;
}

.workflow-card {
    background: rgba(26, 29, 36, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

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

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

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

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

.node {
    background: #2D3E50;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.start-node {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.action-node {
    border-color: var(--primary);
}

.condition-node {
    border-color: #FFD700;
}

.success {
    border-color: #2ECC71;
}

.connection-line {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto;
}

.connection-branches {
    display: flex;
    justify-content: space-between;
    width: 200px;
    margin: 0 auto;
    height: 20px;
    position: relative;
}

.branch-line {
    width: 50%;
    height: 100%;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.branch-line:first-child {
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 10px 0 0;
}

.branch-line:last-child {
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px 0 0 0;
}

.node-row {
    display: flex;
    justify-content: space-between;
    width: 240px;
    margin: 0 auto;
}

/* Features/Problems */
.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-card);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 109, 90, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.subtitle {
    display: inline-block;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-header h2 {
    color: white;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* Solutions / Code Block */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.split-content {
    text-align: center;
}

.check-list {
    list-style: none;
    margin: 2rem 0;
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
}

.check-list i {
    color: var(--primary);
}

.code-block {
    background: #0d1117;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.code-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #FF5F56;
}

.yellow {
    background: #FFBD2E;
}

.green {
    background: #27C93F;
}

.keyword {
    color: #ff7b72;
}

.var {
    color: #79c0ff;
}

.string {
    color: #a5d6ff;
}

.prop {
    color: #d2a8ff;
}

.num {
    color: #79c0ff;
}

.comment {
    color: #8b949e;
    font-style: italic;
}

/* Services */
.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(255, 109, 90, 0.1), transparent 70%);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 109, 90, 0.3);
}

.service-card:hover .card-glow {
    background: radial-gradient(circle at top right, rgba(255, 109, 90, 0.2), transparent 70%);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    position: relative;
    text-align: left;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -2rem;
    left: -1rem;
    z-index: 0;
}

.step h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
    text-align: left;
}

.step p {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    text-align: left;
}

/* CTA */
.cta-section {
    padding-bottom: 8rem;
}

.cta-box {
    background: linear-gradient(135deg, #2D3E50 0%, #1A1D24 100%);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 109, 90, 0.1), transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: #0A0C0F;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Dark Background Section */
.dark-bg {
    background: rgba(10, 12, 15, 0.5);
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Templates Shop */
.template-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-card);
}

.template-image {
    height: 180px;
    background: #252A33;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.template-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.template-card:hover .template-icon {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.2);
}

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.template-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.template-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: var(--text-muted);
}

.template-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.template-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.template-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.btn-text {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text:hover {
    gap: 0.8rem;
}

.center-btn {
    text-align: center;
    margin-top: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-5 {
    margin-top: 3rem;
}

.pt-0 {
    padding-top: 0;
}

/* Blog Section */
.blog-card {
    background: transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-placeholder {
    transform: scale(1.05);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.blog-meta i {
    margin-right: 0.4rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.blog-content h3 a:hover {
    color: var(--primary);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
}

.read-more:hover {
    gap: 0.8rem;
}

/* Blog Page */
.blog-hero {
    padding-top: 140px;
    padding-bottom: 4rem;
    text-align: center;
}

.blog-hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.blog-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.category-pill {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary);
    color: white;
}

.tag-sm {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-family: var(--font-main);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Template Details Page */
.template-hero {
    padding-top: 120px;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.template-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.back-link {
    margin-bottom: 2rem;
}

.back-link a {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link a:hover {
    color: var(--primary);
    gap: 0.8rem;
}

.template-badges {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.template-badges .tag {
    background: rgba(255, 109, 90, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 109, 90, 0.2);
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.template-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    color: white;
    font-weight: 500;
}

.template-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.template-meta i {
    color: var(--accent);
}

.template-price-block {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: fit-content;
}

.price-display {
    display: flex;
    align-items: baseline;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-right: 0.2rem;
}

.amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.period {
    color: var(--text-muted);
    margin-left: 0.5rem;
}

/* Template Preview Visual */
.template-preview-card {
    background: #1A1D24;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.preview-header {
    background: #252A33;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots {
    position: absolute;
    left: 1rem;
    display: flex;
    gap: 0.4rem;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.preview-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.preview-body {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.workflow-node {
    background: #2D3E50;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 140px;
    text-align: center;
}

.workflow-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
}

.workflow-node.start {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.workflow-node.action {
    border-color: var(--primary);
}

.workflow-node.ai {
    border-color: #9B59B6;
}

.workflow-node.success {
    border-color: #2ECC71;
}

.workflow-split {
    display: flex;
    gap: 3rem;
    margin-top: 0.5rem;
}

.split-left,
.split-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Details Section */
.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-list i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.2rem;
}

.feature-list h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.requirements-list {
    list-style: disc;
    margin-left: 1.5rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.requirements-list li {
    margin-bottom: 0.5rem;
}

.sidebar-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 100px;
}

.faq-item {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 0.9rem;
}

/* Blog Detail Page */
.article-header {
    padding-top: 140px;
    padding-bottom: 3rem;
    text-align: center;
}

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

.category-tag {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.article-header h1 {
    font-size: 3rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.author-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.author-info .name {
    font-weight: 600;
    color: white;
}

.author-info .role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.read-time {
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #d0d0d0;
}

.article-body h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: inherit;
}

.article-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

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

.article-featured-image {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #2D3E50 0%, #1A1D24 100%);
}

.share-block {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.share-block a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s ease;
}

.share-block a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.toc {
    list-style: none;
}

.toc li {
    margin-bottom: 0.8rem;
}

.toc a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.toc a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.cta-widget {
    background: linear-gradient(135deg, rgba(255, 109, 90, 0.1) 0%, rgba(26, 29, 36, 0.5) 100%);
    border-color: rgba(255, 109, 90, 0.2);
    text-align: center;
}

.cta-widget p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* WordPress Specific */
.wp-block-group {
    margin-bottom: 2rem;
}

.wp-block-image {
    margin-bottom: 2rem;
}

.wp-block-image img {
    border-radius: 12px;
}

/* Responsive */
/* Legacy max-width queries - kept for compatibility with existing styles */
@media (max-width: 968px) {
    .template-hero-grid,
    .details-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .template-hero-visual {
        order: -1;
    }

    .sidebar-card,
    .article-sidebar {
        position: static;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .article-header h1 {
        font-size: 2.2rem;
    }

    .blog-hero h1 {
        font-size: 2.5rem;
    }
}

/* Search Form */
.search-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-field {
    flex-grow: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
}

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

.search-form .btn {
    white-space: nowrap;
}

/* Comments */
.comments-area {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.comment-list {
    list-style: none;
    margin-bottom: 2rem;
}

.comment {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-author .fn {
    font-weight: 600;
    color: white;
}

.comment-metadata {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: auto;
}

.comment-content {
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 1rem;
}

.comment-content p {
    margin-bottom: 1rem;
}

.comment-reply-link {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

.comment-reply-link:hover {
    color: var(--primary-hover);
}

.comment-form {
    margin-top: 3rem;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 1.5rem;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
}

.comment-form-comment textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.no-comments {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
}

/* Comment Navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.comment-navigation a {
    color: var(--primary);
    font-weight: 600;
}

.comment-navigation a:hover {
    color: var(--primary-hover);
}

/* ============================================
   MOBILE-FIRST RESPONSIVE DESIGN
   Base styles are mobile-first (default)
   Media queries enhance for larger screens
   ============================================ */

/* Additional Mobile-Specific Adjustments */
.nav-container {
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.split-content {
    text-align: center;
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step {
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.footer-col {
    margin-bottom: 2rem;
}

.social-links {
    justify-content: center;
}

.cta-box {
    padding: 2rem 1.5rem;
    text-align: center;
}

.feature-card,
.service-card,
.template-card,
.blog-card {
    padding: 1.5rem;
}

.template-image,
.blog-image {
    height: 200px;
}

.workflow-card {
    transform: scale(0.8);
}

/* Small Tablets and Large Phones (576px and up) */
@media (min-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content {
        padding: 3rem 0;
    }

    .hero-btns {
        flex-direction: row;
        justify-content: center;
    }

    .hero-btns .btn {
        width: auto;
    }

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

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .workflow-card {
        transform: scale(0.9);
    }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 2rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row;
        position: static;
        width: auto;
        margin-top: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-bottom: none;
        gap: 2rem;
    }

    .nav-links a:not(.btn) {
        padding: 0;
        border-bottom: none;
        width: auto;
        text-align: left;
    }

    .nav-links .btn {
        width: auto;
        margin-top: 0;
    }

    .mobile-toggle {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 4rem 0;
    }

    .hero-text {
        text-align: left;
    }

    .hero-btns {
        flex-direction: row;
        justify-content: flex-start;
        width: auto;
    }

    .hero-btns .btn {
        width: auto;
    }

    .tech-stack-icons {
        justify-content: flex-start;
    }

    .hero-visual {
        height: 400px;
    }

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

    .split-layout {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .split-content {
        text-align: left;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
        text-align: left;
    }

    .footer-col {
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }

    .section-header {
        text-align: left;
    }

    .cta-box {
        padding: 4rem 2rem;
        text-align: center;
        max-width: 900px;
        margin: 0 auto;
    }

    .workflow-card {
        transform: scale(1);
    }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .process-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .hero-content {
        padding: 5rem 0;
    }

    .hero-visual {
        height: 500px;
    }

    .feature-card,
    .service-card,
    .template-card,
    .blog-card {
        padding: 2rem;
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .hero-content {
        padding: 6rem 0;
    }

    .section {
        padding: 5rem 0;
    }
}

/* Extra Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 575px) {
    .cursor-glow {
        display: none;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .subtitle {
        font-size: 0.875rem;
    }

    p {
        font-size: 1rem;
    }

    .code-block pre {
        font-size: 0.7rem;
        padding: 1rem;
    }

    .template-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .template-footer .price {
        font-size: 1.5rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.875rem;
    }

    .step-number {
        font-size: 2.5rem;
    }
}

