/*
 * Year theme "Wilde Westen" (config/year-themes.php). Only fills the slots of the scrapbook design:
 * sand-coloured paper, kraft tape, a lasso, a rope path, a sheriff star, a wanted poster with nails
 * and a wooden sign. Layout, texts and forms stay the same. Checked by tests/Feature/YearThemeTest.php.
 * Drawings: resources/views/year-themes/wild-west/.
 */

html[data-year-theme="wild-west"] {
    --paper: #F7EFDF;
    --paper-line: #EEE3CC;
    --tape: #B98A4F8C;
    --marker: #E8A93380;
    --title-mark: #9A6332;
    --arrow: #B5562B;
    --sticker-1: #D99A1E;   /* sheriff star */
    --sticker-2: #3E7D3B;   /* cactus */
    --sticker-3: #7C858D;   /* horseshoe */
    --sticker-4: #8A5A2E;   /* cowboy hat */
    --badge-bg: #E8B53A;
    --badge-fg: #3B2412;
    --badge-edge: #B8841F;
    --note-bg: #F1E2C2;
    --note-edge: #A07446;
    --nail: #5B5F63;
    --theme-badge-bg: #6B4226;
    --theme-badge-fg: #FBF3E2;
    --wood-grain: #5C3820;
    --trail: #8B5A2B;
    --trail-dash: 12 9;
    --trail-width: 4;
    --trail-style: dashed;
    --icon-accent: #F2B33D;
    --ww-gold: #D99A1E;
    --ww-cactus: #3E7D3B;
    --ww-steel: #7C858D;
    --ww-leather: #8A5A2E;
    --ww-boot: #9C4A26;
    --ww-wood: #8B5A2B;
    --ww-straw: #B08A4F;
    --ww-lantern: #B23A2E;
    --ww-flame: #E0662B;
    --ww-rock: #C8693A;
}

/* Edition sticker as a sheriff star */
html[data-year-theme="wild-west"] .edition-sticker {
    width: 112px; height: 112px; rotate: -8deg; border-radius: 0; box-shadow: none;
    clip-path: polygon(50% 0%, 65.5% 23.2%, 93.3% 25%, 81% 50%, 93.3% 75%, 65.5% 76.8%, 50% 100%, 34.5% 76.8%, 6.7% 75%, 19% 50%, 6.7% 25%, 34.5% 23.2%);
    background: radial-gradient(circle, var(--badge-bg) 0 40%, var(--badge-edge) 41% 44%, var(--badge-bg) 45%);
}

/* Theme name on a wooden sign, with two nails */
html[data-year-theme="wild-west"] .year-theme-badge {
    rotate: -3deg; border-radius: 4px; border-color: var(--wood-grain); padding-inline: 1.6rem;
    background: repeating-linear-gradient(180deg, var(--theme-badge-bg) 0 9px, var(--wood-grain) 9px 10px);
}
html[data-year-theme="wild-west"] .year-theme-badge::before,
html[data-year-theme="wild-west"] .year-theme-badge::after {
    content: ''; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--nail);
}
html[data-year-theme="wild-west"] .year-theme-badge::before { left: 7px; }
html[data-year-theme="wild-west"] .year-theme-badge::after { right: 7px; }

/* Colours of the drawings (resources/views/year-themes/wild-west/icons/) */
html[data-year-theme="wild-west"] .icon-star { color: var(--ww-gold); }
html[data-year-theme="wild-west"] .icon-cactus { color: var(--ww-cactus); }
html[data-year-theme="wild-west"] .icon-horseshoe { color: var(--ww-steel); }
html[data-year-theme="wild-west"] .icon-hat { color: var(--ww-leather); }
html[data-year-theme="wild-west"] .icon-boot { color: var(--ww-boot); }
html[data-year-theme="wild-west"] .icon-wagon-wheel { color: var(--ww-wood); }
html[data-year-theme="wild-west"] .icon-tumbleweed { color: var(--ww-straw); }
html[data-year-theme="wild-west"] .icon-lantern { color: var(--ww-lantern); }
html[data-year-theme="wild-west"] .icon-campfire { color: var(--ww-flame); }
html[data-year-theme="wild-west"] .icon-mesa { color: var(--ww-rock); }

/* Group-code note as a wanted poster, nailed instead of taped */
html[data-year-theme="wild-west"] .code-note { rotate: -1deg; border: 2px solid var(--note-edge); border-radius: 2px; }
html[data-year-theme="wild-west"] .code-note .tape { display: none; }
html[data-year-theme="wild-west"] .code-note::before,
html[data-year-theme="wild-west"] .code-note::after {
    content: ''; position: absolute; top: 10px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--nail); box-shadow: 1px 2px 0 var(--note-edge);
}
html[data-year-theme="wild-west"] .code-note::before { left: 12px; }
html[data-year-theme="wild-west"] .code-note::after { right: 12px; }

/* The lasso is a thicker rope */
html[data-year-theme="wild-west"] .circled path { stroke-width: 6; }

/* The drawings need a bit more room than the default shapes */
html[data-year-theme="wild-west"] .sticker { width: 68px; height: 68px; }
html[data-year-theme="wild-west"] .sticker-1 { width: 74px; height: 74px; }
