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

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

:root {
  /* Colors */
  --background: hsl(40, 33%, 98%);
  --foreground: hsl(25, 30%, 12%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(25, 30%, 12%);
  --primary: hsl(32, 95%, 50%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(40, 30%, 94%);
  --secondary-foreground: hsl(25, 30%, 20%);
  --muted: hsl(40, 20%, 92%);
  --muted-foreground: hsl(25, 15%, 45%);
  --accent: hsl(32, 80%, 55%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border: hsl(32, 30%, 88%);
  --ring: hsl(32, 95%, 50%);
  
  /* Gradients & Shadows */
  --gradient-hero: linear-gradient(135deg, hsl(32, 95%, 50%) 0%, hsl(25, 90%, 45%) 100%);
  --shadow-soft: 0 4px 20px -4px hsla(32, 50%, 30%, 0.12);
  --shadow-card: 0 2px 12px -2px hsla(32, 50%, 30%, 0.08);
  
  /* Fonts */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --radius: 0.5rem;
}

body {
  font-family: var(--font-body);
  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-display);
  line-height: 1.3;
}

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

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

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

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.header-content {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  display: flex;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--gradient-hero);
}

.logo-icon span {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

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

/* Hero Section */
.hero {
  background: var(--gradient-hero);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0;
  }
}

.hero-page {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .hero-page {
    padding: 4rem 0;
  }
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 1rem;
  animation: fadeIn 0.5s ease-out;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  max-width: 42rem;
}

.hero .subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

/* Content Section */
.content-section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .content-section {
    padding: 4rem 0;
  }
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Blog Cards */
.blog-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
  animation: fadeIn 0.5s ease-out;
}

.blog-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

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

.category-badge {
  display: inline-block;
  background-color: hsla(32, 95%, 50%, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

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

.blog-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

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

.blog-card p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  transition: gap 0.2s;
}

.read-more:hover {
  gap: 0.75rem;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 1.5rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-btn:hover {
  background-color: var(--muted);
}

.pagination-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.sidebar-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

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

.search-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px hsla(32, 95%, 50%, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: hsl(32, 95%, 45%);
}

.btn-icon {
  padding: 0.5rem;
  width: 36px;
  height: 36px;
}

.category-list {
  list-style: none;
}

.category-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

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

.category-count {
  font-size: 0.75rem;
  background-color: var(--muted);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.recent-posts-list {
  list-style: none;
}

.recent-posts-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.recent-posts-list li:last-child {
  border-bottom: none;
}

.recent-posts-list a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
  display: block;
  line-height: 1.5;
}

.recent-posts-list a:hover {
  color: var(--primary);
}

.sidebar-about p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Article Content */
.article-content {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.5s ease-out;
}

.article-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p {
  color: var(--foreground);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.article-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

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

.article-content strong {
  font-weight: 600;
}

.article-content em {
  font-style: italic;
}

/* Blog Post Header */
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary-foreground);
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  margin-left: 1rem;
}

/* Related Posts */
.related-posts {
  margin-top: 3rem;
  animation: fadeIn 0.5s ease-out 0.2s both;
}

.related-posts h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.related-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
}

.related-card:hover {
  box-shadow: var(--shadow-soft);
}

.related-card .category-badge {
  margin-bottom: 0.5rem;
}

.related-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.related-card:hover h3 {
  color: var(--primary);
}

.related-card .read-more {
  font-size: 0.875rem;
}

/* About Page */
.about-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  max-width: 48rem;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 2rem;
  animation: fadeIn 0.5s ease-out;
}

.about-section:last-child {
  margin-bottom: 0;
}

.about-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.about-section p {
  color: var(--muted-foreground);
  line-height: 1.8;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.5s ease-out;
}

.contact-form-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

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

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px hsla(32, 95%, 50%, 0.2);
}

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

.btn-full {
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.5s ease-out;
}

.contact-info-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: hsla(32, 95%, 50%, 0.1);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.contact-info-text h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.contact-info-text p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* 404 Page */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--muted);
  text-align: center;
  padding: 2rem;
}

.not-found h1 {
  font-size: 4rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.not-found p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.not-found a {
  color: var(--primary);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.not-found a:hover {
  opacity: 0.8;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background-color: var(--card);
}

.footer-content {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 28rem;
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SVG Icons (inline) */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}
