/* tobe/public/common/css/board.css */

.board-container {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.board-header {
  text-align: center;
  margin-bottom: 50px;
}

.board-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.board-header p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* Tab Navigation */
.board-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 45px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 25px;
  flex-wrap: wrap;
}

.board-tab-btn {
  padding: 12px 26px;
  border-radius: 30px;
  background: #f8fafc;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.board-tab-btn:hover {
  background: #e2e8f0;
  color: var(--color-text-primary);
  border-color: #cbd5e1;
}

.board-tab-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 136, 209, 0.25);
}

/* Modern Board Table */
.board-table-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.95rem;
}

.board-table th:nth-child(2),
.board-table td:nth-child(2) {
  text-align: left;
}

.board-table th {
  background: #f1f5f9;
  border-bottom: 1.5px solid var(--color-border);
  font-weight: 700;
  color: var(--color-text-primary);
  padding: 18px 24px;
}

.board-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
  transition: background-color 0.2s ease;
}

.board-table th:first-child,
.board-table td:first-child {
  padding-left: 12px;
  padding-right: 12px;
  text-align: center;
  width: 90px;
}

.board-table tr:last-child td {
  border-bottom: none;
}

.board-table tr:hover td {
  background-color: #f8fafc;
}

.board-badge-notice {
  background: #ef4444;
  color: white;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  display: inline-block;
}

.board-badge-secret {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.board-title-link {
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.board-title-link:hover {
  color: var(--color-primary);
}

/* Card Lists */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.board-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.board-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 136, 209, 0.08);
  border-color: rgba(0, 136, 209, 0.2);
}

.board-card-banner {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #00b4d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
}

.board-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.board-card-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(0, 136, 209, 0.08);
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 14px;
  display: inline-block;
}

.board-card-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.board-card-title a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.board-card-title a:hover {
  color: var(--color-primary);
}

.board-card-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.board-card-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Detail Page */
.board-detail-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 50px 40px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  margin-bottom: 40px;
}

.board-detail-title {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 25px;
  margin-bottom: 30px;
}

.board-detail-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-top: 8px;
  letter-spacing: -0.02em;
}

.board-detail-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 20px;
  margin-top: 14px;
}

.board-detail-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-primary);
  min-height: 250px;
}

/* Replies styling */
.reply-card {
  background: #eef7fc;
  border: 1px solid rgba(0, 136, 209, 0.2);
  padding: 28px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.reply-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 136, 209, 0.1);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

/* Form Styles */
.board-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.board-form-label {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.board-form-control {
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0 16px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
  background: #ffffff;
}

.board-form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 136, 209, 0.1);
}

textarea.board-form-control {
  height: auto;
  padding: 16px;
}

/* Premium Pill Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.btn-pill.primary {
  background: var(--color-primary);
  color: white !important;
  box-shadow: 0 4px 15px rgba(0, 136, 209, 0.2);
}

.btn-pill.primary:hover {
  background: #0077b5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 209, 0.3);
}

.btn-pill.primary-outline {
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary) !important;
}

.btn-pill.primary-outline:hover {
  background: rgba(0, 136, 209, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 209, 0.1);
}

/* Pagination styling */
.board-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.pag-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

.pag-btn:hover {
  background: #f1f5f9;
  color: var(--color-text-primary);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.pag-btn.active {
  background: var(--color-primary);
  color: white !important;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 136, 209, 0.25);
}

/* Active Header Separation on subpages */
#header.act .hd_inner {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

/* Premium Toggle Switch */
.switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.switch input:checked + .slider {
  background-color: var(--color-primary);
}

.switch input:checked + .slider:before {
  transform: translateX(24px);
}

/* Clean Auth Card Layout */
.auth-container {
  max-width: 440px;
  margin: 100px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.auth-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 50px 40px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.015);
  text-align: center;
}

.auth-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 35px 0;
  line-height: 1.5;
}

/* Auth Input Style */
.auth-input-group {
  margin-bottom: 16px;
  text-align: left;
}

input[type="text"].auth-input,
input[type="email"].auth-input,
input[type="password"].auth-input,
input.auth-input,
.auth-input {
  width: 100% !important;
  height: 52px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 0 18px !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  outline: none !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  display: block !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.auth-input::placeholder {
  color: #94a3b8;
}

input[type="text"].auth-input:focus,
input[type="email"].auth-input:focus,
input[type="password"].auth-input:focus,
input.auth-input:focus,
.auth-input:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 4px rgba(0, 136, 209, 0.1) !important;
  background-color: #ffffff !important;
}

/* Auth Buttons */
.auth-btn-primary {
  width: 100%;
  height: 52px;
  background-color: var(--color-primary);
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 136, 209, 0.15);
  text-decoration: none;
}

.auth-btn-primary:hover {
  background-color: #0077b5;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 136, 209, 0.25);
}

.auth-btn-social {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.auth-btn-social:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.auth-btn-social.naver {
  background-color: #03c75a;
  color: #ffffff !important;
}

.auth-btn-social.kakao {
  background-color: #fee500;
  color: #191919 !important;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 28px 0;
  color: #94a3b8;
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background-color: #e2e8f0;
}

.auth-divider span {
  padding: 0 16px;
  font-weight: 600;
}

.auth-footer-links {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.auth-footer-link {
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-footer-link:hover {
  color: var(--color-primary);
}

.auth-footer-divider {
  width: 1px;
  height: 12px;
  background-color: #cbd5e1;
}

.auth-demo-box {
  margin-top: 24px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.6;
  text-align: left;
}

/* Auth Label & Helper Styles */
.auth-label {
  display: block;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-align: left;
}

.auth-label .required-dot {
  color: #ef4444;
  margin-left: 2px;
  font-weight: bold;
}

.auth-label .helper-text {
  font-weight: 400;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-left: 6px;
}

.auth-input-helper {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 6px;
  font-weight: 500;
  text-align: left;
}
