/* ============================================
   Casino Party - Main Stylesheet
   Korean Casino Community Site
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* === CSS Variables - Light Theme (Default) === */
:root {
  --bg-primary: #f5f3fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #efedf6;
  --bg-card: #ffffff;
  --bg-card-hover: #faf9fd;
  --bg-input: #f0eef7;
  --text-primary: #1a1025;
  --text-secondary: #5a5270;
  --text-muted: #9490a8;
  --accent-gold: #7c3aed;
  --accent-gold-dark: #6d28d9;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-purple: #7c3aed;
  --accent-orange: #f59e0b;
  --border-color: #e0dbe8;
  --border-light: #cdc5db;
  --gradient-gold: #7c3aed;
  --gradient-dark: linear-gradient(180deg, #f5f3fa 0%, #efedf6 100%);
  --gradient-card: linear-gradient(145deg, #ffffff, #faf9fd);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.15);
  --topbar-bg: #1a1030;
  --topbar-text: #b8a8d0;
  --header-bg: #ffffff;
  --footer-bg: #1a1030;
  --footer-text: #b8a8d0;
  --hero-slide-1: linear-gradient(135deg, #1e1045 0%, #0f0a2e 40%, #15103a 100%);
  --hero-slide-2: linear-gradient(135deg, #2a1060 0%, #1e1045 40%, #0f0a2e 100%);
  --hero-slide-3: linear-gradient(135deg, #0f0a2e 0%, #2a1060 40%, #1e1045 100%);
  --hero-text: #ffffff;
  --hero-text-sub: #b8a8d0;
  --hero-badge-bg: rgba(124, 58, 237, 0.2);
  --hero-badge-border: rgba(124, 58, 237, 0.4);
  --hero-dot-bg: rgba(255, 255, 255, 0.2);
  --sidebar-banner-bg: linear-gradient(135deg, #1e1045, #2a1060);
  --sidebar-banner-text: #ffffff;
  --gold-on-dark: #a78bfa;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-kr: 'Noto Sans KR', sans-serif;
  --font-en: 'Poppins', sans-serif;
  --header-height: 70px;
  --sidebar-width: 260px;
  --max-width: 1400px;
}

/* === Dark Theme === */
[data-theme="dark"] {
  --bg-primary: #0c0815;
  --bg-secondary: #13101e;
  --bg-tertiary: #1c1630;
  --bg-card: #161028;
  --bg-card-hover: #201838;
  --bg-input: #181230;
  --text-primary: #ede8f5;
  --text-secondary: #a098b8;
  --text-muted: #706888;
  --accent-gold: #a78bfa;
  --accent-gold-dark: #8b5cf6;
  --accent-red: #ef4444;
  --accent-blue: #60a5fa;
  --accent-green: #34d399;
  --accent-purple: #a78bfa;
  --accent-orange: #fbbf24;
  --border-color: #2a2040;
  --border-light: #382e50;
  --gradient-gold: #8b5cf6;
  --gradient-dark: linear-gradient(180deg, #0c0815 0%, #13101e 100%);
  --gradient-card: linear-gradient(145deg, #1c1630, #13101e);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.2);
  --topbar-bg: #080610;
  --topbar-text: var(--text-secondary);
  --header-bg: #13101e;
  --footer-bg: #080610;
  --footer-text: var(--text-secondary);
  --hero-slide-1: linear-gradient(135deg, #1e1045 0%, #0f0a2e 40%, #15103a 100%);
  --hero-slide-2: linear-gradient(135deg, #2a1060 0%, #1e1045 40%, #0f0a2e 100%);
  --hero-slide-3: linear-gradient(135deg, #0f0a2e 0%, #2a1060 40%, #1e1045 100%);
  --hero-text: #ede8f5;
  --hero-text-sub: #a098b8;
  --hero-badge-bg: rgba(139, 92, 246, 0.15);
  --hero-badge-border: rgba(139, 92, 246, 0.35);
  --hero-dot-bg: rgba(255, 255, 255, 0.2);
  --sidebar-banner-bg: linear-gradient(135deg, #1e1045, #2a1060);
  --sidebar-banner-text: #ede8f5;
  --gold-on-dark: #a78bfa;
  --border-subtle: rgba(255, 255, 255, 0.04);
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  font-family: var(--font-kr);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-gold);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: var(--font-kr);
  cursor: pointer;
  border: none;
  outline: none;
}

input, textarea, select {
  font-family: var(--font-kr);
  outline: none;
  border: none;
}

/* === Utility Classes === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-gold {
  color: var(--accent-gold);
}

.text-red {
  color: var(--accent-red);
}

.text-blue {
  color: var(--accent-blue);
}

.text-green {
  color: var(--accent-green);
}

/* === Font Awesome Icon Styling === */
.section-title h3 > i,
.board-header h3 > i,
.sidebar-widget-header > i {
  color: var(--accent-gold);
  font-size: 0.95em;
  width: 22px;
  text-align: center;
}

.hero-badge i {
  margin-right: 4px;
}

.post-detail-info .info-item i {
  opacity: 0.5;
  font-size: 0.9em;
}

.star-rating {
  display: inline-flex;
  gap: 1px;
  font-size: 0.85em;
}

.star-rating i.fa-solid {
  color: var(--accent-gold);
}

.star-rating i.fa-regular {
  color: var(--text-muted);
}

.quick-menu-item i.fa-solid,
.quick-menu-item i.fa-regular {
  font-size: 26px;
  color: var(--accent-gold);
}

.ranking-card-logo i {
  font-size: 24px;
  color: var(--accent-gold);
}

.comment-avatar i {
  font-size: 16px;
  color: var(--text-secondary);
}

.action-btn i {
  font-size: 13px;
}

.comment-actions button i {
  font-size: 11px;
  margin-right: 2px;
}

.verification-card-header i {
  font-size: 0.9em;
}

.badge i {
  font-size: 0.9em;
  margin-right: 2px;
}

.editor-toolbar button i {
  font-size: 14px;
}

.popular-item .badge i {
  margin-right: 1px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-hot {
  background: var(--accent-red);
  color: #fff;
}

.badge-new {
  background: var(--accent-blue);
  color: #fff;
}

.badge-event {
  background: var(--accent-gold);
  color: #fff;
}

.badge-notice {
  background: var(--accent-purple);
  color: #fff;
}

.badge-verified {
  background: var(--accent-green);
  color: #fff;
}

.badge-danger {
  background: var(--accent-red);
  color: #fff;
}

/* === Top Bar === */
.top-bar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0;
  font-size: 12px;
  color: var(--topbar-text);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-bar-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.top-bar-right a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.top-bar-right a:hover {
  color: var(--accent-gold);
}

.top-bar-right .divider {
  color: var(--border-color);
}

/* === Header === */
.header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 22px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  font-weight: 900;
}

.logo-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 400;
  display: block;
  margin-top: -4px;
  -webkit-text-fill-color: var(--text-secondary);
}

/* === Main Navigation === */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav > li {
  position: relative;
}

.main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.main-nav > li > a:hover,
.main-nav > li.active > a {
  color: var(--accent-gold);
  background: rgba(124, 58, 237, 0.08);
}

.main-nav > li > a .arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.main-nav > li:hover > a .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s;
  box-shadow: var(--shadow-card);
  z-index: 100;
}

.main-nav > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.dropdown-menu a:hover {
  background: rgba(124, 58, 237, 0.06);
  color: var(--accent-gold);
  padding-left: 24px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gradient-gold);
  color: #fff;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.3);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-red {
  background: var(--accent-red);
  color: #fff;
}

.btn-red:hover {
  background: #e62e4f;
  color: #fff;
}

.btn-blue {
  background: var(--accent-blue);
  color: #fff;
}

.btn-blue:hover {
  background: #3a6de6;
  color: #fff;
}

.btn-dark {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-dark:hover {
  border-color: var(--accent-gold);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0 4px 0 16px;
  width: 260px;
  transition: border-color 0.2s;
}

.search-bar:focus-within {
  border-color: var(--accent-gold);
}

.search-bar input {
  flex: 1;
  background: transparent;
  color: var(--text-primary);
  padding: 8px 0;
  font-size: 13px;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar button {
  background: var(--accent-gold);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* === Mobile Menu Toggle === */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* === Hero / Banner Section === */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-slider {
  position: relative;
  height: 380px;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  width: 100%;
  height: 100%;
  background: var(--hero-slide-1);
  position: relative;
  overflow: hidden;
}

.hero-slide:nth-child(2) .hero-slide-bg {
  background: var(--hero-slide-2);
}

.hero-slide:nth-child(3) .hero-slide-bg {
  background: var(--hero-slide-3);
}

.hero-slide-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 700px;
  z-index: 2;
}

.hero-content .hero-badge {
  display: inline-block;
  background: var(--hero-badge-bg);
  border: 1px solid var(--hero-badge-border);
  color: var(--gold-on-dark);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--hero-text);
}

.hero-content h2 .gold {
  color: var(--gold-on-dark);
}

.hero-content p {
  color: var(--hero-text-sub);
  font-size: 15px;
  margin-bottom: 28px;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hero-dot-bg);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-dot.active {
  background: var(--accent-gold);
  width: 30px;
  border-radius: 5px;
}

/* === Ticker / Announcement === */
.ticker-bar {
  background: rgba(124, 58, 237, 0.05);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  overflow: hidden;
}

.ticker-bar .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-label {
  background: var(--accent-red);
  color: #fff;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-content {
  overflow: hidden;
  flex: 1;
}

.ticker-scroll {
  display: flex;
  animation: tickerScroll 30s linear infinite;
  gap: 60px;
}

.ticker-scroll a {
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-secondary);
}

.ticker-scroll a:hover {
  color: var(--accent-gold);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Page Layout === */
.page-layout {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 40px;
}

.page-main {
  flex: 1;
  min-width: 0;
}

.page-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

/* === Section Titles === */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.section-title h3 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title h3 .icon {
  color: var(--accent-gold);
}

.section-title .more-link {
  font-size: 12px;
  color: var(--text-secondary);
}

.section-title .more-link:hover {
  color: var(--accent-gold);
}

/* === Casino Ranking Cards === */
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.ranking-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.ranking-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.ranking-card .rank-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--gradient-gold);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 0 0 12px 0;
  font-family: var(--font-en);
}

.ranking-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-top: 10px;
}

.ranking-card-logo {
  width: 56px;
  height: 56px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid var(--border-color);
}

.ranking-card-info h4 {
  font-size: 16px;
  font-weight: 700;
}

.ranking-card-info .rating {
  color: var(--accent-gold);
  font-size: 13px;
  margin-top: 2px;
}

.ranking-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.ranking-card-tags span {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: var(--accent-gold);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
}

.ranking-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.ranking-card-footer {
  display: flex;
  gap: 8px;
}

.ranking-card-footer .btn {
  flex: 1;
}

/* === Board / Post List === */
.board-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
}

.board-header {
  background: var(--bg-tertiary);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.board-header h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-header h3 .icon {
  color: var(--accent-gold);
  font-size: 18px;
}

.board-tabs {
  display: flex;
  gap: 4px;
}

.board-tab {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.board-tab:hover,
.board-tab.active {
  color: var(--accent-gold);
  background: rgba(124, 58, 237, 0.08);
}

.post-list {
  padding: 0;
}

.post-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s;
  gap: 12px;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item:hover {
  background: rgba(124, 58, 237, 0.02);
}

.post-category {
  min-width: 60px;
  text-align: center;
}

.post-category span {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.post-title-area {
  flex: 1;
  min-width: 0;
}

.post-title-area a {
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-title-area .comment-count {
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 600;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.post-meta .author {
  min-width: 70px;
  text-align: center;
}

.post-meta .date {
  min-width: 70px;
  text-align: center;
}

.post-meta .views {
  min-width: 50px;
  text-align: center;
}

.post-meta .likes {
  min-width: 40px;
  text-align: center;
  color: var(--accent-red);
}

/* === Board Table Style (for full board pages) === */
.board-table {
  width: 100%;
}

.board-table-header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.board-table-header .col-num { width: 60px; text-align: center; }
.board-table-header .col-category { width: 80px; text-align: center; }
.board-table-header .col-title { flex: 1; }
.board-table-header .col-author { width: 100px; text-align: center; }
.board-table-header .col-date { width: 90px; text-align: center; }
.board-table-header .col-views { width: 60px; text-align: center; }
.board-table-header .col-likes { width: 60px; text-align: center; }

.board-table-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s;
  font-size: 13px;
}

.board-table-row:hover {
  background: rgba(124, 58, 237, 0.02);
}

.board-table-row.notice {
  background: rgba(124, 58, 237, 0.03);
}

.board-table-row .col-num { width: 60px; text-align: center; color: var(--text-secondary); font-size: 12px; }
.board-table-row .col-category { width: 80px; text-align: center; }
.board-table-row .col-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-table-row .col-title a { display: inline-flex; align-items: center; gap: 6px; }
.board-table-row .col-title .comment-count { color: var(--accent-gold); font-size: 12px; }
.board-table-row .col-author { width: 100px; text-align: center; color: var(--text-secondary); font-size: 12px; }
.board-table-row .col-date { width: 90px; text-align: center; color: var(--text-secondary); font-size: 12px; }
.board-table-row .col-views { width: 60px; text-align: center; color: var(--text-secondary); font-size: 12px; }
.board-table-row .col-likes { width: 60px; text-align: center; color: var(--accent-red); font-size: 12px; }

/* === Sidebar Widgets === */
.sidebar-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
}

.sidebar-widget-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-widget-header .icon {
  color: var(--accent-gold);
}

.sidebar-widget-body {
  padding: 12px 16px;
}

/* Login Widget */
.login-widget-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-widget-form input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 13px;
}

.login-widget-form input:focus {
  border-color: var(--accent-gold);
}

.login-widget-links {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
}

.login-widget-links a {
  color: var(--text-secondary);
}

/* Popular Posts Widget */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.popular-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
}

.popular-item .rank {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  flex-shrink: 0;
  font-family: var(--font-en);
}

.popular-item:nth-child(1) .rank {
  background: var(--accent-gold);
  color: #fff;
}

.popular-item:nth-child(2) .rank {
  background: #c0c0c0;
  color: #000;
}

.popular-item:nth-child(3) .rank {
  background: #cd7f32;
  color: #000;
}

.popular-item .title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popular-item .count {
  font-size: 11px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Banner Widget */
.sidebar-banner {
  background: var(--sidebar-banner-bg);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  color: var(--sidebar-banner-text);
}

.sidebar-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.sidebar-banner h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gold-on-dark);
}

.sidebar-banner p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

/* Online Users Widget */
.online-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.online-stat {
  text-align: center;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.online-stat .number {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-gold);
  font-family: var(--font-en);
}

.online-stat .label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* === Quick Menu Section === */
.quick-menu {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.quick-menu-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 10px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.quick-menu-item:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.quick-menu-item .qm-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.quick-menu-item .qm-title {
  font-size: 13px;
  font-weight: 600;
}

.quick-menu-item .qm-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* === Verification Section === */
.verification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.verification-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.3s;
}

.verification-card:hover {
  border-color: var(--accent-red);
}

.verification-card.safe {
  border-left: 3px solid var(--accent-green);
}

.verification-card.danger {
  border-left: 3px solid var(--accent-red);
}

.verification-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 10px;
}

.verification-card-header h4 {
  font-size: 15px;
  font-weight: 700;
}

.verification-card-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.verification-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-secondary);
}

/* === Pagination === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: all 0.2s;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.pagination a:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.pagination .active {
  background: var(--accent-gold);
  color: #fff;
  font-weight: 700;
  border-color: var(--accent-gold);
}

/* === Auth Pages (Login, Register) === */
.auth-page {
  min-height: calc(100vh - var(--header-height) - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-card);
}

.auth-box .logo {
  justify-content: center;
  margin-bottom: 8px;
}

.auth-box-title {
  text-align: center;
  margin-bottom: 30px;
}

.auth-box-title h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-box-title p {
  font-size: 13px;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group label .required {
  color: var(--accent-red);
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--accent-gold);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239898b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-gold);
}

.form-check label {
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-check label a {
  color: var(--accent-gold);
  text-decoration: underline;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 13px;
}

.auth-links a {
  color: var(--text-secondary);
}

.auth-links .sep {
  color: var(--border-color);
}

.social-login {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.social-login-title {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.social-buttons {
  display: flex;
  gap: 10px;
}

.social-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.2s;
}

.social-btn:hover {
  opacity: 0.85;
  color: inherit;
}

.social-btn.kakao {
  background: #fee500;
  color: #000;
}

.social-btn.naver {
  background: #03c75a;
  color: #fff;
}

.social-btn.google {
  background: #fff;
  color: #333;
}

/* === Post Detail Page === */
.post-detail {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-detail-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.post-detail-header .post-detail-category {
  margin-bottom: 8px;
}

.post-detail-header h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
}

.post-detail-info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.post-detail-info .info-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-detail-body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.8;
  min-height: 300px;
}

.post-detail-body p {
  margin-bottom: 16px;
}

.post-detail-actions {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-detail-actions .left {
  display: flex;
  gap: 8px;
}

.post-detail-actions .right {
  display: flex;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.action-btn.liked {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* Comments */
.comments-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-top: 16px;
  overflow: hidden;
}

.comments-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
  font-weight: 700;
}

.comments-header span {
  color: var(--accent-gold);
}

.comment-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.comment-author {
  font-size: 13px;
  font-weight: 600;
}

.comment-date {
  font-size: 11px;
  color: var(--text-secondary);
}

.comment-body {
  font-size: 13px;
  line-height: 1.6;
  padding-left: 46px;
  color: var(--text-secondary);
}

.comment-actions {
  padding-left: 46px;
  margin-top: 6px;
  display: flex;
  gap: 12px;
}

.comment-actions button {
  font-size: 11px;
  color: var(--text-muted);
  background: none;
  transition: color 0.2s;
}

.comment-actions button:hover {
  color: var(--accent-gold);
}

.comment-write {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
}

.comment-write textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  color: var(--text-primary);
  font-size: 13px;
  min-height: 80px;
  resize: vertical;
  margin-bottom: 10px;
}

.comment-write textarea:focus {
  border-color: var(--accent-gold);
}

.comment-write-footer {
  display: flex;
  justify-content: flex-end;
}

/* === Post Write Page === */
.write-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.write-form-header {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.write-form-header select {
  width: 200px;
}

.write-form-title input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.write-form-title input:focus {
  border-color: var(--accent-gold);
}

.write-form-editor {
  margin-bottom: 16px;
}

.editor-toolbar {
  display: flex;
  gap: 2px;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.editor-toolbar button {
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.editor-toolbar button:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-gold);
}

.editor-content {
  width: 100%;
  min-height: 400px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 16px;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.8;
  resize: vertical;
}

.write-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.write-form-actions .left {
  display: flex;
  gap: 8px;
}

.write-form-actions .right {
  display: flex;
  gap: 8px;
}

/* === Page Header (Board pages) === */
.page-header {
  padding: 30px 0 20px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

.page-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.page-breadcrumb a {
  color: var(--text-secondary);
}

.page-breadcrumb a:hover {
  color: var(--accent-gold);
}

.page-breadcrumb .sep {
  color: var(--border-color);
}

/* Board Controls */
.board-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.board-controls-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

.board-controls-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.board-search {
  display: flex;
  gap: 6px;
}

.board-search select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 13px;
  appearance: none;
}

.board-search input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 13px;
  width: 200px;
}

/* === Terms / Privacy Pages === */
.terms-page {
  padding: 40px 0 60px;
}

.terms-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.terms-box h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}

.terms-box .terms-date {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.terms-box h2 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  color: var(--accent-gold);
}

.terms-box h3 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
}

