/* CrossDrop Layout CSS */
:root {
  --header-height: 80px;
  --footer-height: 400px;
  --sidebar-width: 280px;
  --container-width: 1200px;
  --container-padding: 24px;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--bg-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 8px 0;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background-color: white;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 12px;
  color: var(--text-light);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.5px;
}

/* Navigation */
.main-nav {
  flex: 1;
  margin-left: 40px;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0 12px;
  position: relative;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  display: block;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
}

.dropdown-toggle i {
  margin-left: 6px;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-dark);
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary);
  padding-left: 20px;
}

.dropdown-menu-right {
  left: auto;
  right: 0;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
}

.network-indicator {
  display: flex;
  align-items: center;
  margin-right: 16px;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  font-size: 0.85rem;
}

.network-dot {
  width: 8px;
  height: 8px;
  background-color: #4caf50;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

.network-name {
  color: var(--text-light);
}

.wallet-status {
  display: flex;
  flex-direction: column;
  margin-right: 16px;
  font-size: 0.85rem;
}

.wallet-row {
  display: flex;
  align-items: center;
}

.wallet-address {
  color: var(--text-light);
}

.wallet-network {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.header-actions {
  display: flex;
  align-items: center;
}

.btn-connect-wallet {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.btn-connect-wallet i {
  margin-right: 8px;
}

.header-dropdown {
  position: relative;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  transition: all 0.3s ease;
}

/* Footer Styles */
.site-footer {
  background-color: var(--bg-darker);
  color: var(--text-light);
  padding-top: 60px;
}

.footer-main {
  padding-bottom: 40px;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 0 0 100%;
  max-width: 300px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-logo .logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  padding: 4px;
}

.footer-tagline {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-links-column {
  min-width: 160px;
}

.footer-links-column h4 {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-links-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-links-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-column li {
  margin-bottom: 12px;
}

.footer-links-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links-column a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-newsletter {
  flex: 0 0 100%;
  max-width: 360px;
}

.footer-newsletter h4 {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-newsletter h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-newsletter p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.newsletter-form .form-group {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 4px 0 0 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.newsletter-form button {
  border-radius: 0 4px 4px 0;
  padding: 0 20px;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
}

.footer-bottom .footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-blockchain {
  display: flex;
  align-items: center;
}

.blockchain-networks {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blockchain-networks span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  :root {
    --container-width: 100%;
  }
}

@media (max-width: 992px) {
  .footer-container {
    flex-direction: column;
  }
  
  .footer-brand, .footer-links, .footer-newsletter {
    max-width: 100%;
  }
  
  .footer-links {
    margin: 20px 0;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-right {
    display: none;
  }
  
  .footer-bottom .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
  
  .footer-blockchain {
    justify-content: center;
  }
}

/* Content Layout */
.content {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  min-height: calc(100vh - var(--footer-height));
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Sidebar Layout */
.with-sidebar {
  display: flex;
  gap: 40px;
}

.sidebar {
  flex: 0 0 var(--sidebar-width);
}

.main-content {
  flex: 1;
}

@media (max-width: 992px) {
  .with-sidebar {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

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

/* Theme Transition */
.theme-transition {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Wallet Modal Z-Index */
:root { --w3m-z-index: 2147483647; }