/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fffbe8 url('https://i.pinimg.com/736x/b8/20/18/b82018dde980bdaea94d9e2a35c186c8.jpg');
  font-family: 'Quicksand', sans-serif;
  color: #ff99cc;
  line-height: 1.6;
}

.container {
  max-width: 1000px;
  margin: 20px auto;
}

/* Header */
header {
  margin-bottom: 30px;
}

.header-image {
  background: url('https://i.pinimg.com/736x/12/9f/fc/129ffc3af9161580901c38f57428edd4.jpg') no-repeat center;
  background-size: cover;
  height: 160px;
  border: 2px solid #ffccdd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.header-image:before {
  content: '';
  position: absolute;
  top: 0px;
  left: 0;
  right: 0;
  height: 30px;
  background: url('https://i.pinimg.com/736x/e4/1c/f6/e41cf6b0bdb68fd0ee8edb1101ae3934.jpg') repeat-x;
}

.header-image h1 {
  font-size: 3em;
  color: #ff66aa;
  text-shadow: 2px 2px 0 #ffffff, 3px 3px 0 #ffccdd;
  letter-spacing: 2px;
}

/* Content layout */
.content-wrapper {
  display: flex;
  gap: 38px;
}

/* Sidebar */
.sidebar {
  width: 170px;
  flex-shrink: 0;
}

.navigation-box {
  background: #ffccdd;
  border: 2px solid #ffaabb;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 15px;
}

.navigation-box h3 {
  color: #ff66aa;
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.navigation-box ul {
  list-style: none;
}

.navigation-box li {
  margin-bottom: 8px;
}

.navigation-box a {
  display: flex;
  align-items: center;
  color: #ff66aa;
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 8px;
  background: #fff7fb;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.navigation-box a img {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.navigation-box a:hover {
  background: #fff0dd;
  box-shadow: 0 0 8px #ffd700;
  color: #ff5599;
}

.navigation-box a.active {
  background: #ffe0b3;
  box-shadow: 0 0 8px #cc9900;
  color: #ff3377;
}

.sidebar-image {
  text-align: center;
  position: relative;
}

.sidebar-image img {
  max-width: 100%;
  border-radius: 8px;
}

/* Main content */
.main-content {
  flex: 1;
}

.welcome-box, .faq-box, .credits-box {
  background: #ffffff;
  border: 2px solid #ffccdd;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

h2 {
  color: #ff66aa;
  text-align: center;
  font-size: 1.4em;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.welcome-box p {
  color: #ff99cc;
  text-align: center;
  font-size: 0.95em;
}

.faq-item {
  margin-bottom: 15px;
}

.question {
  color: #66cc99;
  font-weight: bold;
  font-size: 0.95em;
}

.answer {
  color: #ff99cc;
  font-size: 0.95em;
  margin-left: 10px;
}

.credits-box a {
  color: #ff66aa;
  text-decoration: none;
}

.credits-box a:hover {
  text-decoration: underline;
}

.todo-list {
  margin-top: 10px;
  text-align: center;
}

.todo-list h3 {
  color: #ff66aa;
  font-size: 1.1em;
  margin-bottom: 5px;
}

/* Right sidebar */
.right-sidebar {
  width: 170px;
  flex-shrink: 0;
}

.stats-box, .update-box, .extras-box {
  background: #ffffff;
  border: 2px solid #ffccdd;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 15px;
  text-align: center;
}

.stats-box h3, .update-box h3, .extras-box h3 {
  color: #ff66aa;
  font-size: 1.1em;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.visitor-counter {
  background: #ffeeee;
  border: 1px solid #ffccdd;
  border-radius: 5px;
  padding: 3px;
  margin: 5px 0 10px;
  color: #ff66aa;
  font-weight: bold;
}

.mood {
  margin-bottom: 10px;
}

.status-img, .extras-img {
  max-width: 100%;
  border-radius: 5px;
  margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 850px) {
  .content-wrapper {
    flex-direction: column;
  }
  
  .sidebar, .right-sidebar {
    width: 100%;
  }
}

/* Blog Form Styling */
#post-form {
  background: #fff0fa;
  border: 1.5px solid #f7b5d6;
  border-radius: 8px;
  padding: 18px 16px 10px 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px #ffe0b3;
}

#post-form label {
  display: block;
  margin-top: 10px;
  color: #a05a7b;
  font-weight: bold;
  font-size: 1em;
}

#post-form input[type="text"],
#post-form input[type="url"],
#post-form textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  border: 1px solid #f7b5d6;
  border-radius: 6px;
  font-family: 'Quicksand', Arial, sans-serif;
  background: #fff7fb;
  color: #a05a7b;
  font-size: 1em;
  transition: border-color 0.2s;
}

#post-form input[type="text"]:focus,
#post-form input[type="url"]:focus,
#post-form textarea:focus {
  border-color: #ffd700;
  outline: none;
}

