/* Drawk Platform - Interactive App, Game, Web, API & Marketing Budget Calculator */

.bc-shell {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
}

.bc-shell.is-embed-shell {
    padding: 0.75rem;
    max-width: 100% !important;
}

.bc-header {
    margin-bottom: 1.5rem;
}

.bc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--theme-accent-color, #43e5fb);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.bc-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--theme-accent-color, #43e5fb);
    box-shadow: 0 0 8px var(--theme-accent-color, #43e5fb);
    animation: bcPulseDot 2.4s ease-in-out infinite;
}

@keyframes bcPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.7; }
}

.bc-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: var(--theme-text, #ffffff);
}

.bc-header p {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--theme-text-muted, #94a3b8);
    max-width: 900px;
    margin: 0;
}

.bc-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
    align-items: center;
}

/* Quick Presets Bar */
.bc-presets-bar {
    background: var(--theme-surface-bg, rgba(16, 22, 34, 0.86));
    border: 1px solid var(--theme-card-border, rgba(255, 255, 255, 0.16));
    border-radius: 0.85rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
}

.bc-presets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.bc-presets-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--theme-accent-secondary, #43e5fb);
}

.bc-autosave-pill {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--theme-tag-bg, rgba(98, 251, 67, 0.12));
    color: var(--theme-tag-text, #62fb43);
    border: 1px solid var(--theme-tag-border, rgba(98, 251, 67, 0.35));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bc-autosave-pill.is-popping {
    transform: scale(1.08);
}

.bc-presets-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bc-preset-btn {
    border: 1px solid var(--theme-button-border, rgba(255, 255, 255, 0.2));
    background: var(--theme-button-bg, rgba(255, 255, 255, 0.05));
    color: var(--theme-button-text, #edf8ff);
    border-radius: 0.55rem;
    padding: 0.48rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.bc-preset-btn:hover {
    transform: translateY(-2px);
    background: var(--theme-button-hover-bg, rgba(67, 229, 251, 0.14));
    border-color: var(--theme-button-hover-border, var(--theme-accent-color, #43e5fb));
    box-shadow: var(--theme-button-hover-glow, 0 4px 14px rgba(67, 229, 251, 0.22));
}

.bc-preset-btn.is-active {
    background: var(--theme-accent-color, #43e5fb);
    color: var(--theme-on-accent, #090d16);
    border-color: var(--theme-accent-color, #43e5fb);
}

/* Main Workspace Layout */
.bc-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .bc-workspace {
        grid-template-columns: 1fr;
    }
}

.bc-builder-col {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    min-width: 0;
}

.bc-card {
    background: var(--theme-surface-bg, rgba(15, 20, 31, 0.88));
    border: 1px solid var(--theme-card-border, rgba(255, 255, 255, 0.15));
    border-radius: 0.85rem;
    padding: 1.25rem;
    box-shadow: var(--theme-card-glow, 0 6px 24px rgba(0, 0, 0, 0.28));
}

.bc-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--theme-divider, rgba(255, 255, 255, 0.1));
}

.bc-card-head h2,
.bc-card-head h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--theme-text, #ffffff);
}

.bc-card-sub {
    margin: 0.25rem 0 0;
    font-size: 0.84rem;
    color: var(--theme-text-muted, #94a3b8);
    line-height: 1.4;
}

.bc-section-subtotal {
    font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 0.25rem 0.6rem;
    border-radius: 0.45rem;
    background: var(--theme-tag-bg, rgba(67, 229, 251, 0.12));
    color: var(--theme-tag-text, #43e5fb);
    border: 1px solid var(--theme-tag-border, rgba(67, 229, 251, 0.3));
}

/* Form Controls & Grids */
.bc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.bc-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

@media (max-width: 720px) {
    .bc-grid-2,
    .bc-grid-3 {
        grid-template-columns: 1fr;
    }
}

.bc-field {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.bc-field-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-text, #edf8ff);
}

.bc-val-pill {
    font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.12rem 0.48rem;
    border-radius: 0.35rem;
    background: var(--theme-tag-bg, rgba(67, 229, 251, 0.12));
    color: var(--theme-tag-text, #43e5fb);
    border: 1px solid var(--theme-tag-border, rgba(67, 229, 251, 0.28));
}

.bc-input,
.bc-select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--theme-surface-border, rgba(255, 255, 255, 0.2));
    background: var(--theme-surface-elevated, #0b101b);
    color: var(--theme-text, #edf8ff);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bc-input:focus,
.bc-select:focus {
    border-color: var(--theme-accent-color, #43e5fb);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-accent-color, #43e5fb) 25%, transparent);
}

.bc-range {
    width: 100%;
    accent-color: var(--theme-accent-color, #43e5fb);
    cursor: pointer;
}

.bc-hint {
    font-size: 0.76rem;
    color: var(--theme-text-muted, #8fa3bd);
}

/* Segmented Option Cards (Radio/Toggle Tiles) */
.bc-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.65rem;
}

.bc-choice-tile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid var(--theme-card-border, rgba(255, 255, 255, 0.16));
    background: var(--theme-surface-elevated, rgba(10, 14, 24, 0.75));
    color: var(--theme-text, #edf8ff);
    cursor: pointer;
    text-align: left;
    transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.bc-choice-tile:hover {
    transform: translateY(-2px);
    border-color: var(--theme-accent-secondary, #43e5fb);
}

.bc-choice-tile.is-selected {
    border-color: var(--theme-accent-color, #62fb43);
    background: color-mix(in srgb, var(--theme-accent-color, #62fb43) 12%, var(--theme-surface-elevated, #0b101b));
    box-shadow: 0 0 0 1px var(--theme-accent-color, #62fb43), var(--theme-button-hover-glow, 0 4px 16px rgba(98, 251, 67, 0.18));
}

.bc-choice-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--theme-text, #ffffff);
}

.bc-choice-meta {
    font-size: 0.75rem;
    color: var(--theme-text-muted, #94a3b8);
    line-height: 1.35;
}

/* Feature Section Tabs (App / Game / Web / API / Marketing) */
.bc-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.bc-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 0.55rem;
    border: 1px solid var(--theme-button-border, rgba(255, 255, 255, 0.18));
    background: var(--theme-button-bg, rgba(255, 255, 255, 0.05));
    color: var(--theme-button-text, #e2e8f0);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.bc-tab-btn:hover {
    transform: translateY(-1px);
    border-color: var(--theme-accent-color, #43e5fb);
}

.bc-tab-btn.is-active {
    background: var(--theme-accent-color, #43e5fb);
    color: var(--theme-on-accent, #0a0f18);
    border-color: var(--theme-accent-color, #43e5fb);
}

.bc-tab-count {
    font-size: 0.72rem;
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    color: inherit;
}

.bc-tab-panel {
    display: none;
}

.bc-tab-panel.is-active {
    display: block;
    animation: bcFadeSlide 0.2s ease;
}

@keyframes bcFadeSlide {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Feature Toggle Rows */
.bc-feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.65rem;
}

.bc-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid var(--theme-card-border, rgba(255, 255, 255, 0.14));
    background: var(--theme-surface-elevated, rgba(9, 13, 22, 0.75));
    cursor: pointer;
    transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.14s ease, background 0.14s ease;
}

.bc-feature-item:hover {
    border-color: var(--theme-accent-secondary, #43e5fb);
    transform: translateY(-1px);
}

.bc-feature-item.is-checked {
    border-color: var(--theme-accent-color, #62fb43);
    background: color-mix(in srgb, var(--theme-accent-color, #62fb43) 10%, var(--theme-surface-elevated, #090d16));
}

.bc-feature-check {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--theme-accent-color, #62fb43);
    cursor: pointer;
}

.bc-feature-body {
    flex: 1;
    min-width: 0;
}

.bc-feature-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.45rem;
}

.bc-feature-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--theme-text, #ffffff);
}

.bc-feature-cost {
    font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--theme-accent-secondary, #43e5fb);
    white-space: nowrap;
}

.bc-feature-desc {
    margin: 0.22rem 0 0;
    font-size: 0.77rem;
    line-height: 1.38;
    color: var(--theme-text-muted, #94a3b8);
}

/* Extra Inline Multipliers (e.g. Locale Count, Data Levels Tier) */
.bc-subcontrol-strip {
    margin-top: 0.85rem;
    padding: 0.8rem 0.95rem;
    border-radius: 0.6rem;
    border: 1px dashed var(--theme-card-border, rgba(255, 255, 255, 0.2));
    background: var(--theme-surface-elevated, rgba(12, 16, 26, 0.6));
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

/* Sticky Summary & Export Column */
.bc-summary-col {
    position: sticky;
    top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

@media (max-width: 1024px) {
    .bc-summary-col {
        position: static;
    }
}

.bc-total-card {
    border-color: var(--theme-accent-color, rgba(67, 229, 251, 0.5));
    position: relative;
    overflow: hidden;
}

.bc-total-eyebrow {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-accent-secondary, #43e5fb);
    margin-bottom: 0.3rem;
}

.bc-total-range {
    font-size: 1.95rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--theme-text, #ffffff);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.bc-total-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.83rem;
    color: var(--theme-text-muted, #cbd5e1);
    margin-bottom: 0.95rem;
}

.bc-total-meta strong {
    color: var(--theme-accent-color, #62fb43);
}

/* Breakdown Bars */
.bc-bars-group {
    margin: 0.85rem 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--theme-divider, rgba(255, 255, 255, 0.1));
}

.bc-bars-title {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--theme-text-muted, #94a3b8);
    margin-bottom: 0.55rem;
}

.bc-bar-row {
    margin-bottom: 0.5rem;
}

.bc-bar-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.79rem;
    margin-bottom: 0.2rem;
    color: var(--theme-text, #e2e8f0);
}

.bc-bar-track {
    height: 7px;
    border-radius: 999px;
    background: var(--theme-surface-elevated, rgba(255, 255, 255, 0.08));
    overflow: hidden;
}

.bc-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--theme-accent-color, #43e5fb);
    transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.bc-bar-fill.is-secondary {
    background: var(--theme-accent-secondary, #62fb43);
}

/* Action & Export Buttons */
.bc-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.bc-action-btn {
    border: 1px solid var(--theme-button-border, rgba(255, 255, 255, 0.2));
    background: var(--theme-button-bg, rgba(255, 255, 255, 0.06));
    color: var(--theme-button-text, #edf8ff);
    border-radius: 0.5rem;
    padding: 0.52rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease, border-color 0.15s ease;
}

.bc-action-btn:hover {
    transform: translateY(-2px);
    background: var(--theme-button-hover-bg, rgba(67, 229, 251, 0.14));
    border-color: var(--theme-button-hover-border, var(--theme-accent-color, #43e5fb));
}

.bc-action-btn.is-primary {
    grid-column: 1 / -1;
    background: var(--theme-accent-color, #62fb43);
    color: var(--theme-on-accent, #090e17);
    border-color: var(--theme-accent-color, #62fb43);
    padding: 0.68rem 0.9rem;
    font-size: 0.88rem;
}

.bc-action-btn.is-primary:hover {
    filter: brightness(1.06);
}

/* Saved Estimates List */
.bc-save-row {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.bc-saved-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 220px;
    overflow-y: auto;
}

.bc-saved-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.52rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid var(--theme-card-border, rgba(255, 255, 255, 0.12));
    background: var(--theme-surface-elevated, rgba(9, 13, 22, 0.72));
}

.bc-saved-info {
    min-width: 0;
    flex: 1;
}

.bc-saved-name {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--theme-text, #ffffff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bc-saved-meta {
    font-size: 0.73rem;
    color: var(--theme-text-muted, #94a3b8);
}

.bc-saved-btns {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}

.bc-mini-btn {
    padding: 0.24rem 0.5rem;
    border-radius: 0.35rem;
    border: 1px solid var(--theme-button-border, rgba(255, 255, 255, 0.2));
    background: var(--theme-button-bg, rgba(255, 255, 255, 0.06));
    color: var(--theme-button-text, #edf8ff);
    font-size: 0.73rem;
    font-weight: 600;
    cursor: pointer;
}

.bc-mini-btn:hover {
    border-color: var(--theme-accent-color, #43e5fb);
}

.bc-mini-btn.is-danger:hover {
    border-color: #f87171;
    color: #fca5a5;
}

/* Celebratory Sparkles */
.bc-sparkle-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.bc-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: bcSparkleFly 750ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bcSparkleFly {
    0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { opacity: 0; transform: translate(var(--dx, 40px), var(--dy, -60px)) scale(0.2) rotate(220deg); }
}

.bc-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: var(--theme-surface-elevated, #0f172a);
    color: var(--theme-accent-color, #62fb43);
    border: 1px solid var(--theme-accent-color, #62fb43);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bc-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Print / PDF Clean Report */
@media print {
    .site-nav,
    .site-nav-placeholder,
    .site-floating-dock,
    .bottom-callouts-section,
    footer,
    .bc-header-actions,
    .bc-presets-bar,
    .bc-actions-grid,
    .bc-save-row,
    .bc-saved-btns,
    #bc-sound-toggle {
        display: none !important;
    }

    body,
    .bc-card,
    .bc-feature-item,
    .bc-choice-tile {
        background: #ffffff !important;
        color: #111827 !important;
        border-color: #d1d5db !important;
        box-shadow: none !important;
    }

    .bc-workspace {
        grid-template-columns: 1fr !important;
    }

    .bc-summary-col {
        position: static !important;
    }
}
