/* CUMO 블로그 스타일 시트 */

/* CSS Variables */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #60a5fa;
  --accent: #93c5fd;
  --background: #f8fafc;
  --foreground: #1e293b;
  --card: #ffffff;
  --card-foreground: #1e293b;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #3b82f6;
  --radius: 0.75rem;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-korean: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
}

/* Dark mode variables */
.dark {
  --background: #0f172a;
  --foreground: #f1f5f9;
  --card: #1e293b;
  --card-foreground: #f1f5f9;
  --muted: #334155;
  --muted-foreground: #94a3b8;
  --border: #334155;
  --input: #334155;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-korean);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-korean);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.nav-logo img {
  height: 60px;
  width: auto;
  transition: opacity 0.3s ease;
}

.nav-logo:hover img {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
}

.nav-btn {
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.nav-btn:hover {
  background-color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--foreground);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background-color: var(--card);
    border-top: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: block;
  }
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(-45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 400% 400%;
  animation: gradient-x 15s ease infinite;
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-content {
  animation: float 6s ease-in-out infinite;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-banner {
    padding: 8rem 0;
  }
  
  .hero-title {
    font-size: 5rem;
  }
  
  .hero-subtitle {
    font-size: 1.75rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: #f1f5f9;
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 2px solid var(--border);
}

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

/* Categories Section */
.categories-section {
  padding: 3rem 0;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.category-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Featured Section */
.featured-section {
  padding: 2rem 0;
}

.featured-post {
  background-color: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.featured-post:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.featured-content {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .featured-content {
    flex-direction: row;
  }
}

.featured-image {
  flex: 1;
}

.featured-image img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .featured-image img {
    height: 100%;
  }
}

.featured-text {
  flex: 1;
  padding: 2rem;
}

.featured-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-primary {
  background-color: var(--primary);
  color: white;
}

.badge-secondary {
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.featured-title-link {
  text-decoration: none;
  color: inherit;
}

.featured-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

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

.featured-excerpt {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.featured-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Blog Section */
.blog-section {
  padding: 3rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card {
  background-color: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.blog-card-image-placeholder {
    background-color: var(--muted);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
}

.read-more-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.read-more-link:hover {
    text-decoration: underline;
}

.blog-card-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.blog-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

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

.blog-card-excerpt {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.load-more-container {
  text-align: center;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: white;
  padding: 60px 0 40px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about h4 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: #f7fafc;
  border-bottom: 2px solid #4F46E5;
  padding-bottom: 8px;
  font-weight: 600;
  display: inline-block;
}

.footer-about p {
  color: #cbd5e0;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-tag.update {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.2);
}

.footer-tag.verified {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.2);
}

.footer-tag .icon {
  font-size: 14px;
}

.footer-tag .text {
  color: #cbd5e0;
  font-size: 13px;
}

.footer-links h4 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: #f7fafc;
  border-bottom: 2px solid #4F46E5;
  padding-bottom: 8px;
  font-weight: 600;
  display: inline-block;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4F46E5;
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-social-link {
  color: #cbd5e0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: white;
}

.footer-social-link .icon {
  font-size: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  text-align: center;
}

.footer-legal-links {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal-links a {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: #4F46E5;
}

.footer-copyright {
  margin: 0;
  color: #718096;
  font-size: 14px;
}

.footer-copyright .highlight {
  color: #a0aec0;
}

.footer-deco-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.footer-deco-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  background-color: var(--card);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.newsletter-modal .modal-content {
  max-width: 500px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

.modal-body {
  padding: 1.5rem;
}

/* Newsletter Form */
.newsletter-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background-color: var(--background);
  color: var(--foreground);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Table of Contents */
.table-of-contents {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.table-of-contents h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin: 0.5rem 0;
}

.table-of-contents a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.table-of-contents a:hover {
  color: var(--primary);
  background-color: var(--muted);
  text-decoration: none;
}

/* FAQ Styling */
.blog-post-content h3:contains("Q:") {
  background: var(--muted);
  padding: 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  margin: 1.5rem 0 0.5rem 0;
}

/* Scroll margin for smooth scrolling */
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  scroll-margin-top: 2rem;
}

/* Responsive Table of Contents */
@media (max-width: 768px) {
  .table-of-contents {
    padding: 1rem;
    margin: 1.5rem 0;
  }
  
  .table-of-contents h3 {
    font-size: 1.125rem;
  }
  
  .table-of-contents a {
    font-size: 0.9rem;
    padding: 0.375rem 0.5rem;
  }
}

/* Blog Post Content */
.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.blog-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-post-excerpt {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.blog-post-meta {
  background-color: var(--muted);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.blog-post-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.author-info h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-role {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.blog-post-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 1024px) {
  .blog-post-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.stat-icon {
  color: var(--primary);
}

.blog-post-image {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.blog-post-content {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  line-height: 1.9;
  font-size: 1.125rem;
}

.blog-post-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--primary);
  position: relative;
  padding-left: 1.25rem;
}

.blog-post-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 4px;
  height: 2rem;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 2px;
}

.blog-post-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--foreground);
  position: relative;
  padding-left: 1rem;
}

.blog-post-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 3px;
  height: 1.25rem;
  background: var(--accent);
  border-radius: 2px;
}

.blog-post-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.blog-post-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content strong {
  font-weight: 600;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-post-tags {
  background-color: var(--muted);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.blog-post-tags h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
  cursor: pointer;
}

.tag:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.blog-post-actions {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background-color: transparent;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.action-btn.like:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* Loading States */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animations */
@keyframes gradient-x {
  0%, 100% {
    background-size: 200% 200%;
    background-position: left center;
  }
  50% {
    background-size: 200% 200%;
    background-position: right center;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .blog-post-title {
    font-size: 1.875rem;
  }
  
  .blog-post-content {
    padding: 1rem;
  }
  
  .modal.active {
    padding: 1rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

/* Like Button Animation */
@keyframes like-bounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.action-btn.like.like-animation {
  animation: like-bounce 0.4s ease-in-out;
}

.action-btn.like.liked {
  background-color: #fef2f2; /* Light red background */
  border-color: #fca5a5; /* Red border */
  color: #ef4444; /* Red text and icon */
}

.action-btn.like.liked .fa-heart {
  font-weight: 900; /* Makes the heart icon solid */
}
/* --- Single Post Page Styles --- */
.post-section .container {
    max-width: 800px;
}

.post-content {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem 3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1e293b;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
}

.post-meta i {
    margin-right: 0.5rem;
    color: #94a3b8;
}

.post-body {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.125rem;
    line-height: 1.9;
    color: #334155;
}

.post-actions {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}


/* --- Auth Page Styles --- */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--background);
  padding: 2rem;
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
  background-color: var(--card);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header .nav-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.auth-header .form-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--foreground);
}

.auth-header .form-subtitle {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--input);
  border-radius: 0.5rem;
  background-color: var(--background);
  color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-block {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.form-footer a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
}


/* --- Markdown Content Styles --- */
.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
    font-family: 'Noto Sans KR', sans-serif;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.post-body h1 { font-size: 2rem; }
.post-body h2 { font-size: 1.75rem; }
.post-body h3 { font-size: 1.5rem; }
.post-body h4 { font-size: 1.25rem; }

.post-body p {
    margin-bottom: 1.25rem;
}

.post-body ul, .post-body ol {
    padding-left: 2rem;
    margin-bottom: 1.25rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--muted-foreground);
    font-style: italic;
}

.post-body code {
    background-color: var(--muted);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'D2Coding', 'Courier New', monospace;
    font-size: 0.9rem;
}

.post-body pre {
    background-color: #2d3748;
    color: #f7fafc;
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-body pre code {
    background-color: transparent;
    padding: 0;
    font-size: 0.9rem;
}

.post-body a {
    color: var(--primary);
    text-decoration: underline;
}

.post-body a:hover {
    color: var(--primary-dark);
}

.post-body strong {
  background: none;
  -webkit-text-fill-color: inherit;
  font-weight: 600;
}

/* --- Comments Section --- */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.comments-section .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.comment-form-container {
    background-color: var(--muted);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.comment-login-prompt {
    text-align: center;
    padding: 2rem;
    background-color: var(--muted);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.comment-login-prompt a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card);
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.comment-date {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.comment-content p {
    margin: 0;
    line-height: 1.7;
    color: var(--card-foreground);
}

.no-comments {
    text-align: center;
    color: var(--muted-foreground);
    padding: 2rem 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-comment-action {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-comment-action:hover {
    color: var(--primary);
}

.btn-comment-action.delete:hover {
    color: #ef4444; /* red-500 */
}

.comment-actions form {
    display: inline;
}

