/*
Theme Name: AI Ecosystem — Craig Norway
Theme URI: https://aiecosystempluginbuilder.com
Author: Craig Norway
Author URI: https://aiecosystempluginbuilder.com
Description: Clean, professional WordPress theme for the AI Ecosystem Plugin Builder sales funnel. Fully editable via Theme Settings. Squeeze page, bridge page, products page, and thank you page included.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: aie-theme
*/

/* ============================================================
   THEME COLOR & FONT VARIABLES — EDIT THESE TO RESTYLE
   ============================================================ */
:root {
    /* Brand Colors */
    --color-bg:          #0a0a0f;
    --color-bg-card:     #12121a;
    --color-bg-section:  #0f0f18;
    --color-border:      #1e1e2e;
    --color-accent:      #00c2ff;
    --color-accent-2:    #7b2ff7;
    --color-accent-glow: rgba(0, 194, 255, 0.18);
    --color-gold:        #f0c040;
    --color-gold-dark:   #c89a1a;
    --color-green:       #00e676;
    --color-danger:      #ff4444;

    /* Text Colors */
    --color-text:        #e8e8f0;
    --color-text-muted:  #8888aa;
    --color-text-faint:  #555570;
    --color-heading:     #ffffff;

    /* Button Colors */
    --btn-primary-bg:    linear-gradient(135deg, #00c2ff 0%, #7b2ff7 100%);
    --btn-primary-hover: linear-gradient(135deg, #33cfff 0%, #9b4fff 100%);
    --btn-cta-bg:        linear-gradient(135deg, #f0c040 0%, #e88c00 100%);
    --btn-cta-hover:     linear-gradient(135deg, #f8d060 0%, #f0a020 100%);

    /* Typography */
    --font-heading:      'Sora', 'Segoe UI', sans-serif;
    --font-body:         'DM Sans', 'Segoe UI', sans-serif;
    --font-mono:         'JetBrains Mono', monospace;

    /* Spacing & Layout */
    --container-max:     1100px;
    --container-wide:    1300px;
    --section-pad:       80px;
    --section-pad-sm:    48px;
    --radius:            12px;
    --radius-lg:         20px;

    /* Shadows & Effects */
    --shadow-card:       0 4px 32px rgba(0,0,0,0.5);
    --shadow-glow:       0 0 40px rgba(0, 194, 255, 0.15);
    --shadow-gold:       0 0 30px rgba(240, 192, 64, 0.25);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

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

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}
.container--wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}
.section {
    padding: var(--section-pad) 0;
}
.section--sm {
    padding: var(--section-pad-sm) 0;
}
.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
    background: rgba(10,10,15,0.95);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.site-logo span { color: var(--color-accent); }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
    color: var(--color-text-muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.site-nav a:hover { color: #fff; }
.site-nav .nav-cta {
    background: var(--btn-cta-bg);
    color: #000;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}
.site-nav .nav-cta:hover { background: var(--btn-cta-hover); color: #000; }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--color-bg-card);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
    }
    .site-nav.is-open { display: flex; }
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    padding: 40px 0 24px;
    text-align: center;
}
.site-footer__links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.site-footer__links a { color: var(--color-text-muted); font-size: 14px; }
.site-footer__links a:hover { color: #fff; }
.site-footer__copy { color: var(--color-text-faint); font-size: 13px; }
.site-footer__disclaimer {
    color: var(--color-text-faint);
    font-size: 12px;
    margin-top: 12px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}
.btn--primary {
    background: var(--btn-primary-bg);
    color: #fff;
}
.btn--primary:hover {
    background: var(--btn-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}
.btn--cta {
    background: var(--btn-cta-bg);
    color: #000;
    font-size: 18px;
    padding: 18px 48px;
}
.btn--cta:hover {
    background: var(--btn-cta-hover);
    color: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}
.btn--outline {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}
.btn--outline:hover {
    background: var(--color-accent);
    color: #000;
}
.btn--lg { font-size: 20px; padding: 20px 56px; }
.btn--full { width: 100%; display: block; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.card--glow {
    box-shadow: var(--shadow-glow);
    border-color: rgba(0,194,255,0.25);
}
.card--gold {
    box-shadow: var(--shadow-gold);
    border-color: rgba(240,192,64,0.3);
}

/* ============================================================
   BADGES & LABELS
   ============================================================ */
.badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.badge--accent { background: var(--color-accent-glow); color: var(--color-accent); border: 1px solid rgba(0,194,255,0.3); }
.badge--gold   { background: rgba(240,192,64,0.15); color: var(--color-gold); border: 1px solid rgba(240,192,64,0.3); }
.badge--green  { background: rgba(0,230,118,0.12); color: var(--color-green); border: 1px solid rgba(0,230,118,0.3); }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 12px;
    display: block;
}
.section-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.section-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* ============================================================
   EBOOK MOCKUP (CSS 3D)
   ============================================================ */
.ebook-wrap {
    perspective: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ebook {
    width: 200px;
    height: 270px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(4deg);
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.7));
    animation: ebookFloat 4s ease-in-out infinite;
}
@keyframes ebookFloat {
    0%, 100% { transform: rotateY(-20deg) rotateX(4deg) translateY(0); }
    50%       { transform: rotateY(-20deg) rotateX(4deg) translateY(-12px); }
}
.ebook-cover {
    width: 200px;
    height: 270px;
    background: linear-gradient(145deg, #1a0a3a 0%, #0d1a40 50%, #0a2a1a 100%);
    border-radius: 4px 10px 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ebook-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,194,255,0.12) 0%, rgba(123,47,247,0.12) 100%);
}
.ebook-cover::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
}
.ebook-cover-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}
.ebook-cover-sub {
    font-size: 10px;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}
.ebook-cover-author {
    position: absolute;
    bottom: 14px;
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    z-index: 1;
}
.ebook-cover-icon {
    font-size: 36px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.ebook-spine {
    position: absolute;
    left: -16px;
    top: 0;
    width: 16px;
    height: 270px;
    background: linear-gradient(180deg, #0d0520 0%, #1a0a3a 100%);
    transform-origin: right center;
    transform: rotateY(-90deg) translateX(-8px);
    border-radius: 4px 0 0 4px;
}

/* ============================================================
   FORM STYLES
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    background: #0a0a14;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    padding: 12px 16px;
    transition: border-color 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0,194,255,0.1);
}
.form-group textarea { min-height: 100px; resize: vertical; }

/* Capture form on squeeze page */
.capture-form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 480px;
    margin: 0 auto;
}
.capture-form__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}
.capture-form .btn--cta {
    width: 100%;
    margin-top: 8px;
    font-size: 16px;
    padding: 16px 24px;
}
.capture-form__privacy {
    text-align: center;
    font-size: 12px;
    color: var(--color-text-faint);
    margin-top: 12px;
}
.capture-form__privacy a { color: var(--color-text-faint); text-decoration: underline; }

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.pricing-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.pricing-card--featured {
    border-color: rgba(240,192,64,0.4);
    box-shadow: var(--shadow-gold);
}
.pricing-card__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.pricing-card__name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.pricing-card__price {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 900;
    color: var(--color-gold);
    line-height: 1;
    margin: 16px 0 4px;
}
.pricing-card__price sup { font-size: 24px; vertical-align: super; }
.pricing-card__desc {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    flex: 1;
}
.pricing-card__features {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
    flex: 1;
}
.pricing-card__features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-card__features li:last-child { border-bottom: none; }
.pricing-card__features li::before {
    content: '✓';
    color: var(--color-green);
    font-weight: 700;
    flex-shrink: 0;
}
.pricing-card .btn { margin-top: auto; }

/* Best value ribbon */
.pricing-ribbon {
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--btn-cta-bg);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 0 0 8px 8px;
}

/* ============================================================
   GUARANTEE BOX
   ============================================================ */
.guarantee-box {
    background: var(--color-bg-card);
    border: 2px solid var(--color-green);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 720px;
    margin: 0 auto;
}
.guarantee-badge {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(0,230,118,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}
.guarantee-box h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--color-green);
}
.guarantee-box p { color: var(--color-text-muted); font-size: 15px; margin: 0; }

@media (max-width: 600px) {
    .guarantee-box { flex-direction: column; text-align: center; padding: 24px; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.testimonial {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.testimonial__stars { color: var(--color-gold); font-size: 18px; margin-bottom: 12px; }
.testimonial__text { color: var(--color-text); font-size: 15px; font-style: italic; margin-bottom: 16px; }
.testimonial__author { font-size: 13px; color: var(--color-text-muted); font-weight: 600; }

/* ============================================================
   BULLET / FEATURE LIST
   ============================================================ */
.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bullet-list li {
    padding: 10px 0 10px 32px;
    position: relative;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 16px;
}
.bullet-list li:last-child { border-bottom: none; }
.bullet-list li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 16px;
}

/* ============================================================
   ADMIN — THEME SETTINGS PAGE
   ============================================================ */
.aie-settings-wrap { max-width: 780px; }
.aie-settings-wrap h1 {
    color: #1d2327;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin-bottom: 4px;
}
.aie-settings-section {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 24px;
    margin-top: 20px;
}
.aie-settings-section h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1d2327;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}
.aie-field { margin-bottom: 16px; }
.aie-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 4px;
}
.aie-field input,
.aie-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
}
.aie-field .description {
    font-size: 12px;
    color: #646970;
    margin-top: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --section-pad: 48px;
        --section-pad-sm: 32px;
    }
    .section-title { font-size: 28px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .btn--cta { font-size: 16px; padding: 16px 32px; }
}
