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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background-color: #ffffff;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1a202c;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: #4a5568;
}

.lead {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Icons */
.icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
}

.logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-outline:hover {
  background-color: #667eea;
  color: white;
}

.btn-ghost {
  background-color: transparent;
  color: #718096;
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: #2d3748;
  background-color: #f7fafc;
}

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

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo a {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #718096;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #667eea;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 1px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background-color: #2d3748;
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 4rem 0;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #2d3748 0%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-image {
  text-align: center;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Sections */
.featured-articles {
  padding: 5rem 0;
}

.categories {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.cta h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta .btn-primary {
  background: white;
  color: #667eea;
}

.cta .btn-primary:hover {
  background: #f7fafc;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: #718096;
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.articles-section {
  padding: 4rem 0;
}

/* Grids */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Cards */
.article-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.article-header {
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.read-time {
  color: #718096;
  font-size: 0.875rem;
}

.article-card h3 {
  margin-bottom: 0.75rem;
}

.article-card h3 a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.2s;
}

.article-card h3 a:hover {
  color: #667eea;
}

.article-card p {
  color: #718096;
  margin-bottom: 0;
  line-height: 1.6;
}

.article-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #718096;
  font-size: 0.875rem;
}

.category-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.category-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.category-icon svg {
  width: 2rem;
  height: 2rem;
  color: white;
}

.category-card h3 {
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.category-card p {
  color: #718096;
  margin-bottom: 2rem;
}

/* Page Header */
.page-header {
  padding: 3rem 0;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.back-link {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #2d3748 0%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 1.25rem;
  color: #4a5568;
}

/* Page Content */
.page-content {
  padding: 3rem 0;
}

/* Article Images */
.article-image {
  margin: 2rem 0;
  text-align: center;
}

.article-hero-img {
  width: 100%;
  max-width: 800px;
  height: 400px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Bio Examples Styling */
.bio-example {
  background: #f8f9fa;
  border-left: 4px solid #007bff;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.bio-example.bad-example {
  background: #fff5f5;
  border-left-color: #dc3545;
}

.bio-text {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-style: italic;
  border: 1px solid #e9ecef;
}

.template-box {
  background: #e8f5e8;
  border: 1px solid #28a745;
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
}

.mistake-fix {
  background: #fff;
  border: 1px solid #dee2e6;
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
}

.dont {
  color: #dc3545;
  font-weight: bold;
}

.do {
  color: #28a745;
  font-weight: bold;
}

.checklist {
  background: #f8f9fa;
  border: 2px solid #007bff;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.checklist ul {
  margin: 1rem 0 0 0;
}

.checklist li {
  margin: 0.5rem 0;
}

/* Related Articles */
.related-articles {
  border-top: 1px solid #e5e7eb;
  padding-top: 3rem;
  margin-top: 3rem;
}

.related-articles h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Footer */
.footer {
  background-color: #2d3748;
  color: white;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-section h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #a0aec0;
  margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #4a5568;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #a0aec0;
  margin: 0;
}

/* Prose Styles */
.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #2d3748;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #4a5568;
}

.prose ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
  color: #4a5568;
}

.prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose ol li {
  margin-bottom: 0.5rem;
  list-style-type: decimal;
  color: #4a5568;
}

.prose strong {
  font-weight: 600;
  color: #2d3748;
}

.prose a {
  color: #667eea;
  text-decoration: underline;
}

.prose a:hover {
  color: #5a67d8;
}

.prose .lead {
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 75vw;
    max-width: 320px;
    background: #fff;
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 2rem 2rem 2rem;
    gap: 2rem;
    z-index: 200;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
  }
  .nav.mobile-open {
    display: flex;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-menu-btn {
    display: flex;
    position: relative;
    z-index: 300;
  }
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.125rem;
  }

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

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

  .section-header h2 {
    font-size: 2rem;
  }

  .cta h2 {
    font-size: 2rem;
  }

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

@media (max-width: 480px) {
  .hero {
    padding: 2rem 0;
  }

  .featured-articles,
  .categories,
  .cta {
    padding: 3rem 0;
  }

  .article-card,
  .category-card {
    padding: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

.articles-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.articles-filters .btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
}

body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
li,
a,
.prose,
.article-card,
.category-card,
.lead,
.footer,
.header,
.section-header,
.page-header,
.bio-text,
.template-box,
.mistake-fix,
.checklist,
.related-articles,
.date,
.badge {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}
