/*
Theme Name: WebbiverseMVP
Theme URI: https://webbiverse.com
Author: Webbiverse
Author URI: https://webbiverse.com
Description: Zero-bloat theme for WebbiverseMVP mini-site pages — modern dark design with bold orange accents. Serves the portal SPA and provides base styles for server-rendered business sites.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webbiverse-sites-theme
*/

/* ── MVP Overrides — island-core provides a11y, html base ──── */

/* Aggressive margin/padding reset for mini-site pages */
*, *::before, *::after {
    margin: 0;
    padding: 0;
}

/* MVP links inherit text color for card-based layout */
a { color: inherit; text-decoration: none; }

/* ── Portal SPA Layout ─────────────────────────────────────────── */
.mvp-body {
    background: var(--wbv-bg, #0a0e1a);
    color: var(--wbv-text, #ffffff);
    font-family: var(--wbv-font, Inter, system-ui, -apple-system, sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

.mvp-body.mvp-spa {
    background: linear-gradient(180deg, #071020 0%, var(--wbv-bg, #0a0e1a) 40%);
}

/* ── Portal Landing / Marketing Pages ──────────────────────────── */
.mvp-landing {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 2.5rem 1.25rem 3rem;
}

.mvp-landing-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
}

/* ── Section Header Utility ────────────────────────────────────── */
.mvp-section-header {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.5;
    padding: 0.75rem 0 0.25rem;
    color: var(--wbv-text, #fff);
}

/* ── Portal Navigation ─────────────────────────────────────────── */
.mvp-portal-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.75rem 0;
}

.mvp-portal-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mvp-portal-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--wbv-text, #fff);
    text-decoration: none;
}

.mvp-portal-brand img {
    height: 36px;
    width: auto;
    border-radius: 6px;
}

.mvp-portal-brand-accent {
    color: var(--wbv-accent, #e65616);
    font-weight: 800;
}

.mvp-portal-nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.mvp-portal-nav-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.mvp-portal-nav-links a:hover {
    color: var(--wbv-accent, #e65616);
}

/* ── Portal Hero ───────────────────────────────────────────────── */
.mvp-portal-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, rgba(230,86,22,0.08) 0%, transparent 60%);
}

.mvp-portal-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.mvp-portal-hero h1 span {
    color: var(--wbv-accent, #e65616);
}

.mvp-portal-hero p {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.mvp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    border-radius: var(--wbv-radius, 12px);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.mvp-btn-primary {
    background: var(--wbv-accent, #e65616);
    color: #fff;
}

.mvp-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--wbv-accent-soft, rgba(230,86,22,0.25));
    text-decoration: none;
}

.mvp-btn-secondary {
    background: var(--wbv-surface-hover, rgba(255,255,255,0.06));
    color: var(--wbv-text, #fff);
    border: 1px solid var(--wbv-border, rgba(255,255,255,0.1));
}

.mvp-btn-secondary:hover {
    border-color: var(--wbv-accent, #e65616);
    color: var(--wbv-accent, #e65616);
    text-decoration: none;
}

/* ── Feature Cards (pricing, sites grid) ───────────────────────── */
.mvp-card {
    background: var(--wbv-surface-hover, rgba(255,255,255,0.04));
    backdrop-filter: blur(var(--wbv-glass-blur, 12px));
    -webkit-backdrop-filter: blur(var(--wbv-glass-blur, 12px));
    border: 1px solid var(--wbv-border, rgba(255,255,255,0.08));
    border-radius: var(--wbv-radius, 12px);
    padding: 2rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mvp-card:hover {
    border-color: var(--wbv-accent, #e65616);
    transform: translateY(-4px);
    box-shadow: var(--wbv-shadow, 0 8px 32px rgba(0,0,0,0.3)), 0 0 24px var(--wbv-accent-soft, rgba(230,86,22,0.15));
}

.mvp-card-accent {
    border-color: var(--wbv-accent, #e65616);
    position: relative;
    overflow: hidden;
}

.mvp-card-accent::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--wbv-accent-soft, rgba(230,86,22,0.15)) 0%, transparent 50%);
    pointer-events: none;
}

/* ── Pricing Tiers ─────────────────────────────────────────────── */
.mvp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.mvp-pricing-tier {
    text-align: center;
    padding: 2.5rem 2rem;
}

.mvp-pricing-tier .tier-name {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wbv-accent, #e65616);
    margin-bottom: 0.75rem;
}

.mvp-pricing-tier .tier-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.mvp-pricing-tier .tier-price span {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.6;
}

.mvp-pricing-tier .tier-features {
    list-style: none;
    padding: 1.5rem 0;
    border-top: 1px solid var(--wbv-border, rgba(255,255,255,0.08));
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mvp-pricing-tier .tier-features li {
    font-size: 0.875rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.mvp-pricing-tier .tier-features li::before {
    content: '✓';
    color: var(--wbv-accent, #e65616);
    font-weight: 700;
}

/* ── Dashboard Layout ──────────────────────────────────────────── */
.mvp-dash {
    display: flex;
    min-height: 100vh;
}

.mvp-dash-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--wbv-border, rgba(255,255,255,0.06));
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mvp-dash-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wbv-text-muted, rgba(255,255,255,0.5));
    transition: all 0.15s;
}

.mvp-dash-sidebar a:hover,
.mvp-dash-sidebar a.active {
    background: var(--wbv-surface-hover, rgba(255,255,255,0.06));
    color: var(--wbv-text, #fff);
}

.mvp-dash-sidebar a.active {
    color: var(--wbv-accent, #e65616);
}

.mvp-dash-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.mvp-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--wbv-border, rgba(255,255,255,0.06));
}

.mvp-dash-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ── Site Cards (My Sites grid) ────────────────────────────────── */
.mvp-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.mvp-site-card {
    position: relative;
    overflow: hidden;
}

.mvp-site-card-thumb {
    width: 100%;
    height: 160px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--wbv-radius, 12px) var(--wbv-radius, 12px) 0 0;
    object-fit: cover;
}

.mvp-site-card-body {
    padding: 1.25rem;
}

.mvp-site-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.mvp-site-card-body .mvp-site-slug {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-bottom: 0.75rem;
}

.mvp-site-card-body .mvp-site-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    opacity: 0.6;
}

.mvp-site-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mvp-site-card-badge.published {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}

.mvp-site-card-badge.draft {
    background: rgba(234,179,8,0.15);
    color: #eab308;
}

/* ── Auth Forms (login, register, forgot-password) ─────────────── */
.mvp-auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.mvp-auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

.mvp-auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.mvp-auth-card .mvp-auth-subtitle {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
    margin-bottom: 2rem;
}

.mvp-auth-card .mvp-auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: var(--wbv-text, #fff);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mvp-auth-card .mvp-auth-google:hover {
    border-color: var(--wbv-accent, #e65616);
}

.mvp-auth-divider {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.4;
    margin: 1.5rem 0;
    position: relative;
}

.mvp-auth-divider::before,
.mvp-auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.mvp-auth-divider::before { left: 0; }
.mvp-auth-divider::after { right: 0; }

.mvp-auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.mvp-auth-field label {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.7;
}

.mvp-auth-field input {
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--wbv-text, #fff);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.mvp-auth-field input:focus {
    outline: none;
    border-color: var(--wbv-accent, #e65616);
}

.mvp-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    opacity: 0.6;
}

.mvp-auth-footer a {
    color: var(--wbv-accent, #e65616);
    font-weight: 500;
}

/* ── Editor (site builder) ─────────────────────────────────────── */
.mvp-editor {
    display: flex;
    height: 100vh;
}

.mvp-editor-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--wbv-border, rgba(255,255,255,0.06));
    overflow-y: auto;
    padding: 1rem;
}

.mvp-editor-preview {
    flex: 1;
    background: var(--wbv-bg, #0a0e1a);
    overflow: auto;
}

.mvp-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--wbv-border, rgba(255,255,255,0.06));
    background: rgba(0,0,0,0.4);
}

/* ── Section Blocks ────────────────────────────────────────────── */
.mvp-section-block {
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: grab;
    transition: all 0.15s;
}

.mvp-section-block:hover {
    border-color: var(--wbv-accent, #e65616);
    background: rgba(255,255,255,0.05);
}

.mvp-section-block .block-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--wbv-accent, #e65616);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.mvp-section-block .block-label {
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ── Stats / Analytics Widgets ─────────────────────────────────── */
.mvp-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.mvp-stat-card {
    padding: 1.25rem;
}

.mvp-stat-card .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.mvp-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--wbv-accent, #e65616);
}

.mvp-stat-card .stat-change {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.6;
}

/* ── Settings Page ─────────────────────────────────────────────── */
.mvp-settings {
    max-width: 640px;
}

.mvp-settings-group {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--wbv-border, rgba(255,255,255,0.06));
}

.mvp-settings-group h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.mvp-settings-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.7;
    margin-bottom: 0.375rem;
}

.mvp-settings-group input,
.mvp-settings-group select,
.mvp-settings-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--wbv-text, #fff);
    font-size: 0.875rem;
    font-family: inherit;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.mvp-settings-group input:focus,
.mvp-settings-group select:focus,
.mvp-settings-group textarea:focus {
    outline: none;
    border-color: var(--wbv-accent, #e65616);
}

/* ── Powered By Badge ──────────────────────────────────────────── */
.mvp-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--wbv-text-muted, rgba(255,255,255,0.4));
    opacity: 0.6;
    text-align: center;
}

.mvp-footer a {
    color: var(--wbv-text-muted, rgba(255,255,255,0.4));
    transition: color 0.2s;
}

.mvp-footer a:hover {
    color: var(--wbv-accent, #e65616);
}

.mvp-footer .mvp-brand-accent {
    color: var(--wbv-accent, #e65616);
    font-weight: 600;
}

/* ── Toast / Flash Messages ────────────────────────────────────── */
.mvp-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: mvp-toast-in 0.3s ease-out;
}

.mvp-toast-success {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    color: #22c55e;
}

.mvp-toast-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
}

/* ── 404 Page ──────────────────────────────────────────────────── */
.mvp-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: var(--wbv-bg, #0a0e1a);
    text-align: center;
}

.mvp-404-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--wbv-accent, #e65616);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px var(--wbv-accent-soft, rgba(230,86,22,0.25));
}

