/* ===== KISS N TELL HQ STYLE.CSS (FIXED) ===== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, serif;
  background: linear-gradient(180deg, #fff7fc, #ffe8f3, #fff7fc);
  color: #5a002f;
}


/* ===== TOP BAR ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;

  padding: 14px 22px;
  background: #fffaf3;

  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;

  box-shadow: 0 4px 12px rgba(255, 182, 193, 0.18);
}

.logo {
  font-weight: bold;
  font-size: 22px;
  color: #ff4da6;
  letter-spacing: 1px;
}

/* NAV */
.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-size: 13px;
  color: #ff4da6;
  text-decoration: none;
  font-weight: bold;
}

.nav a:hover {
  text-decoration: underline;
  color: #e60073;
}

/* ===== HEADER IMAGE ===== */
.header {
  width: 100%;
}

.diary-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* ===== MAIN WRAPPER ===== */
.layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;

  padding: 28px;
  margin: 20px;

  background: #ffcfe0;
  border-radius: 25px;

  box-shadow: 0 0 20px rgba(255, 182, 193, 0.25);
}

/* ===== CONTENT ===== */
.content {
  flex: 1;
  max-width: 700px;
  min-width: 0;
}

/* POSTS */
.post {
  background: #ffffff;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 16px;
  border: 1px dashed #ffb6c1;
  box-shadow: 0 0 12px rgba(255, 192, 203, 0.18);
}

.post h2,
.post h3 {
  margin-top: 0;
  color: #b00062;
  letter-spacing: 0.5px;
}

.post p {
  line-height: 1.7;
  font-size: 15px;
}

/* LINKS */
a {
  color: #ff4da6;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
  color: #e60073;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 280px;
  background: #fffafc;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #ffd6e7;
  box-shadow: 0 0 12px rgba(255, 192, 203, 0.15);
}

.box {
  margin-bottom: 15px;
  padding: 12px;
  background: white;
  border-radius: 12px;
  border: 1px solid #ffd6e7;
}

.box h3 {
  margin-top: 0;
  color: #b00062;
  font-size: 15px;
}

/* ===== INPUT ===== */
input {
  width: 100%;
  padding: 9px;
  margin-top: 8px;

  border-radius: 8px;
  border: 1px solid #ffb6c1;
  outline: none;
}

/* ===== BUTTONS ===== */
button {
  width: 100%;
  margin-top: 8px;
  padding: 9px;

  border: none;
  border-radius: 8px;

  background: #ff66b2;
  color: white;
  font-weight: bold;

  cursor: pointer;
}

button:hover {
  background: #ff4da6;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
    margin: 12px;
    padding: 18px;
  }

  .sidebar {
    width: 100%;
  }

  .content {
    max-width: 100%;
  }

  .topbar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .nav {
    justify-content: center;
  }
}