/* =================================================================
   CODENOSYS WORDPRESS DEVELOPMENT SERVICE PAGE STYLES
   ================================================================= */

/* --- Global Section Headers --- */
.section-tag {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #3da5d9;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 680px;
}

/* Header Alignments */
.wp-woo__header {
    text-align: center;
    margin-bottom: 60px;
}

.wp-woo__header .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* --- 1. Hero Section --- */
.wp-hero {
    position: relative;
    padding: 180px 0 100px;
    background: radial-gradient(circle at top, rgba(33, 117, 155, 0.08) 0%, var(--color-bg) 75%);
    overflow: hidden;
}

.wp-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.holo-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(33, 117, 155, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 117, 155, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    transform: perspective(600px) rotateX(60deg) translateY(-80px) scale(1.8);
    opacity: 0.5;
    animation: gridMove 25s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

.holo-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 115, 170, 0.15) 0%, transparent 70%);
    filter: blur(80px);
}

.wp-hero__layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.wp-hero__content {
    max-width: 680px;
}

.wp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(33, 117, 155, 0.1);
    border: 1px solid rgba(61, 165, 217, 0.2);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3da5d9;
    margin-bottom: 24px;
}

.wp-hero__badge .live-dot {
    width: 6px;
    height: 6px;
    background: #3da5d9;
    border-radius: 50%;
    box-shadow: 0 0 10px #3da5d9;
    animation: pulse 1.5s infinite;
}

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

.wp-hero .title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
    letter-spacing: -0.02em;
}

.wp-hero .subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    line-height: 1.65;
}

.wp-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Button Classes Override */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #21759b, #3da5d9);
    color: #fff;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(33, 117, 155, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: none;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(33, 117, 155, 0.45);
    color: #fff;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f9f9f9;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* --- PageSpeed HUD Visual --- */
