/* Bộ lọc */
#qp-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

/* Lưới hiển thị quote */
.qp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* Quote item */
.qp-item {
  background: #fff;
  /*border: 1px solid #ddd;*/
	border: 2px solid #008000;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
	/*transition: all 0.3s ease*/
		  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

/* Hover effect */
.qp-item:hover {
  border-color: #006400; /* xanh lá cây đậm hơn khi hover */
  box-shadow: 0 4px 12px rgba(0, 128, 0, 0.2);
  /*transform: translateY(-2px);*/
  transform: scale(1.4); /* zoom in nhẹ */

}


/* Nội dung quote */
.qp-content {
  /*font-style: italic;*/
  margin-bottom: 10px;
  font-size: 1em;
  line-height: 1.5;
}

/* Hàng trên: Tác giả bên trái, Like bên phải */
.qp-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.qp-author {
  font-weight: bold;
  font-size: 1em;
color: #C19A6B;
}
.qp-author a {
background-color: #ff5722;
  color: #fff;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
 /* animation: dance 1s infinite ease-in-out;*/
	animation: moonwalk 1.2s infinite ease-in-out;
}
/* Keyframes for dancing effect */
@keyframes dance {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-3px) rotate(-2deg); }
  50%  { transform: translateX(3px) rotate(2deg); }
  75%  { transform: translateX(-3px) rotate(-2deg); }
  100% { transform: translateX(0); }
}
/* Keyframes for moonwalk effect */
@keyframes moonwalk {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-5px); }
  50%  { transform: translateX(5px); }
  75%  { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
.qp-author a:hover {
  animation: dance 1s infinite ease-in-out;
}
.qp-like {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qp-like-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.2em;
  color: #e0245e;
}

.qp-like-count {
  font-size: 1em;
  color: #333;
}

/* Hàng dưới: Danh mục bên trái, Share bên phải */
.qp-meta-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.qp-category {
  font-size: 0.9em;
  color: #C19A6B;	
}

/* Nút chia sẻ bằng icon Font Awesome */
.qp-share-icons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Phân trang */
.qp-pages {
  margin-top: 20px;
  text-align: center;
}


.qp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1877f2, #4e9af1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qp-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.qp-share-icons-modern {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}

.qp-icon-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.qp-icon-modern svg {
  width: 18px;
  height: 18px;
}

.qp-icon-modern:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* Nút phân trang hiện đại */
.qp-pages button {
  margin: 0 5px;
  padding: 6px 12px;
  border: none;
  background: #008000;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.qp-pages button:hover {
  background: #006400;
  transform: scale(1.05);
}

/* Nút đang được chọn */
.qp-pages button.active {
  background: #7dad03;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transform: scale(1.1);
}

#qp-overlay {
  position: fixed;
  top: 0;
  left: 0;
 width: 100vw;     /* dùng vw thay vì % để đảm bảo phủ toàn chiều ngang */
  height: 100vh;    /* dùng vh thay vì % để phủ toàn chiều */
  background-color: rgba(0, 0, 0, 0.5); /* màu đen mờ */
  backdrop-filter: blur(4px); /* hiệu ứng làm mờ */
  z-index: 998;
  display: none;
}

#qp-info-popup,
#qp-count-popup {
  position: fixed;
  z-index: 999; /* nằm trên overlay */
  background: white;
  padding: 20px;
  border-radius: 8px;
  /* thêm các thuộc tính khác nếu cần */
}
#qp-count-btn:hover,
#qp-info-btn:hover {
  background-color: #006400; /* màu xanh đậm hơn khi hover */
  transform: scale(1.05);    /* phóng to nhẹ */
  box-shadow: 0 0 10px rgba(0, 128, 0, 0.4); /* đổ bóng */
  transition: all 0.3s ease; /* hiệu ứng mượt mà */
}

.qp-like-btn:hover {
  transform: scale(1.2);
  color: #d2691e; /* lighter brown */
  text-shadow: 0 0 5px rgba(210, 105, 30, 0.5);
}

.info-button {
  background: linear-gradient(to right, #6fbf39, #008000); /* Gradient xanh lá */
  color: white;                      /* Màu chữ trắng */
  font-size: 16px;                   /* Cỡ chữ vừa phải */
  font-weight: bold;                /* Chữ đậm */
  padding: 10px 24px;               /* Khoảng cách trong nút */
  border: none;                     /* Không viền */
  border-radius: 8px;               /* Bo góc nhẹ */
  cursor: pointer;                  /* Con trỏ khi hover */
  text-align: center;               /* Căn giữa nội dung */
  transition: transform 0.2s ease;  /* Hiệu ứng khi hover */
}

.info-button:hover {
  transform: scale(1.05);           /* Phóng to nhẹ khi hover */
}
