/* Styles for the infinite scroll hex page */

/* Symbol Boards Container */
#symbolBoardsContainer {
  padding: 30px;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
}

/* Enhancing the container with subtle background pattern */
#symbolBoardsContainer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(199, 21, 133, 0.03) 0%, transparent 8%),
    radial-gradient(circle at 90% 30%, rgba(74, 58, 135, 0.03) 0%, transparent 8%),
    radial-gradient(circle at 30% 70%, rgba(199, 21, 133, 0.03) 0%, transparent 8%),
    radial-gradient(circle at 70% 90%, rgba(74, 58, 135, 0.03) 0%, transparent 8%);
  background-size: 100px 100px;
  background-attachment: fixed;
  z-index: -1;
  opacity: 0.8;
}

/* Category separator - elegant divider */
.category-separator {
  margin: 28px 0;
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(199, 21, 133, 0.1) 20%, 
    rgba(199, 21, 133, 0.2) 50%,
    rgba(199, 21, 133, 0.1) 80%, 
    transparent 100%);
}

.category-separator::before {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c71585;
  font-size: 20px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 5px rgba(199, 21, 133, 0.2);
  border: 1px solid rgba(199, 21, 133, 0.15);
}

/* Loading indicator - enhanced with dual spinner */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  position: relative;
}

.spinner {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top: 3px solid #c71585;
  border-bottom: 3px solid #4a3a87;
  animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
  position: relative;
}

.spinner::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-left: 3px solid #c71585;
  border-right: 3px solid #4a3a87;
  animation: spin-reverse 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.loading-indicator p {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
  color: #4a3a87;
  letter-spacing: 0.5px;
  animation: pulse 1.5s infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Symbol Board Animation - enhanced entrance effects */
.symbol-board-enter {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(5px);
}

.symbol-board-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 0.7s cubic-bezier(0.215, 0.61, 0.355, 1), 
              transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1),
              filter 0.7s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Symbol board wrapper with enhanced styling */
.symbol-board-wrapper {
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(229, 231, 235, 0.8);
}

.symbol-board-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Back to top button - floating style with animation */
#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  background: linear-gradient(135deg, #c71585, #9932cc);
  color: white;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(199, 21, 133, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

#backToTopBtn:hover {
  background: linear-gradient(135deg, #d83c9e, #a845d8);
  box-shadow: 0 6px 18px rgba(199, 21, 133, 0.6);
  transform: translateY(-5px) scale(1.05);
}

/* All Loaded Section with View All Button - celebration design */
.all-loaded-section {
  text-align: center;
  margin: 80px auto 60px;
  padding: 40px 30px;
  background: linear-gradient(135deg, #f9f7ff 0%, #f5eaff 100%);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(199, 21, 133, 0.1);
}

/* Decorative elements */
.all-loaded-section::before,
.all-loaded-section::after {
  content: "✦";
  position: absolute;
  color: rgba(199, 21, 133, 0.1);
  font-size: 60px;
  z-index: 0;
}

.all-loaded-section::before {
  top: 20px;
  left: 20px;
  transform: rotate(-20deg);
}

.all-loaded-section::after {
  bottom: 20px;
  right: 20px;
  transform: rotate(15deg);
}

.all-loaded-message {
  font-size: 26px;
  color: #4a3a87;
  margin-bottom: 30px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  position: relative;
  display: inline-block;
}

.all-loaded-message::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #c71585, #4a3a87);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Stylish View All Button with hover effects */
.view-all-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(135deg, #c71585, #9932cc);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(199, 21, 133, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  letter-spacing: 0.8px;
  border: none;
  margin-top: 15px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.view-all-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%);
  transition: 0.6s;
  z-index: -1;
}

.view-all-button:hover::before {
  left: 100%;
}

.view-all-button::after {
  content: '→';
  font-size: 22px;
  margin-left: 0;
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateX(-5px);
}

.view-all-button:hover::after {
  margin-left: 12px;
  opacity: 1;
  transform: translateX(0);
}

.view-all-button:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 30px rgba(199, 21, 133, 0.4);
  color: white;
}

