/* ===========================================================================
   연예뉴스 목록 강조색 토큰
   ---------------------------------------------------------------------------
   이 테마의 강조색을 하드코딩하면 다크모드에서 어두운 배경에 어두운 글자가 되어
   글자가 보이지 않습니다. (실측 대비 2.4~3.4:1)
   표면 위 '글자'로 쓰는 값과 '배경'으로 쓰는 값을 분리합니다.
   =========================================================================== */
:root {
	--tt-accent:      #007aff;   /* 배경용 (흰 글자와 조합) */
	--tt-accent-text: #007aff;   /* 밝은 표면 위 글자 */
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--tt-accent-text: #7fb0ff;
	}
}

:root[data-theme="dark"] {
	--tt-accent-text: #7fb0ff;
}


.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
}

.card {
  width: 340px;
  background: var(--tt-surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
}

.card-title a {
  text-decoration: none;
  color: var(--tt-ink-900);
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
  line-height: 1.4;
}

.card-title a:hover {
  color: var(--tt-accent-text);
}

.card-meta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--tt-ink-500);
}

.ads {
  margin: 3rem auto;
  text-align: center;
}
form textarea {
  width: 100%;
  min-height: 60px;
  margin-top: 5px;
}
form input, form button {
  margin-top: 5px;
}
.btn {
  background: #007aff;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
}
.btn:hover {
  background: #005be3;
}
.article-link-box {
  text-align: center;
  margin-top: 2rem;
}

.article-button {
  background-color: var(--tt-accent-text);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 0.3s;
}

.article-button:hover {
  background-color: #0056d6;
}

.article-domain {
  font-size: 0.85rem;
  color: var(--tt-ink-500);
  margin-top: 0.5rem;
}

.detail-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  gap: 20px;
}

.article-main {
  flex: 1 1 700px;
  background: var(--tt-surface);
  padding: 1.5rem;
  border-radius: 10px;
}

.sidebar {
  width: 260px;
  background: var(--tt-ink-100);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.sidebar h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.sidebar a {
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--tt-ink-900);
}

.sidebar-thumb {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 6px;
  object-fit: cover;
}

.adsense-block {
  background: var(--tt-ink-100);
  color: var(--tt-ink-500);
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  font-size: 0.9rem;
}
.comment-box {
  margin-top: 3rem;
}

.comment-count {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.comment-form {
  border: 1px solid var(--tt-ink-300);
  border-radius: 8px;
  padding: 1rem;
  background: var(--tt-ink-100);
}

.comment-form-header {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.comment-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--tt-ink-300);
  border-radius: 6px;
}

.comment-textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--tt-ink-300);
  resize: vertical;
  font-size: 0.95rem;
}

.comment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.comment-char-count {
  font-size: 0.85rem;
  color: var(--tt-ink-500);
}

.comment-submit {
  background-color: #e60023;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.comment-submit:hover {
  background-color: #c9001f;
}
