/* === 1. Base & Variables === */
* { box-sizing: border-box; }
:root { --vw-scale: clamp(0.6, calc(100vw / 536px), 1); --h-scale: calc(0.375 + 0.625 * var(--vw-scale)); --text-scale: calc(0.75 + 0.25 * var(--vw-scale)); --padding-factor: clamp(0.15, calc((100vw / 728px - 0.43956) * 1.5166 + 0.15), 1); }
body { margin: 0; font-family: Arial,sans-serif; background: #fff; padding: 0 calc(24px * var(--vw-scale)) 0 calc(24px * var(--vw-scale)); color: #333; min-height: 100vh; }
input:focus, select:focus, textarea:focus, button:focus { outline: none; box-shadow: none; }
.tray input::selection { background: transparent; }
h1 { font-size: calc(26px * var(--h-scale)); line-height: 1.25; margin: 0 0 12px 0; color: #333; font-weight: 700; }
h2 { font-size: calc(22px * var(--h-scale)); line-height: 1.3; margin: 24px 0 12px 0; color: #333; }
h3 { font-size: calc(18px * var(--h-scale)); line-height: 1.35; margin: 20px 0 10px 0; color: #333; }

/* === 2. Layout & Logo === */
.wrapper { max-width: 728px; min-width: 280px; margin: 0 auto; }
.logo { padding: calc(20px * var(--vw-scale)) 0 calc(20px * var(--vw-scale)) 0; font-size: calc(36px * var(--vw-scale)); font-weight: 500; display: flex; align-items: center; gap: calc(6px * var(--vw-scale)); position: relative; width: 100%; }
.logo-img { width: calc(36px * var(--h-scale)); aspect-ratio: 1; display: block; margin-top: -4px; }
.scrabble { color: #333; line-height: 1; }
.bot { color: #0066FF; font-weight: 600; line-height: 1; }
.divider { height: 1px; background: #e5e5e5; width: 100%; margin: 0; }

/* === 3. Controls & Hamburger Menu === */
.header-controls { margin-left: auto; display: flex; align-items: center; height: 100%; }
#menu-toggle { display: none; }
.hamburger-wrapper { position: relative; display: flex; align-items: center; }
.hamburger-menu { display: none; position: absolute; top: 32px; right: 0; width: 240px; max-width: 85vw; background: #fff; padding: 10px 20px; border-radius: calc(10px * var(--vw-scale)); border: 1px solid #e5e5e5; box-shadow: 0 4px 10px rgba(0,0,0,.08); z-index: 9999; }
#menu-toggle:checked~.hamburger-menu { display: block; }
.hamburger-menu ul { list-style: none; margin: 0; padding: 0; }
.hamburger-menu li { margin-bottom: 8px; font-size: calc(16px * var(--text-scale)); padding: 6px; cursor: pointer; color: #333; }
.hamburger-menu li:last-child { margin-bottom: 0; }
.hamburger-menu a:hover { background: rgba(0,122,255,.08); border-radius: calc(5px * var(--vw-scale)); }
.hamburger-menu a { color: #333; text-decoration: none; display: block; }
.hamburger { display: flex; flex-direction: column; justify-content: space-between; width: 22px; height: 14px; cursor: pointer; padding: 0; z-index: 10; margin: 0; }
.hamburger span { display: block; height: 2px; width: 100%; background-color: #777; border-radius: 2px; transition: .3s; }
#menu-toggle:checked+.hamburger span { background-color: #0066FF; }
#menu-toggle:checked+.hamburger span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
#menu-toggle:checked+.hamburger span:nth-child(2) { opacity: 0; }
#menu-toggle:checked+.hamburger span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* === 4. Tiles & Inputs === */
.tiles { display: flex; justify-content: center; gap: calc(8px * var(--vw-scale)); margin: calc(30px * var(--vw-scale)) 0; }
.tile { width: calc(64px * var(--vw-scale)); aspect-ratio: 1; border: 1px solid #d0d0d0; border-radius: calc(12px * var(--vw-scale)); display: flex; align-items: center; justify-content: center; position: relative; background: #fff; transition: border-color 0.1s ease; }
.tile input { width: 100%; height: 100%; border: none; outline: none; text-align: center; font-size: calc(32px * var(--vw-scale)); font-weight: 700; color: #333; background: transparent; caret-color: transparent; user-select: none; }
.tile-highlight { border-color: #333!important; }
.blink-underline::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: calc(10px * var(--vw-scale)); height: 2px; background-color: #0066FF; animation: customBlink 1.1s infinite steps(1); }
@keyframes customBlink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }

/* === 5. Advanced Row === */
.advanced-row { gap: 8px; margin-bottom: calc(20px * var(--vw-scale)); width: 100%; }
#toggleAdvanced:checked~.advanced-row { display: flex!important; }
.advanced-row select { flex: 0 0 35%; min-width: 0; border-radius: calc(10px * var(--vw-scale)); padding: 0 calc(12px * var(--vw-scale)); background: #f7f7f7; color: #777; border: 1px solid #d0d0d0; box-sizing: border-box; height: calc(48px * var(--vw-scale)); font-size: calc(16px * var(--text-scale)); font-weight: 600; cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.advanced-row input { flex: 1 1 65%; min-width: 0; border-radius: calc(10px * var(--vw-scale)); padding: 0 calc(12px * var(--vw-scale)); background: #f7f7f7; color: #333; border: 1px solid #d0d0d0; box-sizing: border-box; height: calc(48px * var(--vw-scale)); font-size: calc(16px * var(--text-scale)); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }
#advancedRow input[name="letters"]::placeholder { color: #999; letter-spacing: normal; text-transform: none!important; font-weight: normal; }
.select-ui { position: relative; flex: 0 0 37%; min-width: 0; }
.select-ui select { width: 100%; padding-right: 12px; }
.select-arrow { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; pointer-events: none; opacity: 0.7; }

/* === 6. Button Row === */
.button-row { display: flex; gap: 8px; margin: 0 0 calc(20px * var(--vw-scale)) 0; width: 100%; }
.button-row button, .advanced-label { -webkit-appearance: none; appearance: none; height: calc(48px * var(--vw-scale)); border: 1px solid #d0d0d0; border-radius: calc(10px * var(--vw-scale)); background: #f7f7f7; font-size: calc(16px * var(--text-scale)); font-weight: 600; transition: transform 0.12s ease, background-color 0.12s ease; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 calc(50px * var(--padding-factor)); white-space: nowrap; -webkit-text-size-adjust: 100%; box-sizing: border-box; }
.btn-clear { flex: 0 0 auto; color: #666; }
.btn-search { flex: 1 1 auto; color: #fff; border-color: #0066FF !important; background: #0066FF !important; min-width: 80px; }
.btn-advanced { flex: 0 0 auto; color: #666; }
.button-row button:hover, .advanced-label:hover { transform: scale(1.015); }
.btn-search:hover { background: #0066D6 !important; border-color: #0066D6 !important; }

/* === 6B. AdSense Placeholders === */
.ad-placeholder { width: 100%; max-width: 728px; margin: 12px auto; text-align: center; min-height: 50px; }
@media (min-width:486px) { .ad-placeholder { min-height: 60px; } }
@media (min-width:728px) { .ad-placeholder { min-height: 90px; } }

/* === 7. Results & Standard Content === */
.result { min-height: 200px; padding: 15px 0; font-size: calc(16px * var(--text-scale)); }
.results-list { display: grid; grid-template-columns: 1fr; row-gap: 20px; }
.zone { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 50px; row-gap: 4px; }
.results-meta { margin-bottom: 20px; font-size: calc(18px * var(--text-scale)); opacity: .7; text-align: center; }
.word { display: grid; grid-template-columns: 3ch 1fr auto; align-items: baseline; gap: 8px; padding: 2px 0; }
.word .score { font-size: 15px; color: #0066FF; font-weight: 600; text-align: right; white-space: nowrap; }
.word-text { font-size: 16px; color: #333; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; line-height: 1.2; }
.word-text .joker { display: inline-block; transform: skewX(-5deg); color: #666; }
.word-text .joker::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -1px; height: 1px; background: rgba(0,0,0,0.20); }
.word .len { font-size: 13px; color: #777; opacity: .8; white-space: nowrap; width: 30px; text-align: left; }
.word-high .word-text { font-weight: 700; }
.word-mid .word-text { font-weight: 500; }
.word-low { opacity: .6; }
p, li { color: #555; line-height: 1.6; font-size: calc(16px * var(--text-scale)); margin: 0 0 16px 0; }
@media (max-width: 636px) { .zone { grid-template-columns: 1fr; } }

/* === 8. Expandable SEO Section (Pure CSS Toggle) === 
.content-section { margin-top: calc(5px * var(--vw-scale)); }
.read-more-btn { background: transparent; border: none; color: #0066FF; font-size: calc(15px * var(--text-scale)); font-weight: 600; cursor: pointer; padding: 5px 0; display: inline-flex; align-items: center; gap: 6px; margin: 5px 0 15px 0; user-select: none; }
.read-more-btn:hover { color: #0066D6; }
.btn-arrow { transition: transform .2s ease; display: inline-block; }
.btn-text::before { content: "Hoe het werkt & tips"; }
.expandable-content { display: none; border-top: 1px dashed #e5e5e5; }
#toggleContent:checked~.expandable-content { display: block; }
#toggleContent:checked~.read-more-btn .btn-arrow { transform: rotate(180deg); }
#toggleContent:checked~.read-more-btn .btn-text::before { content: "Minder weergeven"; }
*/
.expandable-content { display: block !important; }
.read-more-btn { display: none !important; }

/* === 9. Permanent Content & Hints === */
.hint { background: #f7f7f7; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; color: #555; }
.pattern-examples { margin: 24px 0; background: #f7f7f7; padding: 12px 16px; border-radius: 8px; }
.pattern-label { font-weight: 700; margin-bottom: 12px; font-size: 14px; color: #333; }
.pattern-cards { display: flex; gap: 8px; flex-wrap: wrap; }
.pattern-card { background: #fff; border: 1px solid #d0d0d0; padding: 6px 12px; font-family: monospace; font-weight: 700; border-radius: 6px; letter-spacing: 1px; color: #333; }
.pattern-preview { background: #f5f5f5; border: 1px solid #ccc; border-radius: 4px; padding: 2px 6px; font-family: monospace; }

/* === 10. FAQ Accordion === */
.faq-accordion { margin-top: 20px; }
.faq-item { padding: 15px 0; border-bottom: 1px solid #eee; }
.faq-item summary { cursor: pointer; list-style: none; outline: none; font-size: 1.1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '+ '; color: #007bff; font-weight: bold; margin-right: 8px; }
.faq-item[open] summary::before { content: '- '; }
.faq-item p { margin-top: 10px; margin-bottom: 0; color: #555; line-height: 1.6; }

/* === 11. Privacy-page Ad-Hider === */
.wrapper:has(#privacy-target) .ad-placeholder, .wrapper:has(#privacy-target) .ad-placeholder + .divider { display: none !important; }