/* Traffic & Social Integration Styles */

/* ===== Top Navigation Bar ===== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

.top-nav .logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-nav .nav-links a,
.top-nav .nav-links button {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav .nav-links a:hover,
.top-nav .nav-links button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.top-nav .social-btn {
  font-weight: 600;
}

.top-nav .twitter-btn,
.top-nav .x-btn {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.4);
}

.top-nav .discord-btn {
  background: rgba(114, 137, 218, 0.2);
  border-color: rgba(114, 137, 218, 0.4);
}

/* Add padding to body to account for fixed header */
body {
  padding-top: 60px;
}

/* ===== Bottom Info Bar ===== */
.bottom-bar {
  background: #1a1a1a;
  border-top: 1px solid #333;
  padding: 20px;
  text-align: center;
  color: #adb5bd;
  font-size: 14px;
  margin-top: 40px;
}

.bottom-bar a {
  color: #9ca3ff;
  text-decoration: none;
  font-weight: 500;
}

.bottom-bar a:hover {
  color: #b8beff;
  text-decoration: underline;
}

.bottom-bar .social-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.bottom-bar .social-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 15px;
  background: rgba(156, 163, 255, 0.15);
  transition: all 0.3s ease;
}

.bottom-bar .social-links a:hover {
  background: rgba(156, 163, 255, 0.25);
  transform: translateY(-2px);
}

/* ===== Mobile Bottom Social Bar ===== */
.mobile-social-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(45, 45, 45, 0.98));
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  display: none; /* Hidden by default, shown on mobile */
  justify-content: space-around;
  padding: 6px 0;
  z-index: 999;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.mobile-social-bar button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: white;
  min-width: 60px;
}

.mobile-social-bar button:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.25);
}

.mobile-social-bar button span {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===== Enhanced Success Modal ===== */
.success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.success-modal-content {
  background: white;
  border-radius: 25px;
  padding: 35px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.3);
  animation: fadeInScale 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  border: 3px solid #C7D2FE;
}

.success-modal-content h2 {
  text-align: center;
  color: #27ae60;
  margin-bottom: 20px;
  font-size: 28px;
}

.success-modal-content .fish-preview {
  text-align: center;
  margin: 20px 0;
}

.success-modal-content .fish-preview img {
  max-width: 200px;
  border-radius: 10px;
  border: 3px solid #27ae60;
}

.success-modal-content .cta-text {
  text-align: center;
  font-size: 16px;
  color: #6c757d;
  margin: 20px 0;
}

.success-modal-content .social-actions {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.success-modal-content .btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.success-modal-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.success-modal-content .btn-twitter,
.success-modal-content .btn-x {
  background: #000000;
  color: white;
}

.success-modal-content .btn-discord {
  background: #7289da;
  color: white;
}

.success-modal-content .btn-secondary {
  background: #e9ecef;
  color: #495057;
}

/* ===== Share Menu Styles ===== */
.share-menu {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
}

.share-btn {
  padding: 10px 20px;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-twitter,
.share-x {
  border-color: #000000;
  color: #000000;
}

.share-twitter:hover,
.share-x:hover {
  background: #000000;
  color: white;
}

.share-facebook {
  border-color: #4267B2;
  color: #4267B2;
}

.share-facebook:hover {
  background: #4267B2;
  color: white;
}

.share-linkedin {
  border-color: #0077b5;
  color: #0077b5;
}

.share-linkedin:hover {
  background: #0077b5;
  color: white;
}

.share-reddit {
  border-color: #ff4500;
  color: #ff4500;
}

.share-reddit:hover {
  background: #ff4500;
  color: white;
}

.share-copy {
  border-color: #6c757d;
  color: #6c757d;
}

.share-copy:hover {
  background: #6c757d;
  color: white;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  /* Show mobile social bar */
  .mobile-social-bar {
    display: flex;
  }
  
  /* Add padding to body for mobile bar */
  body {
    padding-bottom: 50px;
  }
  
  /* Ensure bottom-bar has dark background on mobile */
  .bottom-bar {
    background: #1a1a1a !important;
    color: #adb5bd !important;
  }
  
  /* Simplify top nav */
  .top-nav {
    padding: 0 15px;
  }
  
  .top-nav .logo {
    font-size: 18px;
  }
  
  .top-nav .nav-links {
    gap: 8px;
  }
  
  .top-nav .nav-links a,
  .top-nav .nav-links button {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  /* Show nav icons and text on mobile */
  .top-nav .nav-links .btn-text {
    font-size: 11px;
  }
  
  /* Adjust modal for mobile */
  .success-modal-content {
    padding: 20px;
    border-radius: 15px;
  }
  
  .success-modal-content h2 {
    font-size: 24px;
  }
  
  .success-modal-content .social-actions {
    flex-direction: column;
  }
  
  .success-modal-content .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Share menu adjustments */
  .share-menu {
    flex-direction: column;
  }
  
  .share-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .top-nav {
    height: 50px;
  }
  
  body {
    padding-top: 50px;
  }
}

/* ===== Dark theme modal support ===== */
@media (prefers-color-scheme: dark) {
  .success-modal-content {
    background: #2d2d2d;
    color: #f8f9fa;
  }
  
  .success-modal-content .cta-text {
    color: #adb5bd;
  }
  
  .share-btn {
    background: #2d2d2d;
    border-color: #444;
    color: #f8f9fa;
  }
}

