* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Pretendard ,'Noto Sans KR', sans-serif;
}

body {
  background-color: #f8fafd;
  color: #333;
  display: flex;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-size: 1em;
  font-family: Pretendard ,'Noto Sans KR', sans-serif;
}
/* 왼쪽 사이드바 스타일 */
.sidebar {
  width: 280px;
  background-color: #fff;
  color: #333;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.sidebar-header {
  padding: 25px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto;
  width: 70%;
  margin-top: 20px;  
}

.sidebar-menu {
  padding: 20px 0;
}

.menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-header {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.2s;
}

.menu-header:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-header.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-icon {
  margin-right: 5px;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-title {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
  flex: 1;
}

.menu-arrow {
  font-size: 9px;
  transition: transform 0.3s;
}

.menu-header.active .menu-arrow {
  transform: rotate(180deg);
}

.submenu {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  background-color: #fff;
}

.submenu.open {
  height: auto;
}

.submenu-item {
  padding: 12px 20px 12px 52px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submenu-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.submenu-item.active {
  color: #333;
  background-color: rgba(255, 255, 255, 0.1);
}

/* 모바일 메뉴 토글 버튼 */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1100;
  width: 40px;
  height: 40px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.mobile-menu-icon {
  width: 30px;
  height: 1px;
  background-color: #000;
  position: relative;
  transition: all 0.3s;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 1px;
  background-color: #000;
  transition: all 0.3s;
}

.mobile-menu-icon::before {
  transform: translateY(-9px);
}

.mobile-menu-icon::after {
  transform: translateY(9px);
}

.mobile-menu-toggle.active .mobile-menu-icon {
  background-color: transparent;
}

.mobile-menu-toggle.active .mobile-menu-icon::before {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .mobile-menu-icon::after {
  transform: rotate(-45deg);
}

/* 메인 콘텐츠 영역 스타일 */
.main-wrapper {
  flex: 1;
  margin-left: 280px; /* 사이드바 너비와 동일 */
  width: calc(100% - 280px);
  transition: all 0.3s ease;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header section */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
}

.alarm-btn {
  background-color: #212529;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

/* Main content area */
.content-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top row layout - three sections side by side */
.top-row {
  display: flex;
  width: 100%;
  gap: 20px;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 2; /* Takes 2/3 of the width */
}

.top-cards-row {
  display: flex;
  gap: 20px;
}

.section-popular {
  flex: 1;
}

.section-global {
  flex: 1;
}

.side-content {
  flex: 1; /* Takes 1/3 of the width */
  display: flex  ;
  flex-direction: column;
  gap: 20px;  
}

.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  padding: 30px;
  height: 100%;
}

.card-no-margin {
  margin-top: 0;
}

.investor-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  padding: 30px;
}

.card-header {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Popular coins section */
.coin-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.coin-item {
  display: flex;
  align-items: center;
  width: 100%;
}

.rank {
  font-weight: 600;
  margin-right: 10px;
  width: 18px;
}

.coin-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.coin-icon-xrp {
  background-color: #627EEA;
}

.coin-icon-btc {
  background-color: #F7931A;
}

.coin-icon-aergo {
  background-color: #6a28ff;
}

.coin-icon-text {
  color: white;
  font-weight: bold;
  font-size: 12px;
}

.coin-info {
  flex: 1;
}

.coin-name {
  font-weight: 500;
  font-size: 14px;
}

.coin-ticker {
  font-size: 12px;
  color: #999;
  display: block;
  margin-top: 2px;
}

.coin-price {
  text-align: right;
  white-space: nowrap;
}

.percent {
  font-weight: 500;
  font-size: 14px;
}

.price-value {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.positive {
  color: #f75467;
}

.negative {
  color: #4386f9;
}

/* Global market section */
.source-label {
  color: #999;
  font-size: 12px;
  font-weight: normal;
}

.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.market-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
}

.market-name {
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 14px;
}

.market-price {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.market-ticker {
  font-size: 12px;
  color: #666;
}

.price-change {
  font-size: 14px;
  font-weight: 500;
}

.price-diff {
  font-size: 12px;
  font-weight: 500;
}

.view-all {
  color: #666;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 15px;
  cursor: pointer;
}

.view-all::after {
  content: "›";
  margin-left: 5px;
  font-size: 18px;
}

/* Investor sentiment section */
.info-icon {
  width: 16px;
  height: 16px;
  background-color: #eee;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  color: #999;
  margin-left: 5px;
  cursor: pointer;
}

.tab-container {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
}

.tab.active {
  color: #000;
  font-weight: 600;
  border-bottom: 2px solid #212529;
  margin-bottom: -1px;
}

.tab.inactive {
  color: #999;
}

.percentage-bar {
  background-color: #edf4ff;
  height: 6px;
  width: 60px;
  border-radius: 3px;
  position: relative;
  margin-top: 3px;
  margin-left: auto;
}

.percentage-value {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #4386f9;
  border-radius: 3px;
}

/* Period performance section */
.period-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.period-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.period-title {
  font-size: 19px;
  font-weight: 600;
}

.period-filters {
  display: flex;
  gap: 15px;
}

.period-filter {
  font-size: 14px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.period-filter.active {
  color: #000;
  font-weight: 500;
}

.dropdown-icon {
  margin-left: 3px;
  width: 12px;
  height: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 8px;
}

.timestamp {
  color: #999;
  font-size: 12px;
  text-align: right;
  margin-bottom: 10px;
}

.performance-table {
  width: 100%;
  border-collapse: collapse;
}

.performance-table th,
.performance-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.performance-table th {
  color: #666;
  font-weight: 500;
}

.table-col-asset {
  width: 35%;
}

.table-col-period {
  width: 13%;
}

.load-more {
  text-align: center;
  padding: 15px 0;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.load-more::after {
  content: "▼";
  margin-left: 5px;
  font-size: 10px;
}


.news-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  padding: 30px;
}

.news-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.news-header h1 {
  font-size: 19px;
  font-weight: bold;
  margin-right: 8px;
}

.info-icon {
  width: 18px;
  height: 18px;
  background-color: #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.news-item {
  margin-bottom: 20px;
}

.news-item h2 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: bold;
  color: #222;
  line-height: 1.4;
}

.news-item p {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.5;
}

.news-time {
  font-size: 12px;
  color: #999;
  text-align: right;
}

.news-list {
  border-top: 1px solid #eee;
  padding-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.news-list-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.news-list-item h3 {
  font-size: 14px;
  font-weight: normal;
  flex: 1;
  color: #222;
}

.news-list-item .news-time {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  margin-left: 10px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.pagination .page-button {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  border: 1px solid #ddd;
  background-color: white;
  color: #666;
  cursor: pointer;
}

.pagination .page-number {
  margin: 0 5px;
  font-size: 14px;
  color: #666;
}

.pagination .active {
  font-weight: bold;
  color: #222;
}

@media (max-width: 768px) {
  .news-layout {
      grid-template-columns: 1fr;
  }
  
  .news-list {
      grid-template-columns: 1fr;
  }
  
  .news-item h2 {
      font-size: 15px;
  }
  
  .news-item p {
      font-size: 13px;
  }
  
  .news-list-item h3 {
      font-size: 13px;
  }
}



/* 미디어 쿼리 - 반응형 레이아웃 */
@media (max-width: 1200px) {
  .top-row {
      flex-direction: column;
  }
  
  .main-content,
  .side-content {
      width: 100%;
  }
}

@media (max-width: 992px) {
  .top-cards-row {
      flex-direction: column;
  }
  
  .section-popular,
  .section-global {
      width: 100%;
  }
}

@media (max-width: 768px) {
  .main-wrapper{margin-top: 50px;}
  .sidebar {
      transform: translateX(-100%);
      width: 280px;
  }
  
  .sidebar.open {
      transform: translateX(0);
  }
  
  .main-wrapper {
      margin-left: 0;
      width: 100%;
  }
  
  .mobile-menu-toggle {
      display: flex;
  }
  
  .market-grid {
      grid-template-columns: 1fr;
  }
  
  .period-header {
      flex-direction: column;
      gap: 10px;
  }
  
  .period-filters {
      flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .container {
      padding: 10px;
  }
 
  
  .card,
  .investor-card {
      padding: 15px;
  }
  
  .performance-table th,
  .performance-table td {
      padding: 10px 5px;
      font-size: 12px;
  }
  
  .header-container {
      margin-top: 50px; /* 모바일 메뉴 버튼 공간 확보 */
  }
}

/* 오버레이 - 모바일에서 메뉴 열릴 때 배경 어둡게 */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.overlay.open {
  display: block;
}

.foot-wrapper {width: 100%;
  margin: 0 auto;
  color: #555; 
  margin-top: 50px;
  font-size: 14px;
}
.foot_container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;

}
.ft_link {
display: flex; gap: 20px; margin-bottom: 30px; color: #333;border-top: 1px solid #d1dde8;
padding-top: 50px;
}
.ft_link .link_list {display: flex; gap: 20px;}


.ft_info {
display: flex; gap: 20px; margin-bottom: 10px;
}

.ft_company{display: flex; gap: 20px;}

.ft_copy {

  width: 100%;
  margin: 0 auto;
  padding: 40px 0 20px;
  color: #777777;
  font-size: 0.92em;
}

@media (max-width: 1200px) {
  .ft_link { flex-direction: column;}
  .ft_company { flex-direction: column; gap: 0;}    

}
@media (max-width: 576px) {
  .ft_link { flex-direction: column;}
  .ft_company { flex-direction: column; gap: 0;}    
}


.main-banner img{border-radius: 12px;}