/* Mobile First Responsive Design */

/* Tablet Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .nav-container {
    padding: 0 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: #fafaf7;
    flex-direction: column;
    gap: 0;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

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

  .nav-item {
    margin-bottom: 1rem;
  }

  .nav-link {
    display: block;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

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

  .article-card {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.7rem;
  }
  h3 {
    font-size: 1.4rem;
  }
}

/* Mobile Styles */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .brand-title {
    font-size: 1.5rem;
  }

  .brand-subtitle {
    font-size: 0.8rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .featured-articles,
  .recent-articles,
  .articles-archive,
  .about-content,
  .article-content {
    padding: 3rem 0;
  }

  .article-card {
    padding: 1.25rem;
  }

  .article-title {
    font-size: 1.1rem;
  }

  .article-excerpt {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .page-description {
    font-size: 1rem;
  }

  .friendship-note {
    padding: 3rem 0;
  }

  .note-quote {
    font-size: 1.2rem;
  }

  .article-item {
    padding: 1.5rem 0;
  }

  .footer {
    padding: 2rem 0 1rem;
  }

  .footer-content {
    gap: 1.5rem;
  }

  p {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  h4 {
    font-size: 1.1rem;
  }
}

/* Large Screen Optimizations */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-description {
    font-size: 1.4rem;
  }

  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-title {
    font-size: 2.5rem;
  }
}

/* Hamburger Animation */
.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

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

/* Focus States for Accessibility */
.nav-link:focus,
.btn:focus,
.article-title a:focus {
  outline: 2px solid #a8c5da;
  outline-offset: 2px;
}

/* Smooth Scrolling for Internal Links */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Print Styles */
@media print {
  .nav,
  .footer,
  .btn {
    display: none;
  }

  .main {
    margin: 0;
  }

  .article-content {
    padding: 0;
  }

  body {
    background: white;
    color: black;
  }

  .article-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
