
/* style.css */

:root {

  --bg: #0f172a;
  --bg-secondary: #111827;

  --card: #111827;

  --text: #e2e8f0;
  --muted: #94a3b8;

  --primary: #60a5fa;
  --primary-dark: #2563eb;

  --border: #1e293b;

  --radius: 16px;

  --shadow:
    0 10px 30px rgba(0,0,0,0.30);

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.article-content * {
  color: var(--text) !important;
  background-color: inherit !important;
}

body {

  font-family: 'Inter', sans-serif;

  background: var(--bg);

  color: var(--text);

  line-height: 1.8;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {

  width: min(1180px, 92%);

  margin: auto;
}

/* HEADER */

.site-header {

  position: sticky;

  top: 0;

  z-index: 1000;

  background: rgba(15, 23, 42, 0.92);

  backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--border);
}

.site-header .container {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 1rem 0;
}

.logo {

  font-size: 1.6rem;

  font-weight: 800;

  color: var(--primary);
}

nav {

  display: flex;

  gap: 1.5rem;

  flex-wrap: wrap;
}

nav a {

  color: var(--muted);

  transition: 0.2s;
}

nav a:hover {
  color: var(--primary);
}

/* HERO */

.hero {

  text-align: center;

  padding: 5rem 0 4rem;
}

.hero h2 {

  font-size: clamp(2.2rem, 6vw, 4rem);

  line-height: 1.1;

  margin-bottom: 1rem;

  font-weight: 800;
}

.hero p {

  color: var(--muted);

  font-size: 1.1rem;
}

/* GRID */

.articles-grid {

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(320px, 1fr));

  gap: 2rem;

  padding-bottom: 5rem;
}

/* CARD */

.card {

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  overflow: hidden;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease;

  box-shadow: var(--shadow);
}

.card:hover {

  transform: translateY(-6px);

  border-color: var(--primary-dark);
}

.card img {

  width: 100%;

  height: 240px;

  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.category {

  display: inline-block;

  margin-bottom: 1rem;

  padding: 0.4rem 0.8rem;

  border-radius: 999px;

  font-size: 0.82rem;

  background: rgba(37, 99, 235, 0.15);

  color: var(--primary);
}

.card h3 {

  font-size: 1.4rem;

  margin-bottom: 1rem;

  line-height: 1.3;
}

.card h3 a:hover {
  color: var(--primary);
}

.card p {

  color: var(--muted);

  margin-bottom: 1.2rem;
}

.meta {

  display: flex;

  flex-wrap: wrap;

  gap: 1rem;

  color: var(--muted);

  font-size: 0.9rem;
}

/* ARTICLE */

.article-page {

  padding: 3rem 0 5rem;
}

.article {

  background: var(--bg-secondary);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  overflow: hidden;

  box-shadow: var(--shadow);
}

.article-image {

  width: 100%;

  height: 480px;

  object-fit: cover;
}

.article-header {

  padding: 2.5rem 2.5rem 1rem;
}

.article-header h1 {

  font-size: clamp(2rem, 5vw, 3.5rem);

  line-height: 1.1;

  margin: 1rem 0;

  font-weight: 800;
}

.article-content {

  padding: 0 2.5rem 3rem;

  font-size: 1.1rem;
}

.article-content h2,
.article-content h3 {

  margin-top: 2.5rem;

  margin-bottom: 1rem;

  color: white;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content a {
  color: var(--primary);
}

.article-content ul,
.article-content ol {

  padding-left: 1.5rem;

  margin-bottom: 1.5rem;
}

.article-content code {

  background: #1e293b;

  color: #93c5fd;

  padding: 2px 6px;

  border-radius: 6px;

  font-size: 0.95rem;
}

.article-content pre {

  background: #020617;

  border: 1px solid var(--border);

  padding: 1.5rem;

  border-radius: 14px;

  overflow-x: auto;

  margin: 2rem 0;
}

.article-content pre code {

  background: transparent;

  padding: 0;

  color: #cbd5e1;
}

blockquote {

  margin: 2rem 0;

  padding-left: 1rem;

  border-left: 4px solid var(--primary);

  color: var(--muted);

  font-style: italic;
}

/* FOOTER */

.site-footer {

  border-top: 1px solid var(--border);

  background: #020617;

  padding: 2rem 0;

  text-align: center;

  color: var(--muted);
}

/* MOBILE */

@media (max-width: 768px) {

  .site-header .container {

    flex-direction: column;

    gap: 1rem;
  }

  nav {

    justify-content: center;
  }

  .article-image {
    height: 260px;
  }

  .article-header,
  .article-content {

    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

}

