/* Custom Styles for Forest Staking */ 

/* Banner text centering and styling */
.definition .header, 
.definition .subtitle,
.definition .title {
    text-align: center !important;
    width: 100% !important; /* Ensure full width for centering */
}

.definition .title {
    font-size: 3rem !important; /* Slightly smaller font size */
    transition: text-shadow 0.3s ease-in-out !important;
}

.definition .title:hover {
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.8) !important;
}

/* Hide social media box in the main view */
.follow-box {
    display: none !important;
}

/*
  This rule deconstructs the grid on mobile and centers the team cards.
  It overrides the component's grid layout for all tablet and mobile screen sizes.
*/
@media (max-width: 991.98px) {
  section.team .list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2.5rem !important;
  }
} 

#portal-logo-nav-item {
  display: flex;
  align-items: center;
  padding: 0 20px;
}

#portal-logo {
  height: 28px;
  opacity: 0.8;
  transition: all 0.3s ease-in-out;
}

#portal-logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.7));
  transform: scale(1.05);
} 

/* Header Layout */
.main-header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.main-header .logo-link {
  grid-column: 1;
}

.main-header nav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.main-header nav ul {
  display: flex;
  gap: 2.75em;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Keep PTB logo on the right */
.main-header nav ul li:last-child {
  position: absolute;
  right: 2rem;
}

/* Center the other nav items */
.main-header nav ul li:not(:last-child) {
  margin-left: -8rem;
}

.main-header nav ul li:last-child .link {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.main-header nav ul li:last-child .link img {
  height: 40px;
  width: auto;
  filter: brightness(1);
  transition: filter 0.3s ease;
}

.main-header nav ul li:last-child .link:hover img {
  filter: brightness(1.2) drop-shadow(0 0 10px rgba(74, 222, 128, 0.5));
} 

@keyframes rotatePulse {
  0% {
    transform: rotate(0deg);
    filter: brightness(1) drop-shadow(0 0 8px rgba(147, 51, 234, 0.5));
  }
  50% {
    filter: brightness(1.1) drop-shadow(0 0 15px rgba(147, 51, 234, 0.8));
  }
  100% {
    transform: rotate(360deg);
    filter: brightness(1) drop-shadow(0 0 8px rgba(147, 51, 234, 0.5));
  }
}

@keyframes staticPulse {
  0% {
    filter: brightness(1) drop-shadow(0 0 8px rgba(147, 51, 234, 0.5));
    }
    50% {
    filter: brightness(1.2) drop-shadow(0 0 15px rgba(147, 51, 234, 0.8));
    }
    100% {
    filter: brightness(1) drop-shadow(0 0 8px rgba(147, 51, 234, 0.5));
  }
}

/* Update the PTB logo styles */
.main-header nav ul li:last-child .link img {
  height: 60px;
  width: auto;
  transition: all 0.3s ease;
}

.main-header nav ul li:last-child .link img {
  animation: rotatePulse 8s linear infinite, staticPulse 3s ease-in-out infinite;
}

.main-header nav ul li:last-child .link:hover img {
  animation: rotatePulse 4s linear infinite, staticPulse 1.5s ease-in-out infinite;
} 

/* Logo Animation */
@keyframes rotateCircle {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Logo styles */
.ptb-logo-wrapper {
  position: relative;
}

.ptb-logo-base {
  filter: brightness(1);
  transition: filter 0.3s ease;
  transform: translate(-50%, -50%) !important;
}

.ptb-logo-circle {
  animation: rotateCircle 8s linear infinite;
  filter: brightness(1);
  transition: all 0.3s ease;
}

/* Hover effects */
.main-header nav ul li:last-child .link:hover .ptb-logo-circle {
  animation-duration: 4s;
  filter: brightness(1.2) drop-shadow(0 0 10px rgba(147, 51, 234, 0.5));
}

.main-header nav ul li:last-child .link:hover .ptb-logo-base {
  filter: brightness(1.2);
} 

/* Portal to Bitcoin Logo */
.ptb-logo-container {
  position: relative;
  width: 85px;  /* Much larger overall size */
  height: 85px;  /* Much larger overall size */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -10px; /* Adjust vertical alignment in header */
}

.ptb-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: spin 8s linear infinite;
  transition: all 0.3s ease;
  z-index: 3;
}

.ptb-letter {
  position: absolute;
  width: 15%;  /* Dramatically smaller P */
  height: 15%;  /* Dramatically smaller P */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  z-index: 2;
  transition: all 0.3s ease;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Hover Effects */
.ptb-logo-container:hover {
  transform: scale(1.1);
}

.ptb-logo-container:hover .ptb-circle {
  filter: brightness(1.2) drop-shadow(0 0 12px rgba(147, 51, 234, 0.7)) drop-shadow(0 0 8px rgba(74, 222, 128, 0.4));
}

.ptb-logo-container:hover .ptb-letter {
  filter: brightness(1.2);
  transform: translate(-50%, -50%) !important;
}

/* Smooth transitions */
.ptb-logo-container {
  transition: transform 0.3s ease;
} 

/* Header positioning adjustments */
.main-header .logo-link {
  margin-left: -4rem;  /* Forest logo position */
}

/* Center nav items with slight left offset */
.main-header nav {
  transform: translateX(-3rem);
}

/* Move Portal logo to far right */
.main-header nav ul li:last-child {
  position: absolute;
  right: 2rem;
}

.portal-logo-container {
  margin-top: -1.5rem;
  margin-right: -3rem;  /* Push further right */
}

/* Ensure nav items stay together */
.main-header nav ul {
  display: flex;
  gap: 2.75em;
  justify-content: center;
}

/* Ensure other nav items don't get affected by the absolute positioning */
.main-header nav ul li:not(:last-child) {
  position: relative;
} 

/* Three-section header layout */
.main-header {
  padding-top: 1.5rem;  /* Add padding to top of header */
}

.main-header .container {
  display: grid;
  grid-template-columns: 250px 1fr 100px;
  align-items: center;
  width: 100%;
  padding: 0 1rem;
}

/* Left section - Forest logo */
.main-header .logo-link {
  margin-left: -4rem;
  grid-column: 1;
  display: flex;
  align-items: center;
}

/* Center section - Navigation */
.main-header nav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  width: 100%;
}

.main-header nav ul {
  display: flex;
  gap: 4rem;  /* Increased gap between nav items */
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  transform: translateX(-3rem);  /* Adjust position to match image */
}

.main-header nav ul li {
  white-space: nowrap;  /* Prevent text wrapping */
}

.main-header nav ul li a {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Right section - Portal logo */
.portal-logo-wrapper {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  margin-right: -2rem;
  padding-top: 1rem;
}

/* Ensure proper z-index stacking */
.main-header {
  position: relative;
  z-index: 10;
}

/* Remove any absolute positioning that might interfere */
.main-header nav ul li:last-child {
  position: static;
}

/* Ensure nav items stay together */
.main-header nav ul li:not(:last-child) {
  position: relative;
  margin-left: 0;  /* Remove previous margin */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .main-header nav ul {
    gap: 2rem;
    transform: none;
  }
  
  .main-header .logo-link {
    margin-left: 0;
  }
}

/* Portal Page Styles */
.portal-page {
  min-height: 100vh;
  padding: 120px 0;
  background-color: #0C1117;
  position: relative;
}

.portal-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: image-set(
    url('assets/img/bg-main@2x.webp') type('image/webp') 2x,
    url('assets/img/bg-main@1x.webp') type('image/webp') 1x,
    url('assets/img/bg-main.png') type('image/png')
  );
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 0;
}

.portal-page .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
} 