/*   font-family: var(--font-system); */

/* import files */
@import url("./header_footer.css");
@import url("./auth.css");


:root{
  --body-bg: #0f172a;
  --text: #f8fafc;
  --sec-text: #94a3b8;
  --blue: #3b82f6;
  --blue2: #1e293b;
  --blue-op2: rgba(59, 131, 246, 0.2);
  --header-bg: rgba(15, 23, 41, 0.8);
  --font-bebe: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --black4: rgba(0,0,0,0.4);
  --white: #FFF;
  --green: #22c55e;
  --green-op2:#22c55e1a;
  --mission-bg: #131d34;
  --border: #2e405c;
  --red: #ef4444;
  --red-op2: #ef44441a;
  --yellow: #eab308;
  --yellow-op2: #eab3081a;
  --font-system: ui-sans-serif, system-ui, sans-serif, 
             "Apple Color Emoji",
             "Segoe UI Emoji",
             "Segoe UI Symbol",
             "Noto Color Emoji";
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-family: var(--font-system)
}
body{
  /* font-family: var(--font-system); */
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  background: var(--body-bg);
  color: var(--text);
}
h1, h2, h3, h4, h5, h6{
  line-height: 1;
}
a:hover{
  color: var(--primary);
}
a, a:hover{
  text-decoration: none;
  -webkit-transition: ease-in-out 0.5s;
  -moz-transition: ease-in-out 0.5s;
  -o-transition: ease-in-out 0.5s;
  transition: ease-in-out 0.5s;
}
ul{
  list-style: none;
  padding: 0;
  margin: 0;
}
main{
  padding: 64px 0 0;
}
section{scroll-margin-top: 0px;}
/* stop body scroll */
body.menu-open {
  overflow: hidden;
  height: 100vh;
}
/* optional but recommended */
body.menu-open {
  touch-action: none;
}
/* ----------------- common button effect ---------------- */
#home, #decision, #voice{
  position: relative;
  min-height: 100vh;
}
#home::before{
  content: "";
  position:fixed;
  inset: 0;
  background: url("../images/home-bg.webp") no-repeat center/cover;
  background-attachment: fixed;
  opacity: 0.2;
  z-index: -2;
}
#home::after{
  content: "";
  position:fixed;
  inset:0;
  background:var(--black4);
  z-index:-1;
}
.hero-blog{
  position: relative;
  z-index: 2;
  padding: 160px 0 80px;
}
.home-bnr-txt{
  text-align: center;
}
.home-bnr-txt h1{
  font-size: 96px;
  text-shadow: 0 0 8px rgba(255, 255, 255, .3);
  letter-spacing: .05em;
  font-family: var(--font-system);
  color: var(--text);
  margin-bottom: 0px;
}
.home-bnr-txt p{
  font-size: 24px;
  line-height: 32px;
  color: var(--sec-text);
  margin-bottom: 0;
}
.add-voice-btn{
  box-shadow: 0 0 20px 5px var(--blue);
  margin: 32px auto 0;
  padding: 12px 40px;
  font-size: 18px;
  font-weight: 700;
   color: var(--text);
  background: var(--blue);
  width: fit-content;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: pulse-glow-blue 2s infinite ease-in-out;
  transition: transform .3s cubic-bezier(.4,0,.2,1),
              box-shadow .3s cubic-bezier(.4,0,.2,1);
}
@keyframes pulse-glow-blue {
  0%, 100% {
    box-shadow: 0 0 15px 3px var(--blue);
  }

  50% {
    box-shadow: 0 0 25px 8px var(--blue);
  }
}
.add-voice-btn:hover{
  transform: scale(1.05);
  box-shadow: 0 0 30px 10px var(--blue);
}
.democracy-blog{
  margin-top: 96px;     
}
.democracy-blog, .real-voice-blog, .work-blog{
  position: relative;
  padding: 80px 0;
  background-color: var(--blue-op2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sec-title{
  font-family: var(--font-system);
  letter-spacing: .05em;
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--text);
}
.sec-heading-area p{
  font-size: 18px;
  line-height: 28px;
  color: var(--sec-text);
  font-weight: 400;
  margin-bottom: 0;
}
.sec-heading-area p b{
  font-weight: 600;
  color: var(--text);
  font-size: 20px;
}
.sec-heading-area p:last-child{
  margin: 24px auto 48px;
}
.democracy-card{
  text-align: center;
  position: relative;
}
.democracy-icon{
  width: 96px;
  min-width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue2);
  position: relative;
  margin: 0 auto 16px;
}
.democracy-icon svg{
  width: 40px;
  height: 40px;
}
.democracy-icon svg path{
  stroke: var(--blue);
}
.democrcy-no{
  font-size: 20px;
  background: var(--blue);
  color: var(--text);
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  left: -8px;
}
.democracy-card-txt{
  max-width: 320px;
  text-align: center;
  margin: 0 auto;
}
.democracy-card h3{
  font-size: 24px;
  line-height: 32px;
  letter-spacing: .05em;
  margin-bottom: 8px;
  font-family: var(--font-bebe);
  color: var(--text);
}
.democracy-card p{
  color: var(--sec-text);
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}
.voice-blog{
  padding: 96px 0;
  position: relative;
}
.voice-bx{
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background-color: rgba(19, 29, 52, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  height: 100%;
}
.voice-icon{
  background-color: rgba(36,99,235,0.1);
  width: 64px;
  min-width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 16px;
}
.voice-icon svg{
  width: 32px;
  height: 32px;
}
.voice-bx h3{
  font-family: var(--font-bebe);
  margin-bottom: 0;
  font-weight: 600;
   color: var(--text);
  letter-spacing: .05em;
  font-size: 24px;
  line-height: 32px;
}
.voice-bx p{
 color: var(--sec-text);
 font-size: 16px;
 font-weight: 400;
 padding: 40px 0 0;
 margin-bottom: 0;
}
.wd-mt-48{
  margin-top: 30px;
}
.real-voice-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  max-width: 896px;
  margin: 48px auto 0;
}
.real-voice-item{
  display: flex;
  align-items: center;
  flex-direction: column;
}
.real-voice-item span{
  font-family: var(--font-bebe);
  color: var(--blue);
  font-size: 60px;
  line-height: 1;
  margin-bottom: 8px;
}
.real-voice-item p{
  color: var(--sec-text);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 0;
}
.real-voice-item span svg{
  width: 64px;
  height: 64px;
}
.work-blog .sec-heading-area p{
  max-width: 768px;
  margin: 0 auto;
}
.work-blog{
  margin-bottom: 144px;  /*    96 + 48  = 144px  cd */
}
/* ------------ active now ---------------- */
.active-blog{
  padding: 96px 0;
  position: relative;
}
.active-card{
  display:flex;
  flex-direction:column;
  height:100%;
  padding: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  position: relative;
  width: 100%;
  background-color:rgba(19, 29, 52, 0.8);
  color: var(--white);
  border: 1px solid rgba(46, 64, 92, 0.5);
  border-radius: 8px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.active-card:hover{
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}
.card-content{
  display:flex;
  flex-direction:column;
  flex-grow:1;
}
.active-card h6{
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 4px;
  color: var(--sec-text);
  text-transform: capitalize;
}
.active-card h4{
  font-family: var(--font-bebe);
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 8px;
  color: var(--text);
}
.active-card p{
  color: var(--sec-text);
  font-size: 14px;
  line-height: 20px;
  max-height: 100px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  margin-bottom: 5px;
}
.acive-btn-grp{
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  padding: 25px 0;
}
.acive-btn-grp button{
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  width: 58px;
  min-width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s all ease-in;
  border-radius: 6px;
}
.acive-btn-grp button span{
  font-size: 12px;
  line-height: 16px;
  display: block;
}
.yes-btn{
  color: var(--green);
}
.yes-btn:hover{
  background: var(--green-op2)
}
.yes-btn span{
  color: var(--green);
}
.no-btn, .no-btn span{color: var(--red);}
.no-btn:hover{background: var(--red-op2);}
.not-sure-btn, .not-sure-btn span{color: var(--yellow);}
.not-sure-btn:hover{background-color: var(--yellow-op2);}
.see-result-area{
  margin-top:auto;
  padding:16px 0 0;
  border-top:1px solid #2e405c33;
}
.see-result-btn{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sec-text);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: none;
  margin: 0 auto;
}
.see-result-btn svg{
  width: 16px;
  height: 16px;
}
.wd-mb-32{margin-bottom: 32px;}
.decision-row{
  row-gap: 32px;
}
/* see result popup */
.vote-popup{
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(19,29,52,0.95);
  color: var(--white);
  border: 1px solid rgba(46,64,92,0.5);
  border-radius: 8px;
  padding: 35px 18px 18px;
  max-width: 420px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  opacity:0;
  visibility:hidden;
  transform:translateY(20px);
  transition:0.3s ease;
}
.vote-popup.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.vote-popup h5{
  font-size:18px;
  margin-bottom:5px;
}
.vote-popup p{
  font-size:14px;
  font-weight: 400;
  color: var(--sec-text);
  margin-bottom: 0;
}
.close-vote-popup{
  position: absolute;
  top: 0;
  right: 0;
  margin: 15px 15px 0 0;
  opacity: 0;
}
.vote-popup:hover .close-vote-popup{
  opacity: 1;
}
/* ---------------- About us --------------- */
.about-blog{
  padding: 64px 0;
  position: relative;
}
.mission-box{
  background: var(--mission-bg);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.mission-box img{
  height: 80px;
  object-fit: contain;
  margin: 0 auto 24px;
}
.mission-box h1{
  font-size: 60px;
  line-height: 1;
  letter-spacing: .05em;
   color: var(--text);
  margin-bottom: 16px;
  font-family: var(--font-bebe);
}
.mission-box p{
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 24px;
  color: rgba(248, 250, 252, 0.8);
  font-weight: 400;
}
.mission-box p:first-of-type{
  color: var(--sec-text);
}
.site-login{
  color: var(--sec-text);
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  margin: 24px auto 0;
  text-transform: capitalize;
}
.site-login:hover{
  color: var(--text);
  text-decoration: underline;
}
/* ------- decision -------------- */
.sec-header{
  text-align: center;
}
#decision::before{
  content: "";
  position:fixed;
  inset: 0;
  background: url("../images/decision-bg.webp") no-repeat center/cover;
  background-attachment: fixed;
  opacity: 0.25;
  z-index: -2;
}
#decision::after{
  content: "";
  position:fixed;
  inset:0;
  background:#0000004d;
  z-index:-1;
}
.decisions-blog{
  position: relative;
  padding: 10px 0 0;
}
.sec-header{
  margin-bottom: 48px;
}
.sec-header h1{
  letter-spacing: .05em;
  font-family: var(--font-bebe);
  font-size: 60px;
  line-height: 1;
  margin-bottom: 8px;
}
.sec-header p{
  font-size: 20px;
  line-height: 28px;
  color: var(--sec-text);
  font-weight: 400;
}
.ctgry-list{
  margin-bottom: 48px;
}
.ctgry-tabs{
  padding: 8px;
  border: 1px solid var(--border);
  display:flex;
  justify-content:center;
  width: fit-content;
  margin: 0 auto;
  flex-wrap: wrap;
  border-radius: 12px;
  background: #131d34cc;
}
.ctgry-tabs li{
  list-style:none;
  padding: 8px 16px;
  border-radius:8px;
  font-size:14px;
  font-weight: 500;
  color: var(--text);
  transition:0.3s;
}
.ctgry-tabs li.active{
  background:var(--blue2);
  color: var(--text);
}
.decision-card .card-content{
  text-align: left;
}
/* --------------- our voice ------------ */
#voice::before{
  content: "";
  position:fixed;
  inset: 0;
  background: url("../images/voice-bg.webp") no-repeat center/cover;
  background-attachment: fixed;
  opacity: 0.2;
  z-index: -2;
}
#voice::after{
  content: "";
  position:fixed;
  inset:0;
  background: var(--black4);
  z-index:-1;
}
.voice-left{
  position: relative;
}
.voice-left h2{
  font-family: var(--font-bebe);
  letter-spacing: .05em;
  font-size: 36px;
  line-height: 2.5rem;
  margin-bottom: 16px;
  color: var(--text);
}
.decision-list{
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.decision-item{
  position: relative;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all .15s cubic-bezier(.4,0,.2,1);
  padding: 16px;
  background: rgba(19, 29, 52, 0.502);
  border: 2px solid #2e405c;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.decision-item.active{
  border-color: var(--blue);
}
.wd-check{
  display:none;
}
.decision-item.active .wd-check{
  display:block;
}
.wd-check svg{
  width: 18px;
  height: 18px;
}
.decision-item h3{
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 4px;
}
.decision-item p{
  color: var(--sec-text);
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 0;
}
.decision-content-tab{
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
   color: var(--text);
  background-color: #131d34cc;
  border: 1px solid #eceef1;
  border-radius: 8px;
  padding: 24px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}
.decision-content-tab h3{
  letter-spacing: -.025em;
  font-weight: 600;
  font-size: 30px;
  line-height: 36px;
   color: var(--text);
  margin-bottom: 15px;
}
.decision-content-tab p{
  color: var(--sec-text);
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 0;
}
.no-votes{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  height: 350px;
}
.decision-content-tab{
  display:none;
}

.decision-content-tab.active{
  display:block;
}

.votes-area{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  padding: 30px 0 0;
  margin: 0 auto;
}
.decision-chart{
  max-height: 300px;
}
.chart-legend{
  display:flex;
  justify-content:center;
  gap:24px;
  margin-top:16px;
  font-weight:500;
}

.legend-item{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:16px;
}

.legend-box{
  width:18px;
  height:10px;
  border-radius:2px;
}

.legend-item.support{
  color:#22c55e;
}

.legend-item.support .legend-box{
  background:#22c55e;
}

.legend-item.oppose{
  color:#ef4444;
}

.legend-item.oppose .legend-box{
  background:#ef4444;
}
.legend-item.neutral{
  color:#a1a1aa;
}

.legend-item.neutral .legend-box{
  background:#a1a1aa;
}
/* -------------- profile ------------------- */
.profile-blog{
  position: relative;
  padding: 56px 0;
}
.profile-header{
  display:flex;
  align-items:center;
  gap:20px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid #fff3;
}
.profile-img-box{
  position:relative;
  width:96px;
  height:96px;
  border-radius:50%;
  background:#1e40af;
  border:4px solid #ffffff80;
}
.profile-img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  display:none;   
}
.avatar-initials{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:32px;
  font-weight:600;
}
.camera-icon{
  position:absolute;
  bottom:0px;
  right:0px;
  width:32px;
  min-width: 32px;
  height:32px;
  background:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.camera-icon:hover{
  background: #dbeafe;
}
.camera-icon svg{
  width:18px;
  height:18px;
}
.profile-email{
  color:#fff;
  font-size:22px;
  margin-bottom: 0;
}
/* ---------------profile tab ---------------- */
.settings-tabs .nav{
  background: #ffffff1a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.nav-item{
  display: block;
  width: 100%;
}
.nav-link{
  color: #f8fafc;
  background: transparent;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  padding: 6px 12px;
  border: none;
  display: block;
  width: 100%;
  border-radius: 4px;
}
.nav-link.active, .nav-link:hover{
  background: var(--body-bg);
  color: var(--white);
}
.tab-content{
  margin-top: 24px;
}
.profile-area h1{
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  padding-bottom: 8px;
  border-bottom: 1px solid #fff3;
  margin-bottom: 24px;
}
.form-select{
  background:var(--body-bg);
  color:white;
  border: 1px solid #ffffff4d;
  padding: 8px 12px;
}
.form-select:focus{
  border-color:#3b82f6;
  box-shadow:none;
}
/* option styling */
.form-select option{
  background: var(--body-bg);
  color:white;
}
select {
  appearance: none;
  background: #ffffff1a url(../images/arrow.svg) no-repeat !important;
}
select.form-control {
  background-position: 98% !important;
  background-size: 15px;
}
/* -------------- progress range ------------------- */
.range-wrapper{
  display:flex;
  align-items:center;
  gap:15px;
}

.left-label,
.right-label{
  color:#ffffffb3;
  font-size:14px;
  width:70px;
}

.range-slider{
  flex:1;
  appearance:none;
  height:8px;
  border-radius:10px;
  outline:none;
  background:#fff3;
}

/* thumb */
.range-slider::-webkit-slider-thumb{
  appearance:none;
  width:20px;
  height:20px;
  border-radius:50%;
  border: 2px solid var(--blue);
  background: var(--body-bg);
  cursor:pointer;
}

.range-slider::-moz-range-thumb{
  width:20px;
  height:20px;
  border-radius:50%;
  border: 2px solid var(--blue);
  background: var(--body-bg);
}
#rangeValue{
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  margin-top: 4px;
  color: var(--white);
}
/* toggle button */
/* toggle switch button */
.switch-btn{
  margin: 0 0;
  padding: 0;
  position: relative;
  border: none;
  height: 24px;
  width: 44px;
  border-radius: 90px;
  background: #ffffff4d;
}
.switch-btn.active{
  background: var(--blue)
}
.switch-btn > .handle{
  position: absolute;
  top: 1.5px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  transition: left 0.25s;
  box-shadow: 0px 3px 3px 0px #00000026;
}
.switch-btn.active > .handle{
  left: 21px;
  transition: left 0.25s;
  background: var(--white);
}
.switch-btn-area{
  display: flex;
  align-items: center;
  gap: 12px;
}
/* ----------- notification ------------- */
.notify-card{
  padding: 16px;
  background: #ffffff1a;
  border-radius: 8px;
  display: flex;
  align-content: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.notify-dtls h3{
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1px;
}
.notify-dtls p{
  font-size: 14px;
  font-weight: 400;
  color: #ffffffb3;
  margin-bottom: 0;
}
.democracy-card, .voice-bx{
  transition: transform .3s ease;
}
.democracy-card:hover, .voice-bx:hover{
  transform: translateY(-6px);
}
