﻿/* wp-content/themes/generatepress-child/tokenomics/style.css */

/* ===== 색상 변수 (컴포넌트 스코프) ===== */
.tok-dist{
  --amber-900: #78350F;
  --amber-800: #92400E;
  --amber-700: #B45309;
  --border-200: #FEF08A;
  --border-400: #FACC15;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

/* ===== 헤더 ===== */
.tok-dist{
  max-width: 1280px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

.tok-dist-head{
  text-align: center;
  margin: 0 0 4rem;
}

.tok-dist-title{
  font-weight: 800;
  color: var(--amber-900);
  margin: 0 0 1rem;
  font-size: 2.25rem;
  line-height: 2.5rem;

  font-family: Ciznel, "Cinzel Fallback", serif;
}

.tok-dist-total{
  font-weight: 600;
  color: var(--amber-800);
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.tok-dist-total-strong{
  color: var(--amber-900);
  font-weight: 800;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

/* ===== 레이아웃 ===== */
.tok-dist-desktop { display: block; }

@media (max-width: 1120px){
  .tok-dist-desktop { display: none; }  
}

.tok-dist-row{
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content:space-between;
}

.tok-dist-left{   flex:0 0 20rem; }   /* 좌: 카드 패널 고정폭 */
.tok-dist-center{ flex:0 0 24rem; }   /* 중: 차트 고정폭(24rem) */
.tok-dist-right{  flex:1 1 22rem; min-width:22rem; } /* 우: 남는폭, 최소폭 보장 */

.tok-dist-left{ max-width: 20rem; }
.tok-dist-center{ display:flex; align-items:flex-start; justify-content:center; }
.tok-dist-right{ padding: 1rem 0; }


/* 브레이크포인트에서 1열/2열로 접기 (원하면) */
@media (max-width: 1120px){
  .tok-dist-row{ flex-wrap:wrap; }
  .tok-dist-left{   flex:1 1 100%; }
  .tok-dist-center{ flex:0 0 20rem; margin:auto; }
  .tok-dist-right{  flex:1 1 100%; min-width:auto; }

  .tok-dist{
    margin-top:1rem;
  }
  .tok-dist-title {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .tok-dist-head {
    margin-top: 1rem;
    margin-bottom: 2rem;
  }
}




/* ===== 카드(좌측) ===== */
.tok-card-soft{
  height: 20rem; padding: 0;
  display:flex; flex-direction:column; justify-content:center;
}


.tok-icon-wrap{
  display: flex;
  justify-content: center;
  margin: 2.25rem 0 0;
}

.tok-icon-128{
  width: 8rem;
  height: 8rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.15));
}

.tok-card-h3{
  font-family: Ciznel, "Cinzel Fallback", serif;

  font-size: 1.0rem;
  font-weight: 800;
  color: var(--amber-900);
  margin: 1rem 0 0 0;
  text-align: center;
}

.tok-metrics{
  text-align: center;
  margin: 1rem 0 0 0;

}

.tok-metric-big{
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: var(--amber-800);
}

.tok-metric-sub{
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: var(--amber-700);
  margin: .5rem 0 0 0;

}

.tok-usage{ 
  margin-top: 1rem; 
  padding-top: .5rem; 
  text-align: center;
}

.tok-usage-title{
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--amber-800);
  margin: 0 0 .5rem;
}

.tok-usage-item{
  font-size: .9rem;
  line-height: 1.625rem;
  color: #b45309;
  margin: .5rem 0 0;
}

/* ===== 차트 ===== */
.tok-chart{
  position: relative;
  width: 24rem;
  max-width: 24rem;
  height: 24rem;
  max-height: 24rem;
}

.tok-chart canvas{
  width: 100%;
  height: 100%;
  display: block;
  box-sizing: border-box;
  pointer-events: auto !important;
}

.tok-chart-center{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  flex-direction: column;
  text-align: center;
}

.tok-chart-title{
  font-weight: 800;
  color: var(--amber-900);
  font-size: 1.25rem;
}

.tok-chart-sub{
  color: var(--amber-700);
  font-size: 1rem;
}

/* ===== 리스트(우측) ===== */
.tok-list{
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.tok-list-item{
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  cursor: pointer;
  transition: transform .2s;
}

.tok-list-item:hover{ transform: translateX(2px); }

.tok-dot{
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  margin-top: .25rem;
  flex-shrink: 0;
}

.tok-list-h4{
  margin: 0 0 .25rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--amber-900);
}

.tok-list-p{
  margin: 0;
  font-size: .9rem;
  color: #6B7280;
}

.tok-active{ transform: scale(1.03); }

.tok-anim-fade{
  animation: tokFade .8s ease-out both;
}

@keyframes tokFade{
  from{ opacity: 0; transform: translateY(8px); }
  to  { opacity: 1; transform: translateY(0);  }
}

/* ===== 모바일 카드 ===== */
.tok-dist-mobile {
  display: none;
  padding: 0 1rem;
}

@media (max-width: 1120px){
  .tok-dist-mobile {
    display: block;
  }
}



.tok-mobile-card{
  background: #fff;
  border: 1px solid var(--border-200);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
  padding: 1.25rem;
}

.tok-mobile-title{
  text-align: center;
  margin: 0 0 1rem;
  color: var(--amber-900);
  font-weight: 800;
  font-size: 1.125rem;
}

.tok-mobile-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
  font-size: .95rem;
}

.tok-mobile-row{
  display: flex;
  justify-content: space-between;
  gap: .75rem;
}

.tok-mobile-row strong{ color: var(--amber-900); }

.tok-mobile-note{
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-200);
  text-align: center;
  color: #6B7280;
  font-size: .8rem;
  line-height: 1.5;
}


