/* === Root Variables === */
:root {
  --blue: #3ea6ff;
  --red: #ff2d55;
  --text-color: #e2e8f0;
  --background-start: #111217;
  --background-end: #0a0d12;
  --card-bg: rgba(22, 27, 34, 0.85);
  --card-border: rgba(255, 45, 85, 0.12);
  --shadow-blue: rgba(62, 166, 255, 0.15);
  --shadow-red: rgba(255, 45, 85, 0.1);
}

/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, var(--background-start), var(--background-end));
  color: var(--text-color);
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* === Header === */
header {
  max-width: 720px;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px 40px;
  border: 1px solid var(--card-border);
  box-shadow:
    0 0 30px var(--shadow-blue),
    0 0 20px var(--shadow-red);
  margin-bottom: 50px;
}

header h1 {
  font-size: 3.5rem;
  color: var(--blue);
  letter-spacing: 3px;
  margin-bottom: 15px;
  text-transform: uppercase;
  text-shadow: 0 0 15px var(--shadow-blue);
}

header p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #a0aec0;
}

/* === Main Container === */
main {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* === Diary Entry Boxes === */
.entry {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 28px 36px;
  border: 1px solid var(--card-border);
  box-shadow:
    0 0 25px var(--shadow-blue),
    0 0 15px var(--shadow-red);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 35px var(--shadow-blue),
    0 0 25px var(--shadow-red);
}

/* === Entry Headers === */
.entry h2 {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 8px;
  border-left: 5px solid var(--red);
  padding-left: 12px;
  text-transform: uppercase;
  text-shadow: 0 0 5px var(--shadow-blue);
}

/* === Entry Date === */
.entry p:first-of-type {
  font-size: 0.9rem;
  color: #9aa5b1;
  margin-bottom: 14px;
  font-style: italic;
}

/* === Entry Text === */
.entry p:not(:first-of-type) {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-color);
}

/* === Entry Image === */
.entry img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 15px var(--shadow-blue);
  display: block;
  margin: 0 auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.entry img:hover {
  transform: scale(1.05);
}

/* === Footer === */
footer {
  margin-top: 60px;
  font-size: 0.9rem;
  color: #6b7280;
  user-select: none;
}

/* === Responsive === */
@media (max-width: 600px) {
  body {
    padding: 30px 15px;
  }

  header, main {
    max-width: 100%;
    padding: 20px;
  }

  .entry {
    padding: 20px 24px;
  }

  header h1 {
    font-size: 2.8rem;
  }

  .entry h2 {
    font-size: 1.6rem;
  }
}
