@charset "utf-8";

/**
 * UW Board Skins (board.css)
 */

:root {
  /* -- Colors -- */
  --board-main-color: #111;
  --board-text-color: #333;
  --board-meta-color: #888;
  --board-border-color: #e5e5e5;
  --board-line-color: #333;

  /* -- Backgrounds -- */
  --board-bg-white: #fff;
  --board-bg-hover: #f9f9f9;
  /* Subtle hover tint */

  /* -- Dimensions & Spacing -- */
  --board-gap: 24px;
  --board-radius: 0px;
  --board-view-font-size: 15px;
  --board-list-height: 60px;
}

/* ==========================================================================
   Style 01: [공지/회원형] 표준 리스트 (Standard List)
   - Clean Table Layout
   - No fancy visuals, just structure
   ========================================================================== */
.uw-board-style01 {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--board-line-color);
  font-size: var(--board-view-font-size);
  color: var(--board-text-color);
}

.uw-board-style01 thead {
  border-bottom: 1px solid var(--board-border-color);
}

.uw-board-style01 th {
  padding: 15px 10px;
  font-weight: 600;
  text-align: center;
  color: var(--board-text-color);
}

.uw-board-style01 tbody tr {
  border-bottom: 1px solid var(--board-border-color);
  transition: background-color 0.2s ease;
}

.uw-board-style01 tbody tr:hover {
  background-color: var(--board-bg-hover);
}

/* Pinned (Notice) Styling - Minimal distinction */
.uw-board-style01 tbody tr.uw-pinned {
  background-color: #f7f7f7;
}

.uw-board-style01 td {
  padding: 0;
  height: var(--board-list-height);
  vertical-align: middle;
  text-align: center;
  color: var(--board-text-color);
}

/* Columns */
.uw-board-style01 .col-num {
  width: 80px;
  color: var(--board-meta-color);
}

.uw-board-style01 .col-title {
  text-align: left;
}

.uw-board-style01 .col-title a {
  display: block;
  /* Flex for alignment if icons exist */
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 15px;
  color: var(--board-text-color);
  text-decoration: none;
  transition: color 0.2s;
}

.uw-board-style01 .col-title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.uw-board-style01 .col-author,
.uw-board-style01 .col-date,
.uw-board-style01 .col-views {
  width: 120px;
  color: var(--board-meta-color);
  font-size: 0.95em;
}

/* Responsive: Style 01 */
@media (max-width: 768px) {
  .uw-board-style01 thead {
    display: none;
  }

  .uw-board-style01 tbody tr {
    display: flex;
    flex-wrap: wrap;
    padding: 15px 0;
    height: auto;
  }

  .uw-board-style01 td {
    height: auto;
    border: none;
    text-align: left;
    padding: 2px 0;
  }

  /* Mobile: Hide Number */
  .uw-board-style01 .col-num {
    display: none;
  }

  /* Mobile: Title First */
  .uw-board-style01 .col-title {
    width: 100%;
    order: -1;
    margin-bottom: 8px;
  }

  .uw-board-style01 .col-title a {
    padding: 0;
    font-size: 1.1em;
    font-weight: 600;
  }

  /* Mobile: Meta Data Inline */
  .uw-board-style01 .col-author,
  .uw-board-style01 .col-date,
  .uw-board-style01 .col-views {
    width: auto;
    font-size: 13px;
    margin-right: 12px;
  }
}


/* ==========================================================================
   Style 02: [3열 카드형] 미니멀 카드 (Minimal Card)
   - Grid Layout
   - Flat Borders
   - No Box-Shadow / No Lift
   ========================================================================== */
.uw-board-style02 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--board-gap);
  padding: 0;
  margin: 0;
  list-style: none;
}

.uw-board-style02 .uw-card-item {
  /* 3 Column Calculation taking gap into account */
  width: calc((100% - (var(--board-gap) * 2)) / 3);
  background: var(--board-bg-white);
  border: 1px solid var(--board-border-color);
  border-radius: var(--board-radius);
  transition: border-color 0.2s ease;
}

/* Hover: Only Border Color Change */
.uw-board-style02 .uw-card-item:hover {
  border-color: var(--board-main-color);
}

.uw-board-style02 .uw-card-item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px;
  text-decoration: none;
  color: inherit;
}

.uw-board-style02 .uw-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--board-meta-color);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.uw-board-style02 .uw-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--board-text-color);
  margin-bottom: auto;
  /* Push footer down */

  /* Text Limit */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.uw-board-style02 .uw-date {
  margin-top: 20px;
  font-size: 13px;
  color: var(--board-meta-color);
}

.uw-board-style02 .uw-card-item:hover .uw-title {
  color: var(--board-main-color);
}


/* ==========================================================================
   Style 03: [썸네일형] 카드 (Thumbnail Card)
   - Image + Text
   - Fixed Ratio
   - Flat Design
   ========================================================================== */
.uw-board-style03 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--board-gap);
  padding: 0;
  margin: 0;
  list-style: none;
}

.uw-board-style03 .uw-card-item {
  width: calc((100% - (var(--board-gap) * 2)) / 3);
  background: var(--board-bg-white);
  border: 1px solid var(--board-border-color);
  border-radius: var(--board-radius);
  overflow: hidden;
}

/* Image Wrapper */
.uw-board-style03 .uw-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
  border-bottom: 1px solid var(--board-border-color);
}

.uw-board-style03 .uw-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--uw-transition);
}

.uw-board-style03 .uw-card-item:hover .uw-thumb-wrap img {
  transform: scale(1.08);
}

/* No Image Placeholder */
.uw-board-style03 .uw-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ccc;
  font-size: 14px;
}

/* Content */
.uw-board-style03 .uw-content-wrap {
  padding: 20px;
}

.uw-board-style03 .uw-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--board-text-color);
  margin-bottom: 10px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uw-board-style03 .uw-summary {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  height: 3.2em;
  margin-bottom: 15px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.uw-board-style03 .uw-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--board-border-color);
  color: var(--board-meta-color);
  font-size: 13px;
}


/* ==========================================================================
   Responsive Grid (Common for Style 02 & 03)
   ========================================================================== */
@media (max-width: 1024px) {

  .uw-board-style02 .uw-card-item,
  .uw-board-style03 .uw-card-item {
    width: calc((100% - var(--board-gap)) / 2);
    /* 2 Columns */
  }
}

@media (max-width: 768px) {

  .uw-board-style02 .uw-card-item,
  .uw-board-style03 .uw-card-item {
    width: 100%;
    /* 1 Column */
  }
}