/* View All Container for category pages */
.view-all-container {
  text-align: center;
  margin: 20px auto;
  padding: 10px 0;
  display: flex;
  justify-content: center;
}

/* Smaller View All button for individual symbol categories */
.symbols-container .view-all-button,
.category-view-all {
  padding: 10px 25px;
  font-size: 15px;
  margin-top: 5px;
  min-width: 150px;
  max-width: 250px;
  text-align: center;
}

/* Load More Button Styles */
.load-more-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  padding: 20px;
}

.load-more-button {
  background: linear-gradient(135deg, #c71585, #6d56c1);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(199, 21, 133, 0.3);
  min-width: 250px;
  justify-content: center;
}

.load-more-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.load-more-button:hover::before {
  left: 100%;
}

.load-more-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199, 21, 133, 0.4);
  background: linear-gradient(135deg, #e01a94, #7d63d1);
}

.load-more-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(199, 21, 133, 0.3);
}

.load-more-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.load-more-button:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(199, 21, 133, 0.3);
}

.load-more-text {
  font-size: 16px;
  font-weight: 600;
}

.load-more-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.load-more-button:hover .load-more-icon {
  transform: translateY(3px);
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
  #symbolBoardsContainer {
    padding: 10px;
  }
  
  #backToTopBtn {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 40px;
    right: 10px;
  }
  
  .view-all-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  
  .symbols-container .view-all-button {
    padding: 8px 20px;
    font-size: 14px;
    min-width: 120px;
  }
  
  .load-more-button {
    padding: 14px 28px;
    font-size: 16px;
    min-width: 200px;
  }
  
  .load-more-container {
    margin: 30px 0;
    padding: 15px;
  }
}

/* Progress bar at the top of the page to show scroll progress */
.progress-container {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 5px;
  background: transparent;
}

.progress-bar {
  height: 5px;
  background: #c71585;
  width: 0%;
}

/* Categories loaded indicator - now hidden */
.categories-loaded {
  display: none; /* Hide the counter completely */
}

/* Promotional Buttons Section */
.promotion-section {
  margin: 40px auto;
  padding: 30px 20px;
  background: linear-gradient(135deg, #ede7f6 0%, #d1c4e9 100%);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(109, 86, 193, 0.15);
  text-align: center;
  max-width: 1600px;
  border: 1px solid #b39ddb;
  animation: fadeIn 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.promotion-heading {
  margin-bottom: 25px;
  color: #4a3a87;
  font-size: 26px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.promotion-heading:after {
  content: '';
  position: absolute;
  width: 70%;
  height: 3px;
  background: linear-gradient(to right, rgba(74, 58, 135, 0), rgba(74, 58, 135, 0.8), rgba(74, 58, 135, 0));
  bottom: -10px;
  left: 15%;
}

.promotion-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.promotion-button {
  display: flex;
  align-items: center;
  padding: 14px 26px;
  background-color: #ffffff;
  color: #333;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid #b39ddb;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  margin: 8px 5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.promotion-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.promotion-button:hover:before {
  left: 100%;
}

.promotion-button:hover {
  background: linear-gradient(135deg, #6d56c1, #4a3a87);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(109, 86, 193, 0.4);
}

.promo-icon {
  font-size: 28px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.promotion-button:hover .promo-icon {
  transform: scale(1.2);
}

.promo-text {
  font-size: 16px;
  font-weight: 600;
}

/* Make promotional buttons responsive */
@media (max-width: 768px) {
  .promotion-buttons {
    flex-direction: column;
  }
  
  .promotion-button {
    width: 100%;
    justify-content: center;
  }
  
  .promotion-section {
    padding: 20px 15px;
  }
}
