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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

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

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

/* Header Styles */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
}

nav {
  display: none;
}

nav.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 1rem;
}

nav a {
  color: #374151;
  text-decoration: none;
  padding: 0.75rem 0;
  transition: color 0.2s;
}

nav a:hover {
  color: #111827;
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  color: #374151;
}

@media (min-width: 768px) {
  nav {
    display: flex !important;
    flex-direction: row;
    position: static;
    gap: 2rem;
    border: none;
    padding: 0;
  }

  nav a {
    padding: 0;
  }

  .mobile-menu-btn {
    display: none;
  }
}

/* Footer Styles */
footer {
  background-color: #111827;
  color: #9ca3af;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

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

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

.footer-section h3 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

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

.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #111827;
  color: #ffffff;
  padding: 1rem;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-content p {
  flex: 1;
  font-size: 0.875rem;
}

.cookie-content a {
  color: #ffffff;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-accept {
  background-color: #ffffff;
  color: #111827;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.btn-accept:hover {
  background-color: #f3f4f6;
}

.btn-close {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero-section {
  margin-bottom: 3rem;
}

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

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

.hero-small-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Article Card */
.article-card {
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-card:hover .article-title {
  color: #6b7280;
}

.article-image {
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-image.large {
  height: 384px;
}

.article-image.medium {
  height: 256px;
}

.article-image.small {
  height: 192px;
}

.article-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: #111827;
  margin-top: 0.25rem;
  transition: color 0.2s;
}

.article-title.large {
  font-size: 1.875rem;
  line-height: 1.2;
}

.article-title.medium {
  font-size: 1.25rem;
  line-height: 1.3;
}

.article-title.small {
  font-size: 1.125rem;
  line-height: 1.4;
}

/* Main Content Grid */
.main-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.articles-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.category-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #111827;
}

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

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

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

@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
  }
}

.sidebar-widget {
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.sidebar-widget.dark {
  background-color: #111827;
  color: #ffffff;
}

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

.widget-header svg {
  width: 20px;
  height: 20px;
}

.widget-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.sidebar-widget.dark .widget-header h3 {
  color: #ffffff;
}

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

.widget-list li {
  margin-bottom: 0.75rem;
}

.widget-list a {
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
  display: block;
  transition: color 0.2s;
}

.widget-list a:hover {
  color: #111827;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-form input {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  background-color: #1f2937;
  border: 1px solid #374151;
  color: #ffffff;
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: #9ca3af;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #6b7280;
}

.newsletter-form button {
  width: 100%;
  background-color: #ffffff;
  color: #111827;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.newsletter-form button:hover {
  background-color: #f3f4f6;
}

/* Article Detail Page */
.article-detail {
  padding-bottom: 4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  text-decoration: none;
  margin-top: 2rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: #111827;
}

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

.article-header .article-category {
  font-size: 0.875rem;
}

.article-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

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

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #6b7280;
  flex-wrap: wrap;
}

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

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-weight: 500;
}

.author-name {
  color: #111827;
  font-weight: 500;
}

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

.meta-item svg {
  width: 16px;
  height: 16px;
}

.featured-image {
  max-width: 1152px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.featured-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.article-content {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1rem;
}

.article-content p {
  color: #374151;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.author-box {
  margin-top: 3rem;
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.author-box-content {
  display: flex;
  gap: 1rem;
}

.author-box-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-weight: 500;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.author-box-info h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.author-box-info p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.related-articles {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  margin-top: 4rem;
}

.related-articles-header {
  border-top: 1px solid #e5e7eb;
  padding-top: 3rem;
}

.related-articles h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2rem;
}

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

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

/* Static Pages */
.static-page {
  padding: 3rem 0;
}

.static-page h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2rem;
}

.static-page h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.static-page h3 {
  font-weight: 600;
  color: #111827;
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.static-page p {
  color: #374151;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.static-page ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.static-page ul li {
  color: #374151;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.static-page a {
  color: #111827;
  text-decoration: underline;
}

.date-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

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

.contact-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.contact-item-content p {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.contact-item-content a {
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item-content a:hover {
  color: #111827;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

.form-group textarea {
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background-color: #111827;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.25rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: #1f2937;
}

/* Utility Classes */
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

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