.mvp-404-message {
    font-size: 1.125rem;
    color: var(--wbv-text-muted, rgba(255,255,255,0.4));
    margin-bottom: 2rem;
}

.mvp-404-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--wbv-accent, #e65616);
    color: #fff;
    border-radius: var(--wbv-radius, 12px);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.mvp-404-cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--wbv-accent-soft, rgba(230,86,22,0.25));
    text-decoration: none;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .mvp-dash {
        flex-direction: column;
    }

    .mvp-dash-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--wbv-border, rgba(255,255,255,0.06));
        padding: 0.75rem;
    }

    .mvp-editor {
        flex-direction: column;
    }

    .mvp-editor-sidebar {
        width: 100%;
        height: 45vh;
        border-right: none;
        border-bottom: 1px solid var(--wbv-border, rgba(255,255,255,0.06));
    }

    .mvp-portal-nav-links {
        display: none;
    }

    .mvp-pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mvp-landing {
        padding: 2rem 1rem 2.5rem;
    }

    .mvp-portal-hero h1 {
        font-size: 1.75rem;
    }

    .mvp-auth-card {
        padding: 1.5rem;
    }

    .mvp-404-code {
        font-size: 4rem;
    }
}

/* ── Animation ─────────────────────────────────────────────────── */
@keyframes mvp-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes mvp-toast-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mvp-landing-container > * {
    animation: mvp-fade-in 0.4s ease-out forwards;
}

