body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #2a1810 0%, #181818 50%, #1e1a16 100%);
  color: #fff;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

/* Floating Paw Prints */
.paw-prints {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.paw-prints::before,
.paw-prints::after {
  content: '🐾';
  position: absolute;
  font-size: 20px;
  color: rgba(246, 176, 66, 0.1);
  animation: floatingPaws 15s infinite linear;
}

.paw-prints::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.paw-prints::after {
  top: 60%;
  right: 15%;
  animation-delay: 7s;
}

@keyframes floatingPaws {
  0% { 
    transform: translateY(0px) rotate(0deg); 
    opacity: 0;
  }
  10% { opacity: 0.1; }
  50% { 
    transform: translateY(-20px) rotate(180deg); 
    opacity: 0.1;
  }
  90% { opacity: 0.1; }
  100% { 
    transform: translateY(0px) rotate(360deg); 
    opacity: 0;
  }
}

/* Cat Magazine Layout */
.cat-magazine {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(145deg, #f5f1eb 0%, #fff8f0 100%);
  box-shadow: 0 0 50px rgba(246, 176, 66, 0.3);
  border-radius: 15px;
  color: #2a1810;
  position: relative;
}

.magazine-cover {
  background: linear-gradient(135deg, #f6b042 0%, #d4a543 100%);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.magazine-cover::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><circle fill="%23ffffff" opacity="0.05" cx="30" cy="30" r="2"/></g></svg>');
  animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.magazine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 3px solid rgba(255,255,255,0.3);
  padding-bottom: 15px;
}

.magazine-logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2a1810;
  text-shadow: 2px 2px 4px rgba(255,255,255,0.3);
  letter-spacing: 3px;
}

.issue-date {
  color: #5d4e37;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.cover-story {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 25px;
}

.cover-cat {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.8);
  box-shadow: 0 0 30px rgba(246, 176, 66, 0.6);
  animation: catGlow 3s ease-in-out infinite alternate;
}

.cover-headline h1 {
  font-size: 4rem;
  color: #2a1810;
  margin: 0;
  text-shadow: 3px 3px 6px rgba(255,255,255,0.4);
  animation: titlePulse 4s ease-in-out infinite;
}

.cover-tagline {
  font-size: 1.2rem;
  color: #5d4e37;
  font-style: italic;
  margin: 10px 0 0 0;
  line-height: 1.4;
}

.cover-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.feature-item {
  background: rgba(255,255,255,0.9);
  color: #2a1810;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.magazine-spread {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.article-column {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.article-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2a1810;
  margin-bottom: 8px;
  border-bottom: 3px solid #f6b042;
  padding-bottom: 10px;
}

.byline {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 25px;
  font-style: italic;
}

.drop-cap {
  float: left;
  font-size: 4rem;
  line-height: 3rem;
  margin: 0 8px 0 0;
  color: #f6b042;
  font-weight: 700;
}

.article-content p {
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
  text-align: justify;
}

.pullquote {
  background: linear-gradient(135deg, #f6b042 0%, #d4a543 100%);
  color: #2a1810;
  padding: 20px;
  margin: 25px 0;
  border-radius: 10px;
  font-size: 1.1rem;
  font-style: italic;
  text-align: center;
  box-shadow: 0 5px 15px rgba(246, 176, 66, 0.3);
}

.stats-sidebar {
  background: linear-gradient(135deg, #2a1810 0%, #3a2820 100%);
  color: #f6b042;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.sidebar-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #f6b042;
  border-bottom: 2px solid #f6b042;
  padding-bottom: 10px;
}

.cat-stat {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding: 12px;
  background: rgba(246, 176, 66, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.cat-stat:hover {
  transform: translateX(5px);
  background: rgba(246, 176, 66, 0.2);
}

.stat-icon {
  font-size: 1.5rem;
  min-width: 30px;
}

.stat-label {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.stat-value {
  color: #f6b042;
  font-weight: 700;
  font-size: 1.1rem;
}

.contract-section {
  margin-top: 25px;
  padding: 15px;
  background: rgba(246, 176, 66, 0.15);
  border-radius: 8px;
  border: 2px solid #f6b042;
}

.contract-title {
  color: #f6b042;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.contract-container {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.contract-address {
  font-family: monospace;
  font-size: 0.8rem;
  background: rgba(246, 176, 66, 0.2);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #f6b042;
  color: #f6b042;
}

.copy-btn {
  background: transparent;
  border: 1px solid #f6b042;
  color: #f6b042;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: #f6b042;
  color: #2a1810;
}

.copy-btn.copied {
  background: #f6b042;
  color: #2a1810;
}

.magazine-footer {
  background: linear-gradient(135deg, #f6b042 0%, #d4a543 100%);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
}

.social-title {
  color: #2a1810;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.cat-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #2a1810;
  color: #f6b042;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cat-social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  background: #1a0f08;
}

.social-icon, .social-arrow {
  font-size: 1.3rem;
}

.footer {
  text-align: center;
  color: #ccc;
  background: #1a0f08;
  padding: 2rem 0 1rem 0;
  margin-top: 2rem;
  border-radius: 16px 16px 0 0;
  font-size: 1rem;
}

@keyframes catGlow {
  0% { 
    box-shadow: 0 0 20px rgba(246, 176, 66, 0.6);
  }
  100% { 
    box-shadow: 0 0 40px rgba(246, 176, 66, 0.9);
  }
}

@keyframes titlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .cat-magazine {
    padding: 15px;
    margin: 10px;
  }
  
  .magazine-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .magazine-logo {
    font-size: 2rem;
  }
  
  .cover-story {
    flex-direction: column;
    text-align: center;
  }
  
  .cover-cat {
    width: 120px;
    height: 120px;
  }
  
  .cover-headline h1 {
    font-size: 2.5rem;
  }
  
  .magazine-spread {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .article-column, .stats-sidebar {
    padding: 20px;
  }
  
  .cover-features {
    justify-content: center;
  }
  
  .contract-container {
    flex-direction: column;
    gap: 10px;
  }
}

/* Copy functionality */
function copyContract(elementId) {
  try {
    const element = document.getElementById(elementId);
    const button = element.nextElementSibling;
    
    const contractText = element.textContent.trim();
    
    if (navigator.clipboard && contractText !== 'TBD (Under Review)') {
      navigator.clipboard.writeText(contractText).then(() => {
        showCopyFeedback(button);
      }).catch(() => {
        fallbackCopy(contractText, button);
      });
    } else {
      button.textContent = 'Soon!';
      button.classList.add('copied');
      setTimeout(() => {
        button.textContent = '📋';
        button.classList.remove('copied');
      }, 1500);
    }
  } catch (error) {
    console.warn('Copy failed:', error);
  }
}