/* BASIC css start */
/* ═══════════════════════════════════════════════════════════════════
   THELAB CHEMICAL — Main Page Styles
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero ── */
#hero { position: relative; overflow: hidden; }
.hero-bg {
  position: relative;
  min-height: 520px;
  background: linear-gradient(135deg, #0a1628 0%, #0d2847 40%, #0a1628 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-molecules { position: absolute; inset: 0; pointer-events: none; }
.mol {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: rgba(100,180,255,0.12);
  animation: mol-float linear infinite;
  white-space: nowrap;
}
@keyframes mol-float {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-20px) rotate(3deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
.hero-inner {
  position: relative; z-index: 1;
  text-align: center; color: #fff;
  padding: 60px 24px;
  max-width: 680px; width: 100%;
}
.hero-eyebrow {
  font-size: 13px; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.hero-title {
  font-size: 44px; font-weight: 800;
  line-height: 1.2; margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-title em { font-style: normal; color: #5eb3ff; }
.hero-sub {
  font-size: 17px; color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
}
.hero-search {
  display: flex; gap: 0;
  max-width: 540px; margin: 0 auto 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; overflow: hidden;
  transition: border-color 0.2s;
}
.hero-search:focus-within { border-color: rgba(94,179,255,0.6); }
.hero-search input {
  flex: 1; padding: 14px 20px;
  background: none; border: none; outline: none;
  color: #fff; font-size: 15px;
}
.hero-search input::placeholder { color: rgba(255,255,255,0.4); }
.hero-search button {
  padding: 14px 28px;
  background: #2b7fff; color: #fff;
  border: none; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.hero-search button:hover { background: #1a6be6; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.htag-label { font-size: 13px; color: rgba(255,255,255,0.4); margin-right: 4px; line-height: 30px; }
.htag {
  display: inline-block; padding: 4px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; color: rgba(255,255,255,0.7);
  font-size: 13px; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.htag:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ── Stats ── */
#sec-stats {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 32px 24px;
}
.stats-list {
  display: flex; justify-content: center;
  gap: 64px; list-style: none;
  max-width: 800px; margin: 0 auto;
  padding: 0;
}
.stat-item { text-align: center; }
.stat-row { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stat-num { font-size: 36px; font-weight: 800; color: #111; letter-spacing: -0.02em; }
.stat-unit { font-size: 18px; font-weight: 700; color: #888; }
.stat-label { display: block; font-size: 14px; color: #999; margin-top: 4px; }

@media (max-width: 600px) {
  .stats-list { gap: 24px; flex-wrap: wrap; }
  .stat-num { font-size: 28px; }
}


/* ═══════════════════════════════════════════════════════════════════
   Section A — THELABCOMM
   ═══════════════════════════════════════════════════════════════════ */
#sec-comm { padding: 48px 0 40px; background: #fafafa; }
#sec-comm .sec_inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.comm-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 20px;
}
.comm-title {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em; color: #111;
}
.comm-more {
  font-size: 14px; color: #999;
  text-decoration: none; transition: color 0.2s;
}
.comm-more:hover { color: #333; }

/* write bar */
.comm-write-bar {
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.comm-write-bar:focus-within { border-color: #2b7fff; }
.comm-write-placeholder {
  padding: 14px 20px; color: #aaa;
  cursor: pointer; font-size: 15px;
  transition: color 0.2s;
}
.comm-write-placeholder:hover { color: #666; }
.comm-write-form { display: none; padding: 16px 20px; }
.comm-write-form.open { display: block; }
.comm-write-form textarea {
  width: 100%; border: none; outline: none;
  resize: vertical; font-size: 15px;
  font-family: inherit; line-height: 1.6;
  min-height: 72px; color: #333;
  box-sizing: border-box;
}
.comm-write-form textarea::placeholder { color: #bbb; }
.comm-write-actions {
  display: flex; align-items: center;
  gap: 10px; margin-top: 12px;
}
.comm-write-actions input[type="text"] {
  flex: 0 0 180px; padding: 8px 12px;
  border: 1px solid #e5e5e5; border-radius: 8px;
  font-size: 13px; outline: none;
  font-family: inherit; color: #333;
  box-sizing: border-box;
}
.comm-write-actions input[type="text"]:focus { border-color: #2b7fff; }
#commSubmitBtn {
  margin-left: auto; padding: 8px 24px;
  background: #2b7fff; color: #fff;
  border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
#commSubmitBtn:hover { background: #1a6be6; }
#commSubmitBtn:disabled { background: #ccc; cursor: not-allowed; }
.comm-cancel {
  padding: 8px 16px; background: none;
  border: 1px solid #e5e5e5; border-radius: 8px;
  font-size: 14px; color: #888;
  cursor: pointer; font-family: inherit;
  transition: border-color 0.2s, color 0.2s;
}
.comm-cancel:hover { border-color: #ccc; color: #333; }

/* feed cards */
.comm-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.comm-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px; padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.comm-card:hover {
  border-color: #ccc;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.comm-card.skeleton {
  height: 130px; border-color: #eee;
  background: linear-gradient(90deg, #f5f5f5 25%, #ebebeb 50%, #f5f5f5 75%);
  background-size: 200% 100%;
  animation: comm-shimmer 1.5s ease-in-out infinite;
}
@keyframes comm-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.comm-card-meta {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 10px;
}
.comm-card-nick { font-size: 14px; font-weight: 600; color: #333; }
.comm-card-date { font-size: 12px; color: #bbb; }
.comm-card-content {
  font-size: 14px; line-height: 1.65; color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.comm-card-stats {
  display: flex; gap: 12px;
  margin-top: 12px; font-size: 12px; color: #ccc;
}

.comm-empty {
  grid-column: 1 / -1; text-align: center;
  padding: 48px 20px; color: #bbb; font-size: 14px;
}

@media (max-width: 900px) {
  .comm-feed { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .comm-feed { grid-template-columns: 1fr; }
  .comm-write-actions { flex-wrap: wrap; }
  .comm-write-actions input[type="text"] { flex: 1 1 100%; }
  #commSubmitBtn { margin-left: 0; }
}


/* ═══════════════════════════════════════════════════════════════════
   Section B — News + FAQ (2-column)
   ═══════════════════════════════════════════════════════════════════ */
#sec-mid { padding: 40px 0; background: #fff; }
#sec-mid .sec_inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) { .mid-grid { grid-template-columns: 1fr; } }

.info-list font { display: contents; }

/* ═══════════════════════════════════════════════════════════════════
   Section C — Boards (3-column)
   ═══════════════════════════════════════════════════════════════════ */
#sec-info { padding: 40px 0 56px; background: #fafafa; }
#sec-info .sec_inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bottom-grid font { display: contents; }
@media (max-width: 768px) { .bottom-grid { grid-template-columns: 1fr; } }


/* ═══════════════════════════════════════════════════════════════════
   Shared — info columns, lists, FAQ
   ═══════════════════════════════════════════════════════════════════ */
.info-col-head {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #111;
}
.info-col-title { font-size: 16px; font-weight: 700; color: #111; }
.info-col-more {
  font-size: 13px; color: #999;
  text-decoration: none; transition: color 0.2s;
}
.info-col-more:hover { color: #333; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-item {
  border-bottom: 1px solid #f0f0f0;
}
.info-item:last-child { border-bottom: none; }
.info-item.skeleton {
  height: 40px;
  background: #f5f5f5;
  border-radius: 4px;
  margin-bottom: 8px;
  animation: comm-shimmer 1.5s ease-in-out infinite;
  background: linear-gradient(90deg, #f5f5f5 25%, #ebebeb 50%, #f5f5f5 75%);
  background-size: 200% 100%;
}
.info-link {
  display: flex; justify-content: space-between;
  align-items: center; gap: 12px;
  padding: 10px 0;
  text-decoration: none; color: inherit;
  transition: color 0.2s;
}
.info-link:hover .info-subject { color: #2b7fff; }
.info-subject {
  flex: 1; font-size: 14px; color: #444;
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.info-meta {
  flex-shrink: 0; font-size: 12px; color: #bbb;
}

/* news source labels */
.news-src-label {
  flex-shrink: 0; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
  margin-right: 8px;
}
.news-src-st   { background: #e8f4fd; color: #1a6cb5; }
.news-src-cen  { background: #fef3e2; color: #9a6a16; }
.news-src-bric { background: #e8fbe8; color: #2a7a2a; }

.info-rss-notice {
  font-size: 12px; color: #bbb;
  margin-top: 12px;
}
.info-rss-notice a { color: #999; }

/* FAQ mini */
.faq-mini-list { list-style: none; margin: 0; padding: 0; }
.faq-mini-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.faq-mini-item:last-child { border-bottom: none; }
.faq-mini-q {
  font-size: 14px; font-weight: 600; color: #333;
  margin-bottom: 4px;
  cursor: default;
}
.faq-mini-q::before {
  content: 'Q.';
  color: #2b7fff; font-weight: 700;
  margin-right: 6px;
}
.faq-mini-a {
  font-size: 13px; color: #888;
  line-height: 1.5; padding-left: 22px;
}

/* scroll buttons */
.scroll-top, .scroll-bottom {
  position: fixed; right: 24px;
  width: 40px; height: 40px;
  background: #fff; border: 1px solid #e5e5e5;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #999;
  transition: box-shadow 0.2s, color 0.2s;
  z-index: 100;
}
.scroll-top { bottom: 72px; }
.scroll-bottom { bottom: 24px; }
.scroll-top:hover, .scroll-bottom:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); color: #333;
}
/* BASIC css end */

