@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #2B8C67; /* Green */
  --secondary: #83C5A3; /* Light Green */
  --accent: #FFD6BA; /* Light Orange */
  --text: #333333; /* Dark Gray */
  --surface: #F9FAFB; /* Light Gray Background */
  --code-bg: #282C34; /* Dark Code Background */
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--surface);
  padding: 2rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--primary);
  font-weight: 600;
  margin: 1.8rem 0 1.2rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--secondary);
}

h2 {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.4rem;
}

p, li {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.2rem;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.images {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  margin: 2rem 0;
}

.images img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.2s ease-in-out;
  background: transparent; 
}

.images img:hover {
  transform: translateY(-3px);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin: 1.5rem 0;
}

th, td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: var(--gradient);
  color: white;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: none;
}

tr {
  transition: background-color 0.2s ease;
}

tr:hover {
  background-color: rgba(43, 140, 103, 0.05); 
}

pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  overflow-x: auto;
  color: #E0E2E4;
  font-size: 0.9rem;
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.diagram {
  background: transparent; 
  padding: 0; 
  margin: 1.5rem 0;
}

.diagram img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--secondary);
}

footer {
  background: #f0f0f0;
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 3rem;
  text-align: center;
  color: #777;
}

footer h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  margin: 0 0.5rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.social-icons a:hover {
  color: var(--secondary);
}

@media (max-width: 768px) {
  body {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .images {
    gap: 1rem;
  }

  pre {
    padding: 0.8rem;
    font-size: 0.85rem;
  }
}
