/* Dark/Tech Style - template-dark.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;600&family=Inter:wght@300;400;600;800&display=swap');

:root {
  --primary-color: #4dabf7;
  --secondary-color: #20c997;
  --accent-color: #f06595;
  --text-color: #ced4da;
  --light-text: #adb5bd;
  --lighter-text: #6c757d;
  --bg-color: #1a1b25;
  --light-bg: #2a2d3e;
  --card-bg: #252a41;
  --border-color: #3b3f51;
  --grid-color: rgba(255, 255, 255, 0.02);
  --heading-font: 'Inter', sans-serif;
  --body-font: 'Inter', sans-serif;
  --code-font: 'Roboto Mono', monospace;
}

body {
  font-family: var(--body-font);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  /* Tech grid pattern */
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: white;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

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

/* Article Header */
.article-header {
  padding: 4rem 2rem;
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(to right, #0f172a, #1e293b);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.article-header h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--primary-color), #a3d8f4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.article-description {
  font-size: 1.2rem;
  color: var(--light-text);
  max-width: 800px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
  font-weight: 300;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-date {
  display: inline-block;
  background-color: var(--light-bg);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--light-text);
  border: 1px solid var(--border-color);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.article-tag {
  display: inline-block;
  background-color: var(--bg-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  transition: all 0.3s ease;
}

.article-tag:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

/* Featured Image */
.featured-image-container {
  margin-bottom: 3rem;
  text-align: center;
}

.featured-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.featured-image:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Article Content */
.article-content {
  margin-bottom: 4rem;
  line-height: 1.7;
  background-color: var(--card-bg);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.section-header {
  margin-top: 3rem;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: white;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.section-subheader {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: var(--primary-color);
}

.content-paragraph {
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
  color: var(--text-color);
}

.content-paragraph:first-letter {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--primary-color);
}

.content-image {
  margin: 2.5rem 0;
  text-align: center;
}

.content-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.content-image figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--light-text);
  font-style: italic;
}

.code-block {
  margin: 2.5rem 0;
  background-color: #161821;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.code-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background-color: var(--light-bg);
  border-bottom: 1px solid var(--border-color);
}

.code-block::after {
  content: "• • •";
  position: absolute;
  top: 0;
  left: 15px;
  height: 30px;
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-size: 24px;
  letter-spacing: 2px;
}

.code-block pre {
  margin: 0;
  padding: 3rem 1.5rem 1.5rem 1.5rem;
}

.code-block code {
  font-family: var(--code-font);
  font-size: 0.95rem;
  color: #abb2bf;
}

.content-quote {
  margin: 3rem 0;
  padding: 2rem 2.5rem;
  background-color: var(--light-bg);
  border-radius: 12px;
  border-left: 4px solid var(--accent-color);
  position: relative;
}

.content-quote::before {
  content: """;
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.content-quote p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--text-color);
  font-style: italic;
  line-height: 1.6;
}

.content-quote cite {
  font-size: 0.95rem;
  color: var(--light-text);
  font-style: normal;
  display: block;
  text-align: right;
}

.content-callout {
  margin: 2.5rem 0;
  padding: 2rem;
  border-radius: 12px;
  background-color: var(--light-bg);
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.content-callout-info {
  border-left-color: var(--primary-color);
}

.content-callout-warning {
  border-left-color: var(--accent-color);
}

.content-callout-tip {
  border-left-color: var(--secondary-color);
}

.content-list {
  margin: 2rem 0;
  padding-left: 1.5rem;
}

.content-list li {
  margin-bottom: 1rem;
  position: relative;
}

/* Resources Section */
.resources-section {
  margin-top: 4rem;
  padding: 2.5rem;
  background-color: var(--light-bg);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.resources-section h3 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.resources-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.resource-list {
  list-style: none;
  padding-left: 0;
}

.resource-item {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.resource-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.resource-item::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.resource-item a {
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.resource-item a:hover {
  color: var(--secondary-color);
  padding-left: 0.3rem;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 20px;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.toc-container, .related-container, .share-container {
  margin-bottom: 3rem;
}

.toc-container h3, .related-container h3, .share-container h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: white;
  position: relative;
  padding-bottom: 0.8rem;
}

.toc-container h3::after, .related-container h3::after, .share-container h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.toc-list, .related-list {
  list-style: none;
  padding-left: 0;
}

.toc-item, .related-item {
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

.toc-item:last-child, .related-item:last-child {
  border-bottom: none;
}

.toc-link, .related-item a {
  display: block;
  padding: 0.8rem 0;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.toc-link:hover, .related-item a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  background-color: var(--light-bg);
  color: var(--text-color);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  flex: 1 1 100%;
  border: 1px solid var(--border-color);
}

.share-button i {
  margin-right: 0.5rem;
}

.share-twitter:hover {
  background-color: #1DA1F2;
  color: white;
  border-color: #1DA1F2;
}

.share-facebook:hover {
  background-color: #4267B2;
  color: white;
  border-color: #4267B2;
}

.share-linkedin:hover {
  background-color: #0077B5;
  color: white;
  border-color: #0077B5;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .article-header {
    padding: 3rem 1.5rem;
  }
  
  .article-header h1 {
    font-size: 2.4rem;
  }
  
  .article-description {
    font-size: 1.1rem;
  }
  
  .article-sidebar {
    position: static;
    margin-top: 3rem;
  }
}

@media (max-width: 768px) {
  .article-header h1 {
    font-size: 2rem;
  }
  
  .section-header {
    font-size: 1.8rem;
  }
  
  .article-content {
    padding: 1.5rem;
  }
  
  .content-quote p {
    font-size: 1.1rem;
  }
}