.terms-box p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.terms-box ol,
.terms-box ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.terms-box li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 4px;
  list-style: decimal;
}

.terms-box ul li {
  list-style: disc;
}

/* === Profile Page === */
.profile-page {
  padding: 30px 0 60px;
}

.profile-header {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 3px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}

.profile-info h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-info .level {
  display: inline-block;
  background: var(--gradient-gold);
  color: #fff;
  padding: 2px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

.profile-stats {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.profile-stat {
  text-align: center;
}

.profile-stat .number {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-gold);
  font-family: var(--font-en);
}

.profile-stat .label {
  font-size: 12px;
  color: var(--text-secondary);
}

.profile-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  width: fit-content;
}

.profile-tab {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-tab.active {
  background: var(--accent-gold);
  color: #fff;
  font-weight: 700;
}

.profile-tab:hover:not(.active) {
  color: var(--accent-gold);
}

/* === Footer === */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  margin-top: 60px;
  color: var(--footer-text);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--footer-text);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-social a:hover {
  border-color: var(--gold-on-dark);
  color: var(--gold-on-dark);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gold-on-dark);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--footer-text);
}

.footer-col ul li a:hover {
  color: var(--gold-on-dark);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links a:hover {
  color: var(--gold-on-dark);
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* === Responsive === */
@media (max-width: 1200px) {
  .page-sidebar {
    width: 240px;
  }
}

@media (max-width: 1024px) {
  .page-sidebar {
    display: none;
  }

  .quick-menu {
    grid-template-columns: repeat(3, 1fr);
  }

  .ranking-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 13px;
  }

  .top-bar {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-slider {
    height: 260px;
  }

  .hero-content h2 {
    font-size: 22px;
  }

  .quick-menu {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .quick-menu-item {
    padding: 14px 6px;
  }

  .quick-menu-item .qm-desc {
    display: none;
  }

  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .verification-grid {
    grid-template-columns: 1fr;
  }

  .post-meta .date,
  .post-meta .views,
  .post-meta .likes {
    display: none;
  }

  .board-table-header .col-num,
  .board-table-row .col-num,
  .board-table-header .col-views,
  .board-table-row .col-views,
  .board-table-header .col-likes,
  .board-table-row .col-likes {
    display: none;
  }

  .auth-box {
    padding: 28px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }

  .profile-stats {
    margin-left: 0;
  }

  .search-bar {
    width: 200px;
  }

  .container {
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  .quick-menu {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-slider {
    height: 220px;
  }

  .hero-content h2 {
    font-size: 18px;
  }

  .hero-content p {
    font-size: 13px;
  }

  .search-bar {
    display: none;
  }

  .profile-stats {
    gap: 16px;
  }
}

/* === Theme Toggle Button === */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--accent-gold);
  transform: scale(1.08);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* === Theme Transition === */
body,
body *,
body *::before,
body *::after {
  transition-property: background-color, background, border-color, color, box-shadow;
  transition-duration: 0s;
}

body.theme-transitioning,
body.theme-transitioning *,
body.theme-transitioning *::before,
body.theme-transitioning *::after {
  transition-duration: 0.35s !important;
  transition-timing-function: ease !important;
}

/* === Light Theme Specific Overrides === */
:root .nav-hover-bg,
.main-nav > li > a:hover,
.main-nav > li.active > a {
  background: rgba(124, 58, 237, 0.1);
}

:root .dropdown-menu a:hover {
  background: rgba(124, 58, 237, 0.08);
}

:root .board-tab:hover,
:root .board-tab.active {
  background: rgba(124, 58, 237, 0.12);
}

:root .post-item:hover {
  background: rgba(124, 58, 237, 0.05);
}

:root .board-table-row:hover {
  background: rgba(124, 58, 237, 0.05);
}

:root .board-table-row.notice {
  background: rgba(124, 58, 237, 0.06);
}

:root .ranking-card-tags span {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

:root .post-item:hover,
:root .board-table-row:hover {
  background: rgba(124, 58, 237, 0.05);
}

/* Dark Theme Specific Overrides */
[data-theme="dark"] .main-nav > li > a:hover,
[data-theme="dark"] .main-nav > li.active > a {
  background: rgba(124, 58, 237, 0.08);
}

[data-theme="dark"] .dropdown-menu a:hover {
  background: rgba(124, 58, 237, 0.06);
}

[data-theme="dark"] .board-tab:hover,
[data-theme="dark"] .board-tab.active {
  background: rgba(124, 58, 237, 0.08);
}

[data-theme="dark"] .post-item:hover,
[data-theme="dark"] .board-table-row:hover {
  background: rgba(124, 58, 237, 0.02);
}

[data-theme="dark"] .board-table-row.notice {
  background: rgba(124, 58, 237, 0.03);
}

[data-theme="dark"] .ranking-card-tags span {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

/* Light theme - logo text needs forced color */
:root .logo-text {
  background: #6d28d9;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .logo-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light theme - header shadow for depth */
:root .header {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .header {
  box-shadow: none;
}

/* Light theme board sections */
:root .board-section {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

:root .ranking-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

:root .sidebar-widget {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

:root .auth-box {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
}

:root .post-detail {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

:root .comments-section {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

:root .write-form {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

:root .terms-box {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

/* Light theme - verification card borders */
:root .verification-card.safe {
  border-left: 3px solid var(--accent-green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

:root .verification-card.danger {
  border-left: 3px solid var(--accent-red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Light theme - online stat boxes */
:root .online-stat {
  background: var(--bg-primary);
}

/* Light theme - ticker */
:root .ticker-bar {
  background: rgba(124, 58, 237, 0.05);
}

[data-theme="dark"] .ticker-bar {
  background: rgba(124, 58, 237, 0.05);
}

/* Light theme - top bar links */
:root .top-bar-right a {
  color: var(--topbar-text);
}

:root .top-bar-right a:hover {
  color: #a78bfa;
}

/* Light theme quick menu */
:root .quick-menu-item {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

:root .quick-menu-item:hover {
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
}

[data-theme="dark"] .quick-menu-item {
  background: var(--gradient-card);
  box-shadow: none;
}

/* Light theme - editor toolbar */
:root .editor-toolbar button:hover {
  background: rgba(124, 58, 237, 0.1);
}

/* Light theme - quick menu item hover border */
:root .quick-menu-item:hover {
  border-color: var(--accent-gold);
}

/* Light theme - ranking card hover glow */
:root .ranking-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.12);
}

/* Mobile theme toggle positioning */
@media (max-width: 768px) {
  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}


/* ============================================
   AIFLOW PHP 버전 - 추가 스타일
   ============================================ */

/* 게시판 스킨 board-table-row 공지글 */
.board-table-row.notice {
  background: rgba(124, 58, 237, 0.04);
  border-left: 3px solid var(--accent-gold);
}

/* 글쓰기 에디터 contenteditable */
[contenteditable="true"]:focus {
  outline: none;
  border-color: var(--accent-gold) !important;
}

/* 프로필 페이지 stats 반응형 */
@media (max-width: 768px) {
  .profile-stats {
    gap: 14px;
    justify-content: center;
  }
  .profile-stat .number {
    font-size: 20px;
  }
}

/* 게시판 스킨 - 파일 첨부 아이콘 */
.board-table-row .col-title i.fa-paperclip {
  color: var(--text-muted);
  font-size: 11px;
  margin-left: 2px;
}

/* 사이드바 커뮤니티 링크 hover */
.sidebar-widget a:hover {
  color: var(--accent-gold);
}

/* 갤러리 그리드 반응형 */
@media (max-width: 768px) {
  .gallery-grid-item {
    grid-column: span 1;
  }
}

/* write-form select 스타일 */
.write-form-header select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239898b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

/* 프로필 탭 아이콘 */
.profile-tab i {
  margin-right: 5px;
}

/* 요금제 카드 hover 효과 */
.pricing-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* 모바일 메뉴 active 상태 */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 검색 결과 키워드 하이라이트 */
.search-highlight {
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-gold);
  border-radius: 2px;
  padding: 0 2px;
}

/* 토스트 알림 */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 게시판 no-data 상태 */
.board-no-data {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}
.board-no-data i {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* 크레딧 배지 색상 */
.credit-earn  { color: var(--accent-green); }
.credit-use   { color: var(--accent-red); }
.credit-bonus { color: var(--accent-gold); }

/* FAQ 아코디언 */
.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 8px;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 프린트 스타일 */
@media print {
  .header, .footer, .page-sidebar, .top-bar, .ticker-bar { display: none !important; }
  .page-main { width: 100% !important; }
}