.wp-performance-hud {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hud-gauge-viewport {
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gauge-svg {
    width: 180px;
    height: 100%;
}

.gauge-track {
    stroke-linecap: round;
}

.gauge-fill {
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), stroke 0.5s ease;
}

.gauge-text {
    font-family: var(--font-heading);
    transition: fill 0.5s ease;
}

.hud-toggle-pane {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 4px;
}

.toggle-mode-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    border-radius: 8px;
    color: var(--color-text-muted);
    font-family: monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-mode-btn.active {
    color: #fff;
}

.toggle-mode-btn.template.active {
    background: rgba(255, 95, 86, 0.15);
    border: 1px solid rgba(255, 95, 86, 0.25);
    color: #ff5f56;
}

.toggle-mode-btn.custom.active {
    background: rgba(61, 165, 217, 0.15);
    border: 1px solid rgba(61, 165, 217, 0.25);
    color: #3da5d9;
}

.hud-diagnostics-logs {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.log-line {
    font-family: monospace;
    font-size: 0.76rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.log-line.show {
    opacity: 1;
    transform: translateY(0);
}

.log-line.error { color: #ff5f56; }
.log-line.success { color: #3da5d9; }

/* --- 2. Plugin Weight Visualizer --- */
.wp-bloat {
    padding: 120px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wp-bloat__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.bloat-columns-container {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
}

.bloat-col {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 30px 20px;
    flex: 1;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bloat-col h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 8px;
}

.weight-label {
    display: block;
    font-family: monospace;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

.block-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stack-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all 0.3s;
}

.red-stack .stack-block {
    border-color: rgba(255, 95, 86, 0.1);
    background: linear-gradient(135deg, rgba(255, 95, 86, 0.01), transparent);
}

.red-stack .stack-block:hover {
    border-color: #ff5f56;
    color: #ff5f56;
    box-shadow: 0 0 15px rgba(255, 95, 86, 0.15);
}

.green-stack .stack-block {
    border-color: rgba(61, 165, 217, 0.15);
    background: linear-gradient(135deg, rgba(61, 165, 217, 0.02), transparent);
}

.green-stack .stack-block:hover {
    border-color: #3da5d9;
    color: #3da5d9;
    box-shadow: 0 0 15px rgba(61, 165, 217, 0.25);
}

.bloat-connector {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.3rem;
    margin-bottom: 80px;
}

.bloat-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bloat-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.bloat-list li .icon-box {
    width: 48px;
    height: 48px;
    background: rgba(33, 117, 155, 0.05);
    border: 1px solid rgba(61, 165, 217, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3da5d9;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.bloat-list li strong {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 6px;
}

.bloat-list li p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* --- 3. Custom Block Configurator --- */
.wp-editor-section {
    padding: 120px 0;
    background: #02040a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wp-editor__grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.block-tabs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.block-tab {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 16px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.block-tab .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-text-muted);
    margin-top: 5px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.block-tab h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.block-tab p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.block-tab:hover {
    border-color: rgba(61, 165, 217, 0.25);
    background: rgba(61, 165, 217, 0.02);
}

.block-tab.active {
    border-color: #3da5d9;
    background: rgba(61, 165, 217, 0.05);
    box-shadow: 0 10px 30px rgba(61, 165, 217, 0.08);
}

.block-tab.active .indicator {
    border-color: #3da5d9;
    background: #3da5d9;
    box-shadow: 0 0 8px #3da5d9;
}

/* Tablet Preview Frame */
.wp-editor__viewport {
    height: 440px;
}

.preview-tablet-frame {
    background: #101520;
    border: 12px solid #05070c;
    border-radius: 36px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
}

.tablet-header {
    height: 24px;
    background: #05070c;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tablet-header .camera {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #222;
}

.tablet-header .speaker {
    width: 30px;
    height: 3px;
    border-radius: 2px;
    background: #222;
}

.tablet-canvas {
    flex: 1;
    background: #05070c;
    padding: 24px;
    overflow-y: auto;
    position: relative;
}

/* Rendered Blocks Previews */
.canvas-block {
    opacity: 0;
    transform: scale(0.96);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.canvas-block.show {
    opacity: 1;
    transform: scale(1);
}

/* Block Content Mockups */
.mock-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.mock-price-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.mock-price-card.featured {
    border-color: rgba(61, 165, 217, 0.25);
    background: linear-gradient(135deg, rgba(61, 165, 217, 0.03), transparent);
}

.mock-price-card h5 { color: rgba(255,255,255,0.4); font-size: 0.78rem; text-transform: uppercase; margin-bottom: 8px; }
.mock-price-card .price { font-size: 1.6rem; font-weight: bold; color: #fff; margin-bottom: 12px; }
.mock-price-card .price span { font-size: 0.85rem; font-weight: normal; color: rgba(255,255,255,0.3); }

.mock-price-card ul { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.mock-price-card li { font-size: 0.75rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 6px; }
.mock-price-card li i { color: #3da5d9; }

.mock-stat-hud {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.mock-stat-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.mock-stat-card .num { font-size: 2.2rem; font-weight: 800; color: #3da5d9; text-shadow: 0 0 10px rgba(61, 165, 217, 0.2); }
.mock-stat-card span { display: block; font-size: 0.82rem; color: var(--color-text-muted); margin-top: 6px; }

.mock-team-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-team-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 12px 20px;
}

.mock-team-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(61, 165, 217, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3da5d9;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.mock-team-item h5 { color: #fff; font-size: 0.9rem; font-weight: 600; }
.mock-team-item span { color: rgba(255,255,255,0.4); font-size: 0.74rem; }

/* --- 4. WooCommerce Scale Pipeline --- */
.wp-woocommerce {
    padding: 120px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: radial-gradient(circle at bottom, rgba(33, 117, 155, 0.02) 0%, transparent 70%);
}

.woo-pipeline-container {
    height: 180px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.005);
    overflow: hidden;
    margin-top: 40px;
}

.pipeline-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.pipe-wire {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 2.5;
    stroke-dasharray: 8, 8;
    animation: flowDash 30s linear infinite;
    transition: all 0.4s ease;
}

.pipe-wire.active {
    stroke: #3da5d9;
    animation: flowDashActive 8s linear infinite;
    filter: drop-shadow(0 0 5px #3da5d9);
}

@keyframes flowDash {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1000; }
}

@keyframes flowDashActive {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1000; }
}

.pipeline-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 40px;
}

.pipeline-node {
    background: #05070c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: default;
}

.pipeline-node .node-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin: 0 auto 12px;
    transition: all 0.3s;
}

.pipeline-node h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.pipeline-node span {
    font-size: 0.76rem;
    color: var(--color-text-muted);
}

/* Hovers */
.pipeline-node:hover {
    border-color: #3da5d9;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.pipeline-node:hover .node-icon {
    background: rgba(61, 165, 217, 0.15);
    color: #3da5d9;
}

/* --- 5. Technical Metrics --- */
.wp-specs {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wp-specs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.spec-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #3da5d9;
    text-shadow: 0 0 15px rgba(61, 165, 217, 0.15);
}

.spec-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.spec-card p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* --- 6. FAQ & CTA --- */
.wp-faq {
    padding: 120px 0;
}

.ui-faq__grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 60px;
    align-items: flex-start;
}

.ui-section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 40px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
    transition: color 0.3s;
}

.faq-trigger i {
    font-size: 1.4rem;
    color: #3da5d9;
    transition: transform 0.4s ease;
}

.faq-item.active .faq-trigger i {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-content p {
    padding-top: 16px;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* CTA Card */
.wp-cta-box {
    background: linear-gradient(135deg, rgba(33, 117, 155, 0.03), rgba(61, 165, 217, 0.03));
    border: 1px solid rgba(61, 165, 217, 0.15);
    border-radius: 32px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(61, 165, 217, 0.05);
}

.wp-cta-box h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.wp-cta-box p {
    font-size: 0.98rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* --- 7. Responsive Adaptations --- */
@media (max-width: 1024px) {
    .wp-hero__layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .wp-hero__visual {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .wp-bloat__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .wp-editor__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .wp-editor__viewport {
        height: 380px;
    }

    .woo-pipeline-container {
        height: auto;
        border: none;
        background: none;
    }

    .pipeline-svg {
        display: none;
    }

    .pipeline-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        height: auto;
        padding: 0;
    }

    .pipeline-node {
        width: 100% !important;
        transform: none !important;
    }

    .wp-specs__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .ui-faq__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .wp-hero {
        padding: 140px 0 80px;
    }

    .bloat-columns-container {
        flex-direction: column;
        align-items: center;
    }

    .bloat-col {
        width: 100%;
        max-width: 320px;
    }

    .bloat-connector {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .wp-specs__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .wp-cta-box {
        padding: 35px 20px;
    }

    .mock-pricing-grid {
        grid-template-columns: 1fr;
    }

    .mock-stat-hud {
        grid-template-columns: 1fr;
    }
}
