:root {
  --primary-color: #e91e63;
  --primary-dark: #c2185b;
  --secondary-color: #3f51b5;
  --bg-color: #f4f6f9;
  --text-main: #333333;
  --text-light: #777777;
  --white: #ffffff;
  --max-width: 1200px;
  --border-radius: 12px;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover, a:focus {
  color: var(--primary-dark);
}

/* Header & Navigation */
header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Layout */
main {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--secondary-color), #283593);
  color: var(--white);
  padding: 4rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Article Cards */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.read-more {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color var(--transition-speed);
}

.read-more:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

/* Single Article */
article {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.article-header h1 {
  font-size: 2.25rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.meta {
  color: var(--text-light);
  font-size: 0.875rem;
}

.article-content h2 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin: 2rem 0 1rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 2rem;
}

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

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-light);
  background: #fdf2f6;
  padding: 1rem;
  border-radius: 0 8px 8px 0;
}

/* Specific styling for the target backlink */
.article-content a.target-link {
  color: var(--primary-color);
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-speed) ease;
}

.article-content a.target-link:hover {
  border-color: var(--primary-dark);
}

/* Sidebar */
aside {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: fit-content;
}

.author-bio {
  text-align: center;
  margin-bottom: 2rem;
}

.author-bio img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #eee;
}

.author-bio h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.author-bio p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

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

/* Mobile Adjustments */
@media (max-width: 767px) {
  .nav-links {
    display: none; /* In a real scenario, implement a hamburger menu */
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  article {
    padding: 1.5rem;
  }
  
  .article-header h1 {
    font-size: 1.75rem;
  }
}
