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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #222222;
  background-color: #ffffff;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: #e63946;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #8d0801;
}

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

/* Header */
.header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-family: "DM Serif Display", serif;
  font-size: 1.8rem;
  color: #e63946;
  font-weight: 400;
}

.logo:hover {
  color: #8d0801;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #222222;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #e63946;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Navigation */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #222222;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f1e8e6 0%, #ffffff 100%);
  padding: 6rem 0;
  text-align: center;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: #222222;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.cta-button {
  display: inline-block;
  background-color: #e63946;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #8d0801;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.secondary-button {
  display: inline-block;
  background-color: transparent;
  color: #e63946;
  padding: 1rem 2rem;
  border: 2px solid #e63946;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background-color: #e63946;
  color: #ffffff;
}

/* Sections */
.featured-articles,
.articles-listing,
.about-content,
.questions-content {
  padding: 4rem 0;
}

.page-header {
  background-color: #f1e8e6;
  padding: 4rem 0;
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: #222222;
}

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

.article-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f1e8e6;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

.article-card h3 a {
  color: #222222;
  transition: color 0.3s ease;
}

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

.article-card p {
  color: #666;
  margin-bottom: 1rem;
}

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

.read-time {
  font-size: 0.9rem;
  color: #999;
}

/* Mood Tags */
.mood-tag {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mood-tag.confused {
  background-color: #fff3cd;
  color: #856404;
}

.mood-tag.heartbroken {
  background-color: #f8d7da;
  color: #721c24;
}

.mood-tag.crushing {
  background-color: #d1ecf1;
  color: #0c5460;
}

/* View All Link */
.view-all {
  text-align: center;
}

.view-all-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e63946;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.view-all-link:hover {
  border-bottom-color: #e63946;
}

/* Ask Cupid Section */
.ask-cupid {
  background-color: #f1e8e6;
  padding: 4rem 0;
}

.ask-cupid-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* Newsletter Section */
.quote-section {
  background: linear-gradient(135deg, #e63946 0%, #8d0801 100%);
  color: #ffffff;
  padding: 4rem 0;
}

.quote-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.quote-section h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.quote-section p {
  margin-bottom: 2rem;
  opacity: 0.9;
}
/* Article Content Styles */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

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

.article-intro {
  font-size: 1.3rem;
  font-weight: 500;
  color: #e63946;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #f1e8e6;
  border-radius: 12px;
  border-left: 4px solid #e63946;
}

.pull-quote {
  background-color: #f1e8e6;
  border-left: 4px solid #e63946;
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.2rem;
  color: #8d0801;
}

.reflect-box {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.reflect-box h3 {
  color: #856404;
  margin-bottom: 1rem;
}

.cupid-says {
  background-color: #f1e8e6;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid #e63946;
}

.cupid-says h3 {
  color: #e63946;
  margin-bottom: 1rem;
}

/* Questions Grid */
.questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.question-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #e63946;
}

.question-card h3 {
  color: #e63946;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 3rem 0;
  background-color: #f1e8e6;
  border-radius: 12px;
}

/* Footer */
.footer {
  background-color: #222222;
  color: #ffffff;
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

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

  .nav-container {
    padding: 1rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero {
    padding: 4rem 0;
  }

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

  .newsletter-form {
    flex-direction: column;
  }

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

  body {
    font-size: 16px;
  }
}

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

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

  .hero {
    padding: 3rem 0;
  }

  .featured-articles,
  .articles-listing,
  .about-content,
  .questions-content {
    padding: 3rem 0;
  }
  .article-section {
    padding: 3rem 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
  outline: 2px solid #e63946;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .article-card {
    border: 2px solid #222222;
  }

  .mood-tag {
    border: 1px solid currentColor;
  }
}

/* Prevent text selection on all text */
body,
body * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
