/* BacklinkInfo - Professional SEO Resource Site */
:root {
  --primary: #1a365d;
  --primary-dark: #0f2744;
  --secondary: #2b6cb0;
  --accent: #ed8936;
  --success: #38a169;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #f7fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* Header */
.site-header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover, .nav a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: #dd6b20;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--bg);
  color: var(--primary);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  text-decoration: none;
}

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

.main-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2.5rem 0;
}

@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
  }
}

.content {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.content h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.content h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin: 1.5rem 0 0.75rem;
}

.content p {
  margin-bottom: 1rem;
}

.content ul, .content ol {
  margin: 0 0 1.25rem 1.5rem;
}

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

.content blockquote {
  border-left: 4px solid var(--secondary);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: #ebf8ff;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

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

.widget {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.widget h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.widget ul {
  list-style: none;
}

.widget li {
  margin-bottom: 0.6rem;
}

.widget a {
  font-size: 0.95rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0;
}

.card-body {
  padding: 1.25rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

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

/* CTA boxes */
.cta-box {
  background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
  border: 1px solid #bee3f8;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.cta-box h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Affiliate / disclosure */
.disclosure {
  background: #fffaf0;
  border: 1px solid #fbd38d;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #744210;
}

.wplus-btn {
  display: inline-block;
  margin: 1rem 0;
  text-align: center;
}

.wplus-btn img {
  display: inline-block;
  border-radius: 4px;
}

/* Newsletter form */
.newsletter {
  background: var(--primary);
  color: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.newsletter h3 {
  color: white;
  margin-bottom: 0.75rem;
  border: none;
  padding: 0;
}

.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter input[type="text"],
.newsletter input[type="email"] {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.newsletter button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

.newsletter button:hover {
  background: #dd6b20;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

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

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

.footer-grid a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.4rem;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

tr:nth-child(even) {
  background: #f8fafc;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--secondary);
}

/* TOC */
.toc {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.toc h3 {
  margin-top: 0;
  color: var(--success);
  border: none;
}

.toc ol {
  margin: 0.5rem 0 0 1.25rem;
}

/* Feature list */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.feature-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.feature-icon {
  background: var(--secondary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--primary-dark);
    padding: 1rem;
    border-radius: var(--radius);
  }
  .nav.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .content {
    padding: 1.25rem;
  }
  .hero {
    padding: 2.5rem 1rem;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.lead { font-size: 1.15rem; color: var(--text-light); }

.img-caption {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

.resource-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.resource-list li:last-child {
  border-bottom: none;
}

.resource-list strong {
  display: block;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
