/* File: /test/recipeWorkspaceTheme.css
   Version inherited from BW_VERSION in openRecipe7.php
*/

* {
    box-sizing: border-box;
}

:root {
    --paper: #fffaf2;
    --paper-2: #f1e3cf;
    --paper-3: #ead7bb;
    --red: #c92f2f;
    --red-dark: #982323;
    --gold: #d6a94d;
    --ink: #292722;
    --muted: #70685d;
    --line: rgba(77, 58, 38, .26);
    --shadow: 0 14px 34px rgba(45, 33, 21, .16);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(201, 47, 47, .09), transparent 30rem),
        radial-gradient(circle at 90% 6%, rgba(214, 169, 77, .14), transparent 32rem),
        linear-gradient(180deg, #d9cbb8 0%, #cdbda8 52%, #c3b39f 100%);
    font-family: Arial, Helvetica, sans-serif;
}

button,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.siteShell {
    width: min(1500px, calc(100% - 28px));
    margin: 0 auto;
}

.compactHeader {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(31, 27, 25, .97);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(14px);
}

.compactHeaderInner {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.compactHeaderInner::-webkit-scrollbar {
    display: none;
}

.compactBrand {
    flex: 0 0 auto;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 900;
    font-size: 1.28rem;
    text-decoration: none;
    white-space: nowrap;
}

.compactBrandMain {
    color: white;
}

.compactBrandNoAds {
    color: #e43a3a;
}

.compactDivider {
    width: 1px;
    height: 25px;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, .18);
}

.compactNav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}

.compactNav a,
.compactRecipeTitle {
    padding: 8px 10px;
    border-radius: 9px;
    text-decoration: none;
    white-space: nowrap;
    font-size: .86rem;
    font-weight: 800;
}

.compactNav a {
    color: #eee6dc;
}

.compactNav a:hover {
    background: rgba(255, 255, 255, .08);
}

.compactRecipeTitle {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffe3a4;
    background: rgba(214, 169, 77, .09);
}

.compactMeta {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

.compactMeta span {
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: #ddd4c9;
    font-size: .75rem;
    font-weight: 800;
    white-space: nowrap;
}

.compactSpacer {
    flex: 1;
}

.accountButton {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .14);
    background: var(--paper);
    color: var(--ink);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.workspaceToolbar {
    position: sticky;
    top: 58px;
    z-index: 40;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 14px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(235, 220, 198, .96);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(45, 33, 21, .12);
}

.toolbarGroup {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.toolbarSpacer {
    flex: 1;
}

.toolbarLabel {
    font-size: .75rem;
    font-weight: 900;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 800;
}

.controlPrimary {
    background: var(--red);
    color: white;
    border-color: var(--red-dark);
}

.workspace {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(214, 197, 173, .72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}

.panel {
    overflow: hidden;
    border: 1px solid rgba(77, 58, 38, .32);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 250, 242, .99),
            rgba(244, 233, 216, .99)
        );
    box-shadow:
        0 10px 24px rgba(54, 38, 23, .13),
        inset 0 0 0 1px rgba(255, 255, 255, .42);
}

.panelHeader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, #f6e9d5, #ead8bd);
    user-select: none;
}

.panelTitle {
    flex: 1;
    min-width: 0;
    font-weight: 900;
}

.panelActions {
    display: flex;
    gap: 5px;
}

.panelButton {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(77, 58, 38, .24);
    border-radius: 10px;
    background: rgba(255, 255, 255, .68);
    color: var(--ink);
    font-weight: 900;
}

.panelButton:hover {
    background: white;
}

.panelBody {
    padding: 15px;
}

.panel.is-minimized .panelBody {
    display: none;
}

.ingredientList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.ingredientList li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .58);
    border: 1px solid rgba(77, 58, 38, .14);
    line-height: 1.35;
}

.ingredientList input {
    margin-top: 3px;
}

.stepViewRow {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.stepViewToggle {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, .68);
    color: var(--ink);
    font-size: .8rem;
    font-weight: 900;
}

.stepProgress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}

.stepProgressBar {
    flex: 1;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2d5c2;
}

.stepProgressFill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--red), var(--gold));
}

.stepCounter {
    font-size: .84rem;
    color: var(--muted);
    font-weight: 900;
    white-space: nowrap;
}

.stepCard {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(20px, 4vw, 42px);
    border-radius: 15px;
    background:
        radial-gradient(circle at 100% 0%, rgba(214, 169, 77, .14), transparent 17rem),
        rgba(255, 255, 255, .58);
    border: 1px solid var(--line);
}

.stepNumber {
    color: var(--red);
    font-size: .8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.stepText {
    margin: 9px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 3.5vw, 2.8rem);
    line-height: 1.16;
}

.stepNav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 13px;
}

.stepNav button {
    min-height: 52px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-weight: 900;
    background: #eee4d6;
}

.stepNav button:last-child {
    background: linear-gradient(180deg, #d53a3a, #bf2929);
    color: white;
    border-color: var(--red-dark);
}

.stepNav button:disabled {
    opacity: .45;
    cursor: default;
}

.allSteps {
    display: none;
    gap: 10px;
}

.allSteps.is-visible {
    display: grid;
}

.allStep {
    padding: 14px 16px;
    border: 1px solid rgba(77, 58, 38, .20);
    border-radius: 12px;
    background: rgba(255, 255, 255, .58);
    cursor: pointer;
}

.allStep.is-current {
    border-color: rgba(201, 47, 47, .55);
    box-shadow: 0 0 0 2px rgba(201, 47, 47, .08);
}

.allStepNumber {
    color: var(--red);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.1px;
}

.allStepText {
    margin: 5px 0 0;
    line-height: 1.45;
}

.steps-all-mode .stepProgress,
.steps-all-mode .stepCard,
.steps-all-mode .stepNav {
    display: none;
}

.videoFrame {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
    border-radius: 12px;
    background: #171513;
}

.mediaCaption {
    margin: 10px 2px 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
}

.toolGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.toolCard {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .58);
}

.toolCard strong {
    display: block;
    margin-bottom: 4px;
}

.toolCard span {
    color: var(--muted);
    font-size: .85rem;
}

.version {
    padding: 20px 0 32px;
    color: #4d443a;
    font-size: .78rem;
    text-align: right;
}

@media (max-width: 980px) {
    .toolGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .siteShell {
        width: min(100% - 14px, 1500px);
    }

    .compactHeaderInner {
        min-height: 52px;
        gap: 6px;
    }

    .compactBrand {
        font-size: 1.05rem;
    }

    .compactNav a {
        padding: 7px 8px;
        font-size: .8rem;
    }

    .compactRecipeTitle {
        max-width: 230px;
        font-size: .8rem;
    }

    .compactMeta {
        display: none;
    }

    .workspaceToolbar {
        top: 52px;
    }
}

@media (max-width: 650px) {
    .toolbarSpacer {
        display: none;
    }

    .toolGrid {
        grid-template-columns: 1fr 1fr;
    }

    .stepCard {
        min-height: 220px;
    }
}