.mvp-pricing-grid > .mvp-card {
    opacity: 0;
    animation: mvp-fade-in 0.4s ease-out forwards;
}

.mvp-pricing-grid > .mvp-card:nth-child(1) { animation-delay: 0.1s; }
.mvp-pricing-grid > .mvp-card:nth-child(2) { animation-delay: 0.15s; }
.mvp-pricing-grid > .mvp-card:nth-child(3) { animation-delay: 0.2s; }

/* ── Utility Classes ───────────────────────────────────────────── */
.mvp-text-center { text-align: center; }
.mvp-text-muted { opacity: 0.6; }
.mvp-mt-1 { margin-top: 0.5rem; }
.mvp-mt-2 { margin-top: 1rem; }
.mvp-mt-3 { margin-top: 1.5rem; }
.mvp-mt-4 { margin-top: 2rem; }
.mvp-mb-1 { margin-bottom: 0.5rem; }
.mvp-mb-2 { margin-bottom: 1rem; }
.mvp-mb-3 { margin-bottom: 1.5rem; }
.mvp-mb-4 { margin-bottom: 2rem; }
.mvp-gap-1 { gap: 0.5rem; }
.mvp-gap-2 { gap: 1rem; }
.mvp-flex { display: flex; }
.mvp-flex-col { flex-direction: column; }
.mvp-items-center { align-items: center; }
.mvp-justify-between { justify-content: space-between; }
.mvp-grid { display: grid; }
.mvp-w-full { width: 100%; }
