/**
 * Saflo Labs — WordPress Themes Coming Soon Stylesheet
 * Stitch Design System & Developer-First SaaS Architecture
 */

.themes-page {
    position: relative;
    min-height: 80vh;
    padding: 2.5rem 0 5rem;
    overflow: hidden;
    color: var(--on-surface, #0f172a);
}

[data-theme="dark"] .themes-page {
    color: #f8fafc;
}

/* Background Ambient Lighting Canvas */
.themes-bg-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.themes-glow-primary {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(79, 70, 229, 0.05) 50%, transparent 70%);
    filter: blur(60px);
}

.themes-glow-accent {
    position: absolute;
    top: 40%;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    filter: blur(70px);
}

.themes-hex-svg {
    position: absolute;
    inset: 0;
    color: var(--primary, #6366f1);
    opacity: 0.4;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
}

.themes-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Breadcrumb Navigation */
.themes-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--on-surface-variant, #64748b);
    margin-bottom: 2.5rem;
}

.themes-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.themes-breadcrumb-link:hover {
    color: var(--primary, #6366f1);
}

.themes-breadcrumb-sep {
    font-size: 0.65rem;
    opacity: 0.6;
}

.themes-breadcrumb-active {
    font-weight: 600;
    color: var(--on-surface, #0f172a);
}

[data-theme="dark"] .themes-breadcrumb-active {
    color: #f1f5f9;
}

/* Hero Section */
.themes-hero {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 5rem;
}

.themes-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary, #4f46e5);
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .themes-hero-badge {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(129, 140, 248, 0.3);
    color: #a5b4fc;
}

.themes-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: themesPulse 2s infinite;
}

@keyframes themesPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.themes-badge-sep {
    opacity: 0.5;
}

.themes-badge-target {
    color: var(--on-surface-variant, #64748b);
    font-weight: 500;
}

[data-theme="dark"] .themes-badge-target {
    color: #94a3b8;
}

.themes-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

.themes-hero-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.themes-hero-desc {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--on-surface-variant, #475569);
    max-width: 720px;
    margin: 0 auto 2rem;
}

[data-theme="dark"] .themes-hero-desc {
    color: #94a3b8;
}

.themes-hero-cta-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.themes-trust-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--on-surface-variant, #64748b);
}

[data-theme="dark"] .themes-trust-row {
    color: #94a3b8;
}

.themes-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.themes-trust-sep {
    opacity: 0.4;
}

/* Section Common Header */
.themes-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.themes-section-kicker {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary, #6366f1);
    display: block;
    margin-bottom: 0.5rem;
}

.themes-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.themes-section-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--on-surface-variant, #64748b);
}

[data-theme="dark"] .themes-section-desc {
    color: #94a3b8;
}

/* Section 1: Pillars Grid */
.themes-commitments-section {
    margin-bottom: 5rem;
}

.themes-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.themes-pillar-card {
    background: var(--surface-container-lowest, #ffffff);
    border: 1px solid var(--border-primary, #e2e8f0);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .themes-pillar-card {
    background: #111827;
    border-color: #1f2937;
}

.themes-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    border-color: rgba(99, 102, 241, 0.4);
}

.themes-pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.icon-speed { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.icon-fse { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.icon-woo { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.icon-sync { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.themes-pillar-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.themes-pillar-card p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--on-surface-variant, #64748b);
    margin-bottom: 1.25rem;
}

[data-theme="dark"] .themes-pillar-card p {
    color: #94a3b8;
}

.themes-pillar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--on-surface, #1e293b);
}

[data-theme="dark"] .themes-pillar-list {
    color: #cbd5e1;
}

.themes-pillar-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.themes-pillar-list i {
    color: #10b981;
    font-size: 0.875rem;
}

/* Section 2: Early Access Card */
.themes-notify-section {
    margin-bottom: 5rem;
}

.themes-notify-card {
    background: linear-gradient(135deg, #111827 0%, #1e1b4b 100%);
    border: 1px solid #312e81;
    border-radius: 20px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.themes-notify-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.themes-notify-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.themes-notify-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.themes-notify-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.themes-code-box {
    background: #090d16;
    border: 1px solid #1f2937;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.themes-code-head {
    height: 32px;
    background: #0d121f;
    border-bottom: 1px solid #1f2937;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    gap: 0.4rem;
}

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

.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #10b981; }

.code-title {
    font-size: 0.7rem;
    font-family: monospace;
    color: #64748b;
    margin-left: 0.5rem;
}

.themes-code-content {
    margin: 0;
    padding: 1.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #38bdf8;
    overflow-x: auto;
}

/* Section 3: Explore Live Plugins */
.themes-plugins-cross-section {
    text-align: center;
    padding: 3rem;
    background: var(--surface-container-lowest, #ffffff);
    border: 1px solid var(--border-primary, #e2e8f0);
    border-radius: 20px;
}

[data-theme="dark"] .themes-plugins-cross-section {
    background: #111827;
    border-color: #1f2937;
}

.themes-cross-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.themes-cross-header p {
    font-size: 0.95rem;
    color: var(--on-surface-variant, #64748b);
    max-width: 600px;
    margin: 0 auto 2rem;
}

[data-theme="dark"] .themes-cross-header p {
    color: #94a3b8;
}

.themes-plugins-pills-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.themes-plugin-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: var(--surface-container-high, #f8fafc);
    border: 1px solid var(--border-primary, #e2e8f0);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--on-surface, #1e293b);
    text-decoration: none;
    transition: all 0.2s ease;
}

[data-theme="dark"] .themes-plugin-pill {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.themes-plugin-pill:hover {
    background: var(--primary, #6366f1);
    color: #ffffff;
    border-color: var(--primary, #6366f1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.themes-plugin-pill i {
    font-size: 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .themes-notify-card {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .themes-hero-title {
        font-size: 2rem;
    }
    .themes-trust-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    .themes-trust-sep {
        display: none;
    }
    .themes-plugins-cross-section {
        padding: 2rem 1.25rem;
    }
}