#post-form textarea {
  min-height: 100px;
  resize: vertical;
}

#post-form button {
  padding: 8px 18px;
  background: #f7b5d6;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1em;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 4px #ffe0b3;
  margin-top: 5px;
  letter-spacing: 1px;
}

#post-form button:hover {
  background: #ffd700;
  color: #fff8e1;
  box-shadow: 0 0 10px #ffd700, 0 2px 8px #ffe0b3;
}

/* Blog Posts Styling */
#blog-posts .post,
.blog-entries .post {
  background: #fff;
  border-radius: 8px;
  padding: 18px 16px 12px 16px;
  margin-bottom: 18px;
  border: 1.5px solid #f7b5d6;
  box-shadow: 0 2px 8px #fff0dd;
  transition: box-shadow 0.2s;
  position: relative;
}

#blog-posts .post:hover,
.blog-entries .post:hover {
  box-shadow: 0 0 16px #ffd700, 0 2px 16px #ffe0b3;
}

.post h2 {
  margin: 0 0 8px 0;
  color: #e07bb0;
  font-size: 1.15em;
  letter-spacing: 1px;
  font-weight: bold;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.post-date {
  font-size: 0.95em;
  color: #a05a7b;
  font-weight: normal;
  margin-left: 8px;
  font-style: italic;
  opacity: 0.85;
}

.post .date {
  color: #a05a7b;
  font-size: 0.92em;
  margin: 0 0 10px 0;
  font-style: italic;
}

.post .content {
  margin: 0;
  color: #ff99cc;
  font-size: 1em;
  white-space: pre-line;
}

/* Optional: Style for empty blog message */
#blog-posts p,
.blog-entries p {
  color: #ffb3c6;
  text-align: center;
  font-size: 1em;
  margin-top: 16px;
}

/* Blog post with images layout */
.post.with-images {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  position: relative;
}

.post-main {
  flex: 1;
  min-width: 0;
}

.blog-images-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 70px;
  align-items: flex-end;
}

/* Make blog images small and clickable */
.blog-image-small {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 6px #ffe0b3;
  border: 1.5px solid #ffccdd;
  background: #fff7fb;
  margin-left: 0;
  cursor: pointer;
  transition: box-shadow 0.2s, opacity 0.2s;
}
.blog-image-small:hover {
  opacity: 0.8;
  box-shadow: 0 0 0 2px #ffd6e7, 0 2px 8px #ffe0b3;
}

/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.7); /* semi-transparent dark */
  justify-content: center;
  align-items: center;
}
.modal.show {
  display: flex;
}

/* Modal image */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 4px 40px #00000044;
  background: #fff;
  animation: zoom 0.3s;
}
@keyframes zoom {
  from { transform: scale(0.7);}
  to { transform: scale(1);}
}

/* Close button */
.close {
  position: absolute;
  top: 24px;
  right: 48px;
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  cursor: pointer;
  text-shadow: 0 2px 8px #000;
  z-index: 10001;
  transition: color 0.2s;
}
.close:hover {
  color: #ffd6e7;
}

@media (max-width: 700px) {
  .modal-content {
    width: 96vw;
    max-width: 96vw;
  }
  .close {
    right: 16px;
    font-size: 36px;
    top: 12px;
  }
  .post.with-images {
    flex-direction: column;
    gap: 10px;
  }
  .blog-images-column {
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
  }
  .blog-image-small {
    width: 60px;
    height: 60px;
  }
}

.post-actions {
  margin-top: 12px;
}
.edit-btn, .delete-btn {
  background: #ffe0f0;
  color: #e07bb0;
  border: 1px solid #f7b5d6;
  border-radius: 5px;
  padding: 4px 10px;
  margin-right: 8px;
  font-size: 0.95em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.edit-btn:hover {
  background: #ffd6e7;
  color: #a05a7b;
}
.delete-btn {
  background: #fff0f0;
  color: #e07b7b;
  border-color: #ffb3b3;
}
.delete-btn:hover {
  background: #ffe0e0;
  color: #d00000;
}

#show-admin-btn {
  background: #ffccdd;
  color: #ff66aa;
  border: 2px solid #ff99cc;
  border-radius: 12px;
  padding: 10px 22px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(255, 153, 204, 0.3);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  margin-bottom: 20px;
  display: inline-block;
  text-align: center;
}

#show-admin-btn:hover,
#show-admin-btn:focus {
  background: #ff99cc;
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 102, 170, 0.6);
  outline: none;
}

#show-admin-btn:active {
  background: #ff66aa;
  box-shadow: 0 2px 6px rgba(255, 102, 170, 0.8);
  transform: translateY(1px);
}
