/* RESET I PODSTAWA */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: #0e0e0e;
  color: #f5f5f5;
  line-height: 1.6;
  font-size: 16px;
  padding: 20px;
}

a {
  color: #8edb72;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: #9eee83;
}

/* NAGŁÓWKI */
h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #8edb72;
}

h2, h3 {
  color: #cfcfcf;
  margin: 20px 0 10px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

/* PARAGRAFY */
p {
  margin-bottom: 16px;
  line-height: 1.8;
  max-width: 800px;
}

/* LISTY */
ul, ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 8px;
}

/* LISTA ARTYKUŁÓW */
ul li a {
  display: block;
  padding: 12px 16px;
  background-color: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

ul li a:hover {
  background-color: #2a2a2a;
  transform: translateY(-3px);
  border-color: #8edb72;
}

/* KONTEKST BLOGA / HEADER */
h1 + p {
  margin-bottom: 30px;
  font-size: 18px;
  color: #cfcfcf;
}

/* POJEDYNCZY POST */
.blog-post {
  max-width: 900px;
  margin: 0 auto 50px auto;
  padding: 20px;
  background-color: #1a1a1a;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
}

.blog-post h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.blog-post h2 {
  font-size: 28px;
  margin-top: 25px;
  margin-bottom: 15px;
}

.blog-post h3 {
  font-size: 22px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.blog-post p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.blog-post ul, .blog-post ol {
  margin-left: 25px;
  margin-bottom: 20px;
}

.blog-post li {
  margin-bottom: 8px;
}

.blog-post strong {
  color: #8edb72;
}

.blog-post hr {
  border: none;
  height: 1px;
  background-color: #2a2a2a;
  margin: 30px 0;
}

.blog-post .references {
  font-size: 14px;
  opacity: 0.7;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  body {
    padding: 15px;
    font-size: 15px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  ul li a {
    padding: 10px 14px;
    font-size: 15px;
  }

  .blog-post {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 18px;
  }

  body {
    padding: 10px;
    font-size: 14px;
  }

  .blog-post {
    padding: 10px;
  }
  .blog-actions {
    flex-direction: column;
    gap: 10px;
  }
}

/* DODATKOWE EFEKTY LINKÓW */
ul li a::after {
  content: '→';
  float: right;
  transition: transform 0.3s ease;
}

ul li a:hover::after {
  transform: translateX(5px);
}
/* PRZYCISKI AKCJI W BLOGU */
.blog-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.blog-actions .btn-primary,
.blog-actions .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.blog-actions .btn-primary {
  background-color: #1a1a1a;
  border: 1px solid #8edb72;
  color: #8edb72;
}

.blog-actions .btn-primary:hover {
  background-color: #8edb72;
  color: #0e0e0e;
}

.blog-actions .btn-secondary {
  background-color: #8edb72;
  border: 1px solid #8edb72;
  color: #0e0e0e;
}

.blog-actions .btn-secondary:hover {
  background-color: #9eee83;
  color: #0e0e0e;
}
