/*
Theme Name: VNVote Community
Author: VNVote
Description: Theme for the community and event voting platform.
Version: 0.2.0
Requires PHP: 8.0
Text Domain: vnvote-community
*/
:root{--ink:#17223b;--muted:#536078;--blue:#2256d7;--pale:#f3f6fc;--border:#dfe6f2}
*{box-sizing:border-box}body{margin:0;font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff}
a{color:var(--blue)}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #ef9f24;outline-offset:3px}
.wrap{width:min(1120px,calc(100% - 32px));margin:auto}.site-header{border-bottom:1px solid var(--border);background:white}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0}.brand{font-size:1.35rem;font-weight:800;text-decoration:none;color:var(--ink)}
.nav{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.nav a{text-decoration:none;font-weight:600}
.button,button{display:inline-block;border:0;border-radius:10px;background:var(--blue);color:#fff;padding:11px 18px;font:inherit;font-weight:650;cursor:pointer;text-decoration:none}
.button:hover,button:hover{background:#173da1;color:#fff}button:disabled{opacity:.55;cursor:not-allowed}
.hero{background:linear-gradient(130deg,#eaf2ff,#f8faff);padding:90px 0}.hero h1{font-size:clamp(2.3rem,5vw,4.1rem);line-height:1.12;max-width:760px;margin:0 0 22px}
.hero p{font-size:1.2rem;max-width:670px;color:var(--muted)}.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}
.section{padding:62px 0}.section h2{font-size:clamp(1.8rem,3vw,2.5rem)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.card{padding:24px;border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:0 8px 30px #182a4a0a}.card h3{margin-top:0}
.page-content{max-width:800px;margin:52px auto 80px}.site-footer{border-top:1px solid var(--border);padding:34px 0;background:var(--pale)}
.footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.footer-inner a{margin-left:16px}
.vnvote-app{max-width:760px;margin:48px auto 90px;padding:32px;border:1px solid var(--border);border-radius:18px;box-shadow:0 16px 44px #182a4a10}
.vnvote-app h1{line-height:1.2}.vnvote-description,.vnvote-state{color:var(--muted)}.vnvote-app fieldset{border:0;padding:0;margin:28px 0}.vnvote-app legend{font-weight:700;margin-bottom:12px}
.vnvote-choice{display:flex;gap:12px;padding:14px;margin:8px 0;border:1px solid var(--border);border-radius:10px;cursor:pointer}.vnvote-choice:has(input:checked){border-color:var(--blue);background:#eef3ff}
.vnvote-field{display:block;margin:16px 0;font-weight:600}.vnvote-field input{display:block;width:100%;padding:12px;margin-top:6px;border:1px solid #acb8cd;border-radius:9px;font:inherit}
.vnvote-app button{margin:4px 10px 8px 0}.vnvote-message{color:#176b41}.vnvote-message.error{color:#ab2530}.vnvote-results{margin-top:35px;border-top:1px solid var(--border)}
.vnvote-bar{height:9px;background:#e8edf8;border-radius:99px;overflow:hidden}.vnvote-bar span{display:block;height:100%;background:var(--blue)}
.share-tools{max-width:760px;margin:-60px auto 80px;overflow-wrap:anywhere;color:var(--muted)}
.stage{margin:35px auto 75px;padding:clamp(24px,5vw,60px);min-height:65vh;border-radius:20px;background:#0b1737;color:#fff}
.stage:fullscreen{overflow:auto}.stage h1{font-size:clamp(2rem,5vw,4rem);line-height:1.15}.stage-url{overflow-wrap:anywhere;color:#b9c8f4}
.stage-total{font-size:1.6rem;font-weight:700}.stage-row{margin:24px 0}.stage-row h2{display:inline-block;margin:0 20px 8px 0}.stage-row strong{white-space:nowrap}.stage .vnvote-bar{height:18px;background:#26385e}.stage .vnvote-bar span{background:#6fa2ff}
#vnvote-receipt-form{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:28px 0}#vnvote-receipt-form label{width:100%;font-weight:700}#vnvote-receipt-code{flex:1;min-width:250px;padding:12px;border:1px solid #acb8cd;border-radius:9px;font:inherit}
@media(max-width:720px){.header-inner{align-items:flex-start;flex-direction:column}.grid{grid-template-columns:1fr}.hero{padding:64px 0}.vnvote-app{padding:20px}}
