/* ---
Theme: Tech / Futuristic
Font: Inter (Sans-Serif)
Tone: Informative & Straightforward
--- */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-dark: #0d1117;
  --bg-medium: #161b22;
  --border-color: #30363d;
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --accent-color: #58a6ff;
  --accent-hover: #79c0ff;
  --font-family: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; }

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Header & Navigation --- */
.site-header {
  background-color: var(--bg-medium);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(22, 27, 34, 0.8);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

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

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
  text-decoration: none;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

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


/* --- Main Content Layout --- */
.main-layout {
  padding: 2rem 0;
}

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

/* --- Article Grid (Homepage) --- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.article-card {
  background-color: var(--bg-medium);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(88, 166, 255, 0.1);
}

.article-card-content {
  padding: 1.5rem;
}

.article-card-content h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.article-card-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.read-more-btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
}


/* --- Sidebar --- */
.sidebar-widget {
  background-color: var(--bg-medium);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.sidebar-widget h3 {
  margin-top: 0;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

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

.sidebar-widget ul li {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.sidebar-widget ul li:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-widget .promo-text {
  background-color: var(--bg-dark);
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid var(--accent-color);
  font-style: italic;
  color: var(--text-secondary);
}

/* --- Article Page --- */
.article-full .article-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.article-full .article-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article-full .article-content h2 {
  margin-top: 2.5rem;
}

.article-full .article-content h3 {
  margin-top: 2rem;
}

.article-full blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.cta-section {
  background-color: var(--bg-medium);
  border: 1px solid var(--accent-color);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin: 3rem 0;
}

.cta-section h2 {
  color: var(--accent-hover);
}

.cta-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--bg-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.cta-btn:hover {
  background-color: var(--accent-hover);
  text-decoration: none;
}

/* --- Simple Page Styles (About, Contact, etc.) --- */
.simple-page {
  background-color: var(--bg-medium);
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.simple-page h1 {
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--bg-medium);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
  color: var(--text-secondary);
}

/* --- Media Queries for Responsiveness --- */
@media (min-width: 768px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .homepage-grid .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
