/* =========================
   BLOG PAGE CSS (Pomodoro + Spaced Repetition)
   ========================= */

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* ===== VARIABLES ===== */
:root {
  --red: #e63946;
  --dark: #222;
  --gray: #555;
  --light: #ffffff;
  --bg: #fafafa;
}

/* ===== BASE ===== */
body {
  background: var(--bg);
  color: var(--dark);
  line-height: 1.7;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 0 20px;
}

/* ================= HEADER ================= */

.header {
  background: var(--light);
  border-bottom: 1px solid #eee;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.logo span {
  color: var(--red);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
}

.nav a:hover {
  color: var(--red);
}

/* ================= BLOG CONTENT ================= */

.blog-post {
  padding: 60px 0;
}

/* Headings */
.blog-post h1 {
  font-size: 34px;
  margin-bottom: 22px;
  color: var(--dark);
}

.blog-post h2 {
  font-size: 26px;
  margin: 45px 0 15px;
  padding-left: 12px;
  border-left: 4px solid var(--red);
}

.blog-post h3 {
  font-size: 20px;
  margin: 25px 0 10px;
  color: var(--red);
}

/* Text */
.blog-post p {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 16px;
}

/* Lists */
.blog-post ul {
  margin: 18px 0 28px 22px;
}

.blog-post li {
  margin-bottom: 10px;
  color: var(--gray);
}

/* Links */
.blog-post a {
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
}

.blog-post a:hover {
  text-decoration: underline;
}

/* Strong text */
.blog-post strong {
  color: var(--dark);
}

/* ================= COMMENT SECTION ================= */

.comments-section {
  margin-top: 80px;
  padding-top: 50px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Comment heading */
.comments-section h2 {
  font-size: 26px;
  margin-bottom: 25px;
  text-align: center;
  color: var(--dark);
}

/* Form */
.comment-form {
  width: 100%;
  max-width: 600px;
}

/* Inputs */
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--dark);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* Focus */
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

.comment-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* Button */
.comment-form button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 10px auto 0;
}

.comment-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.35);
}

/* Note */
.comment-note {
  margin-top: 18px;
  font-size: 13px;
  color: #777;
  text-align: center;
  max-width: 600px;
}

/* ================= FOOTER ================= */

.footer {
  background: var(--dark);
  margin-top: 70px;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  flex-wrap: wrap;
}

.footer-text {
  color: #ccc;
  font-size: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--red);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
  }

  .blog-post h1 {
    font-size: 28px;
  }

  .blog-post h2 {
    font-size: 22px;
  }
}
