/*
Theme Name: ATF-BOORU Light Theme
Theme URI: https://atf-booru.com/
Author: Antigravity AI
Description: Dynamic Light Theme clone of ATF-BOORU Digital Artwork Platform with Poppins & Inter Typography
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: atf-booru-com
*/

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

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-purple-light: #f3e8ff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-color: #cbd5e1;
  
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: #ede9fe;
  --primary-glow: rgba(124, 58, 237, 0.2);
  
  --rating-safe: #047857;
  --rating-safe-bg: #d1fae5;
  --rating-quest: #b45309;
  --rating-quest-bg: #fef3c7;
  --rating-expl: #b91c1c;
  --rating-expl-bg: #fee2e2;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.12);
}

body.dark-mode {
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-alt: #334155;
  --bg-purple-light: #312e81;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-light: #94a3b8;
  --border-color: #475569;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--primary);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Header */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--text-main);
}

.brand-text p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-search {
  flex: 1;
  max-width: 550px;
  position: relative;
}

.header-search input {
  width: 100%;
  height: 44px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 0 50px 0 18px;
  font-size: 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.header-search input:focus {
  outline: none;
  background-color: var(--bg-card);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.header-search button {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.header-nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.header-nav-links a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

/* Page Layout */
.layout-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}

/* Left Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
}

.sidebar-menu a:hover, .sidebar-menu li.active a {
  background-color: var(--primary-light);
  color: var(--primary);
}

.sidebar-menu svg {
  width: 18px;
  height: 18px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.toggle-switch.checked {
  background-color: var(--primary);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch.checked::after {
  transform: translateX(20px);
}

.tag-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tag-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.tag-item a {
  color: var(--primary);
  font-weight: 600;
}

.tag-count {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
}

.trending-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trending-img {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.trending-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.trending-info p {
  font-size: 14px;
  color: var(--text-muted);
}

.sidebar-footer {
  font-size: 14px;
  color: var(--text-light);
  padding: 0 4px;
}

/* Right Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Hero Section */
.hero-card {
  background: linear-gradient(135deg, #ede9fe 0%, #f8fafc 50%, #ffffff 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

body.dark-mode .hero-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
}

.hero-body h2 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text-main);
}

.hero-body h2 span {
  color: var(--primary);
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-body p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 580px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.quick-tools-panel {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

body.dark-mode .quick-tools-panel {
  background-color: rgba(30, 41, 59, 0.9);
}

.quick-tools-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.quick-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: center;
}

/* Quick Tools Custom Scrollbar */
.quick-tools-grid::-webkit-scrollbar {
  width: 6px;
}

.quick-tools-grid::-webkit-scrollbar-track {
  background: var(--bg-alt);
  border-radius: 4px;
}

.quick-tools-grid::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.quick-tools-grid::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

.tool-tile {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: all 0.2s ease;
}

.tool-tile:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.tool-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-info h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-heading);
  line-height: 1.2;
}

.tool-info p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Latest Artwork Section */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
}

.section-title svg {
  color: var(--primary);
}

.artwork-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.pill-btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid var(--border-color);
  background-color: var(--bg-alt);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pill-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-safe { background-color: var(--rating-safe); }
.dot-quest { background-color: var(--rating-quest); }
.dot-expl { background-color: var(--rating-expl); }

.sort-select {
  appearance: none;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 36px 8px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* Artwork Cards Grid */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.art-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.art-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background-color: var(--bg-alt);
  overflow: hidden;
}

.art-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.art-card:hover .art-img-wrapper img {
  transform: scale(1.06);
}

.res-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.like-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.like-btn:hover, .like-btn.liked {
  background-color: #ef4444;
  color: white;
}

.art-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.art-title {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rating-badge {
  font-size: 14px;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rating-badge.rating-S {
  background-color: var(--rating-safe-bg);
  color: var(--rating-safe);
}

.rating-badge.rating-Q {
  background-color: var(--rating-quest-bg);
  color: var(--rating-quest);
}

.rating-badge.rating-E {
  background-color: var(--rating-expl-bg);
  color: var(--rating-expl);
}

.artist-name {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-tag {
  font-size: 14px;
  background-color: var(--bg-alt);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.art-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 6px;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* Bottom Grid 4-Columns */
.bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.bottom-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.bottom-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bottom-card-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}

.bottom-card-header a {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

/* Breadcrumbs */
.breadcrumbs-nav {
  margin-bottom: 20px;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 14px;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-item.current {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 14px;
}

/* Inner Page Layout */
.page-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.page-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text-main);
}

/* Tool Forms */
.tool-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.tool-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.tool-form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.tool-form-group input, .tool-form-group select, .tool-form-group textarea {
  width: 100%;
  height: 46px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-main);
}

.tool-form-group input:focus, .tool-form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.tool-results-box {
  background-color: var(--bg-alt);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-top: 24px;
}

/* Responsive */
@media (max-width: 1280px) {
  .artwork-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .bottom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .layout-container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-card {
    grid-template-columns: 1fr;
  }
  .artwork-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    grid-template-columns: 1fr;
  }
  .artwork-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .artwork-grid {
    grid-template-columns: 1fr;
  }
  .header-search {
    display: none;
  }
}



/* Single Post & Blog Styles */
.article-header {
  margin-bottom: 24px;
}

.article-category-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.article-title-main {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 16px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-muted);
}

.author-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.article-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.article-body-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 32px;
}

.article-body-content p {
  margin-bottom: 20px;
}

.article-body-content h2, .article-body-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  margin: 32px 0 16px 0;
}

.article-body-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  background-color: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  margin: 24px 0;
}

.author-bio-box {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 32px 0;
}

.author-bio-info h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.comments-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.comments-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.comment-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.comment-item-card {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-content-box {
  flex: 1;
}

.comment-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.comment-author-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
}

.comment-date-str {
  font-size: 14px;
  color: var(--text-light);
}

.comment-body-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.comment-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.comment-form-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}



/* Comment Reply Link Styling */
.comment-reply-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.comment-reply-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}



/* Hero Feature Tools (Below Search Artwork buttons) */
.hero-feature-tools {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 520px;
}

.hero-feature-tile {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.hero-feature-tile:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-feature-tile .tool-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-feature-tile .tool-info h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-heading);
  line-height: 1.2;
}

.hero-feature-tile .tool-info p {
  font-size: 14px;
  color: var(--text-muted);
}


/* Hero Banner & Unified 8-Tools Grid */
.hero-card {
  background: linear-gradient(135deg, #ede9fe 0%, #f8fafc 50%, #ffffff 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-body h2 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text-main);
}

.hero-body h2 span {
  color: var(--primary);
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-body p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 680px;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-all-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hero-tool-tile {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  height: auto;
}

.hero-tool-tile:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-tool-tile .tool-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-tool-tile .tool-info h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 2px;
}

.hero-tool-tile .tool-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.3;
  margin: 0;
}

@media (max-width: 1280px) {
  .hero-all-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-all-tools-grid {
    grid-template-columns: 1fr;
  }
}