* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: white;
  color: #333;
  line-height: 1.6;
}

/* .nanum-brush-script-regular {
  font-family: "Nanum Brush Script", cursive;
  font-weight: 400;
  font-style: normal;
} */

.nanum-brush-n {
  font-family: "Nanum Brush Script", cursive;
  font-weight: 400;
  font-style: normal;
}

/* Header */
.header {
  background: white;
  text-align: center;
  padding: 2rem 0 1rem 0;
  border-bottom: 1px solid #e5e7eb;
  display:flex; justify-content:space-between; padding-left:50px;
}
.hd_wrap {
  display:flex; flex-direction:row; gap:20px;
}
.hd_logo img {
  width:auto;height:200px;
}
.hd_txt {
  display:flex; flex-direction:column; justify-content:center;
}

.logo {
  font-family: "Nanum Brush Script", cursive;
  font-style: bold;

  font-size: 6.5rem;
  font-weight: bold;
  /* color: #2563eb; */
  color: #222;
  margin-bottom: 1rem;
}

.tagline {
  color: #6b7280;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Navigation */
.nav-container {
  background: #3b82f6;
  padding: 0.5rem 0;
}

.nav-content {
  max-width: 1200px;
  /* margin: 0 auto; */
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  padding: 0.5rem 1rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  transition: background-color 0.2s ease;
  font-size: 0.9rem;
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.auth-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
  font-size: 0.9rem;
}

.auth-section a {
  color: white;
  text-decoration: none;
}

.auth-section a:hover {
  text-decoration: underline;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 2rem;
  padding: 2rem;
}

/* Left Sidebar */
.sidebar {
  background: white;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-title {
  font-size: 0.85rem;
  font-weight: bold;
  color: #374151;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #e5e7eb;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 0.2rem;
}

.sidebar-menu a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.85rem;
  display: block;
  padding: 0.3rem 0;
}

.sidebar-menu a:hover {
  color: #2563eb;
}

/* Main Content */
.main-content {
  background: white;
}

.content-header {
  /* margin-bottom: 1.5rem; */
  padding: 2rem 0 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.content-title {
  font-size: 1.3rem;
  color: #374151;
  font-weight: 600;
}

/* Post List */
.post-list {
  background: white;
  margin-bottom:10px;
}

.post-header {
  display: grid;
  grid-template-columns: 70px 1fr 80px 80px;
  gap: 1rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
}

.post-item {
  display: grid;
  grid-template-columns: 80px 1fr 80px 80px;
  gap: 1rem;
  padding: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.post-item:hover {
  background: #f9fafb;
}

.post-date {
  color: #6b7280;
  /* font-size: 0.8rem; */
}

.post-title {
  color: #374151;
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-title a:hover {
  color: #2563eb;
}

.post-author {
  color: #6b7280;
  /* font-size: 0.8rem; */
}

.post-views {
  color: #6b7280;
  /* font-size: 0.8rem; */
  text-align: center;
}

/* Right Sidebar */
.widget {
  background: white;
  margin-bottom: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.widget-header {
  background: #f9fafb;
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.widget-content {
  padding: 1rem;
}

.stats-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.stats-label {
  color: #6b7280;
}

.stats-value {
  color: #2563eb;
  font-weight: 600;
}

.ranking-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.rank-number {
  color: #2563eb;
  font-weight: 600;
  margin-right: 0.5rem;
  width: 20px;
}

.player-name {
  color: #374151;
}

/* Notice Section */
.notice-section {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 4px;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.notice-title {
  color: #92400e;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.notice-content {
  color: #78350f;
}

.ep_btn {
  display: inline-block;
  border: 1px solid #a7a7a7;
  border-radius: 3px;
  background: #777;
  font-size: 10px;
  color: #ddd;
  width: auto;
  height: 25px;
  line-height: 20px;
  margin-left: 10px;
  text-align: center;
  cursor: pointer;
  padding: 3px 5px;
}
.ep_btn2 {
  display: inline-block;
  border: 1px solid #a7a7a7;
  border-radius: 3px;
  background: #777;
  font-size: 10px;
  color: #ddd;
  width: auto;
  height: auto;
  line-height: 20px;
  margin-left: 10px;
  text-align: center;
  cursor: pointer;
  padding: 3px 5px;
}
.eb_wgray {
  background:#ddd;
  color:#222;
}

.ep_select {
  width:auto;
  height:25px;
  font-size:10px;
  margin-right:10px;
}

.ep_input {
  width: 100px;
  height: 25px;
  border: 1px solid #a7a7a7;
  padding: 5px;
}

.layer_pop {
  width: 43%;
  height: 500px;
  /* overflow-y:scroll; */
  position: absolute;
  background: #eee;
  border: 1px solid #ccc;
  /* padding:10px 20px; */
}
.layer_pop.lp_sm {
  width:250px;
  height:auto;
}
.layer_pop .da_btn_area {
  display:flex;
  flex-direction: row;
  justify-content: flex-end;
  gap:20px;
  padding:10px;
}

.deck_hd {
  margin:20px 20px 0 20px; font-size:15px; font-weight:700; border-bottom: 1px solid #222; padding-bottom:10px;
}
.deck_wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
  font-size: 10px;
  position: relative;
  margin-bottom:20px;
}
/* .layer_pop .deck_wrap {
  height: 500px;
} */

.deck_area {
  /* position:relative; */
  flex: 0 0 49%;
  display: flex;
  flex-direction: column;
  /* line-height: 35px; */
  border-bottom: 1px solid #222;
  max-height:600px;
}
.layer_pop .deck_area {
  flex: 0 0 100%;
}
.deck_area.pop_area {
  flex: 0 0 100%;
}

.deck_area .da_head {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  border-bottom: 1px solid #222;
}
.layer_pop .da_head {
  /* position:sticky; */
  top:0;
  background: #ddd;
  /* padding:10px 20px; */
  padding:20px 0 0 0;
}

.da_head .da_title {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  font-size: 15px;
  margin-bottom:5px;
}
.layer_pop .da_title {
  padding:0 20px;
}

.da_head .da_filter {
  display: flex;
  align-items: center;
}
.layer_pop .da_filter {
  padding:0 10px;
  gap:15px;
}
.da_filter .da_filter_sel {
  display:flex;
  gap:5px;
  margin-top:10px;
}

.deck_area .da_table {
  width: 100%;
  height: auto;
  overflow-y:scroll;
  display: flex;
  flex-direction: column;
  margin-top: 5px;
}

.da_table .da_row_head {
  width: 100%;
  height:auto;
  /* height:auto; */
  padding:5px 0;
  /* line-height:20px; */
  /* position:absolute; */
  
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #222;
}
.da_head .da_row_head {
  width: 100%;
  height:auto;
  padding:5px 0;
  /* height:35px; */
  /* line-height:20px; */
  vertical-align: middle;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin:10px -20px 0 -20px; */
  margin:10px 0 0 0
}
.da_head .da_row_head.wrap {
  flex-wrap:wrap;
}

.da_row_head div {
  flex: 0 0 8%;
  text-align:center; 
  font-weight: 700;
}
.da_row_head div.col_big {
  flex: 0 0 14%;
}
.da_row_head div.col_big2 {
  flex: 0 0 16%;
}
.da_row_head div.col_top {
  flex: 0 0 16%;
  border-bottom: 1px solid #222;
}
.da_row_head div.col_text {
  flex: 0 0 100%;
}
.da_row_head div.col_merge {
  flex: 0 0 70%;
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.da_table .da_row {
  width: 100%;
  /* height:35px; */
  height:auto;
  padding:5px 0;

  /* line-height:20px; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #222;
}

.da_table .da_row div {
  text-align:center; 
  flex: 0 0 8%;
}
.da_table .da_row div.col_big {
  flex: 0 0 14%;
}
.da_table .da_row div.col_big2 {
  flex: 0 0 16%;
}
.da_table .da_row div.col_top {
  flex: 0 0 16%;
  border-bottom: 1px solid #222;
}
.da_table .da_row div.col_text {
  flex: 0 0 100%;
  text-align:left;
}
.da_table .da_row div.col_merge {
  flex: 0 0 70%;
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.box {
  border: 1px solid #dde7e9;
  border-radius: 3px;
}
.box-tp {
  border: 1px solid #dde7e9;
  border-radius: 3px;
}
.mb-show {
  display:none;
}
.mb-none {
  display:block;
}


/* 게시판 */
#bo_list, #bo_w, #bo_v {
  padding:20px;
}

.del_deck_tactics {
  margin-left:10px;
}

/* Responsive */
@media only screen and (max-width: 768px) {
  .header {
    padding: 1.5rem 0 1rem 0;
  }

  /* .logo {
    font-size: 2rem;
  } */

  .tagline {
    font-size: 0.9rem;
  }

  .nav-content {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    /* justify-content: center; */
    gap: 0.5rem;
  }

  .nav-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .auth-section {
    order: -1;
    font-size: 0.8rem;
  }

  .container {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.5rem;
  }

  .sidebar {
    order: 2;
  }

  .main-content {
    order: 1;
  }

  .sidebar:last-child {
    order: 3;
  }

  .post-header {
    grid-template-columns: 70px 1fr 60px 50px;
    gap: 0.5rem;
    padding: 0.5rem;
    font-size: 0.75rem;
  }

  .post-item {
    grid-template-columns: 70px 1fr 60px 50px;
    gap: 0.5rem;
    padding: 0.5rem;
    font-size: 0.7rem;
  }

  .post-title {
    line-height: 1.3;
  }

  .sidebar-section {
    margin-bottom: 1.5rem;
  }

  .sidebar-title {
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }

  .sidebar-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .sidebar-menu a {
    background: #f9fafb;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.8rem;
  }

  .widget {
    margin-bottom: 1.5rem;
  }

  .widget-header {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .widget-content {
    padding: 0.75rem;
  }

  .notice-section {
    margin-bottom: 1rem;
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .content-title {
    font-size: 0.9rem;
  }
  .deck_area {
    flex: 0 0 100%;
  }
  .layer_pop {
    width:85vw;
  }
  .hd_wrap {
    gap:0;
    width:100%;
  }
  .hd_logo {
    flex: 0 0 50%;
  }
  .hd_txt {
    flex: 0 0 50%;
    font-size:1.0rem;
  }
  .hd_txt .logo {
    font-size:5.0rem;
  }
  .mb-show {
    display:flex;
    justify-content: flex-end;
    align-items: center;
    gap:10px;
    padding:10px;
  }
  .mb-none {
    display:none;
  }
  .deck_hd {
    margin:20px 5px 0 5px;
  }
  .deck_wrap {
    padding:5px;
    margin-bottom:20px;
  }

  /* 게시판 */
  #bo_list, #bo_w, #bo_v {
    padding:5px;
  }

  .del_deck_tactics {
    display: block;
    margin-left:0;
  }

}

@media (max-width: 480px) {
  /* .logo {
    font-size: 1.8rem;
  } */

  .nav-menu a {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .container {
    padding: 0.5rem;
    gap: 1rem;
  }

  .post-header {
    grid-template-columns: 70px 1fr 60px 50px;
    gap: 0.3rem;
  }

  .post-item {
    grid-template-columns: 70px 1fr 60px 50px;
    gap: 0.3rem;
    font-size:0.7rem;
  }

  .sidebar-menu {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
  }

  .sidebar-menu a {
    padding: 0.4rem;
    font-size: 0.75rem;
  }
  .deck_wrap {
    padding:5px;
    margin-bottom:20px;
  }
  .del_deck_tactics {
    display: block;
    margin-left:0;
  }

}

