/* Social Media Integration Styles */

/* Social Media Icons Container */
.social-media-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Clean Centered Social CTA */
.welcome-social-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem auto 0;
  text-align: center;
}

.social-cta-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-medium);
  margin: 0;
}

.social-cta-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-green-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: var(--primary-green);
  color: white;
  box-shadow: 0 4px 12px rgba(30, 74, 53, 0.25);
}

.social-green-icon i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.social-green-icon:hover {
  background: var(--secondary-green);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(30, 74, 53, 0.35);
}

.social-green-icon:hover i {
  transform: scale(1.15);
}

/* Active/Focus states */
.social-green-icon:active {
  transform: translateY(-1px) scale(1.02);
}

/* Mobile Responsive for Green Social CTA */
@media (max-width: 768px) {
  .welcome-social-cta {
    gap: 0.75rem;
    margin-top: 0.75rem;
  }
  
  .social-cta-text {
    font-size: 0.9rem;
  }
  
  .social-green-icon {
    width: 36px;
    height: 36px;
  }
  
  .social-green-icon i {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .welcome-social-cta {
    gap: 0.6rem;
    margin-top: 0.6rem;
  }
  
  .social-cta-text {
    font-size: 0.85rem;
  }
  
  .social-green-icon {
    width: 34px;
    height: 34px;
  }
  
  .social-green-icon i {
    font-size: 15px;
  }
}

.social-media-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-media-icon::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 ease;
}

.social-media-icon:hover::before {
  left: 100%;
}

.social-media-icon i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.social-media-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-media-icon:hover i {
  transform: scale(1.1);
}

/* Twitter/X Styling */
.social-media-icon.twitter {
  background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
  color: white;
}

.social-media-icon.twitter:hover {
  background: linear-gradient(135deg, #0d8bd9 0%, #0a7bc4 100%);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

/* Telegram Styling */
.social-media-icon.telegram {
  background: linear-gradient(135deg, #0088cc 0%, #006bb3 100%);
  color: white;
}

.social-media-icon.telegram:hover {
  background: linear-gradient(135deg, #006bb3 0%, #005a9a 100%);
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

/* Discord Styling */
.social-media-icon.discord {
  background: linear-gradient(135deg, #7289da 0%, #5b6eae 100%);
  color: white;
  cursor: pointer;
}

.social-media-icon.discord:hover {
  background: linear-gradient(135deg, #5b6eae 0%, #4e5d94 100%);
  box-shadow: 0 4px 12px rgba(114, 137, 218, 0.4);
}

/* Header Social Media */
.header-social-media {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.header-social-media .social-media-icon {
  width: 36px;
  height: 36px;
}

.header-social-media .social-media-icon i {
  font-size: 16px;
}

/* Footer Social Media - Inline with Support Column */
.footer-social-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-social-inline .social-cta-icons {
  gap: 0.5rem;
}

.footer-social-inline .social-green-icon {
  width: 32px;
  height: 32px;
}

.footer-social-inline .social-green-icon i {
  font-size: 14px;
}

.footer-social-inline .social-cta-text {
  font-size: 0.9rem;
  margin-top: 0.25rem;
  color: white;
}

/* About Page Social CTA */
.about-social-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

/* FAQ Page Social CTA */
.faq-social-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-social-media {
    display: none;
  }
  
  .mobile-social-media {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
  }
  
  .mobile-social-media .social-media-container {
    gap: 1rem;
  }
}

/* Discord Popup Modal */
.discord-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.discord-popup-overlay.show {
  opacity: 1;
}

.discord-popup-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 90%;
  margin: 1rem;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.discord-popup-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7289da, #5b6eae, #4e5d94);
}

.discord-popup-inner {
  transform: translateY(30px);
  opacity: 0;
  animation: slideInFade 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.discord-popup-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #7289da 0%, #5b6eae 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(114, 137, 218, 0.3);
}

.discord-popup-icon i {
  font-size: 24px;
  color: white;
}

.discord-popup-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.discord-popup-text {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.discord-username {
  background: linear-gradient(135deg, #f1f3f4 0%, #e8ebec 100%);
  border: 2px solid #7289da;
  border-radius: 12px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: 600;
  color: #7289da;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  user-select: all;
  cursor: text;
  transition: all 0.3s ease;
}

.discord-username:hover {
  background: linear-gradient(135deg, #e8ebec 0%, #dde0e1 100%);
  transform: scale(1.02);
}

.discord-copy-button {
  background: linear-gradient(135deg, #7289da 0%, #5b6eae 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(114, 137, 218, 0.3);
  position: relative;
  overflow: hidden;
  margin-right: 0.75rem;
}

.discord-copy-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 ease;
}

.discord-copy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(114, 137, 218, 0.4);
  background: linear-gradient(135deg, #5b6eae 0%, #4e5d94 100%);
}

.discord-copy-button:hover::before {
  left: 100%;
}

.discord-close-button {
  background: linear-gradient(135deg, #666 0%, #555 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.discord-close-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #555 0%, #444 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Animation for slide in effect */
@keyframes slideInFade {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Copy success feedback */
.discord-copy-button.copied {
  background: linear-gradient(135deg, #28a745 0%, #20a13a 100%);
  transform: scale(0.95);
}

.discord-copy-button.copied::after {
  content: '✓ Copied!';
}

/* Mobile Bottom Sheet Transformation - Discord Modal */
@media (max-width: 768px) {
  /* Transform overlay to align bottom sheet at bottom */
  .discord-popup-overlay {
    align-items: flex-end;
  }

  /* Transform modal to bottom sheet */
  .discord-popup-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2rem 1.5rem;
    border-radius: 20px 20px 0 0; /* Rounded corners only on top */
    max-height: 85vh; /* Prevent covering entire screen */
    overflow-y: auto; /* Allow scrolling if content is tall */
  }
}

@media (max-width: 480px) {
  .discord-popup-content {
    padding: 1.5rem 1rem;
    max-height: 90vh; /* More screen space on smaller devices */
  }

  .discord-popup-title {
    font-size: 1.4rem;
  }

  .discord-username {
    font-size: 1.1rem;
    padding: 0.875rem;
  }
}