/* RattyData Base Styles - Foundation only */

:root { 
  --bg: linear-gradient(135deg, #030201 0%, #060402 15%, #0A0705 35%, #0F0B08 60%, #140F0B 80%, #19130E 100%);
  --panel: rgba(13, 7, 5, 0.95);
  --panel2: rgba(18, 11, 8, 0.9);
  --text: #FFF8DC;
  --muted: #F5E6C8;
  --accent: linear-gradient(135deg, #FF8C00 0%, #FF6347 100%);
  --accent-solid: #FF6347;
  --border: rgba(255, 140, 0, 0.3);
  --warn: #FFD700;
  --success: #32CD32;
  --warm-glow: 0 0 15px rgba(255, 140, 0, 0.3);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; 
  padding: 0; 
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'DIN Alternate', sans-serif;
  font-weight: 700;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 140, 0, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 99, 71, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 60% 30%, rgba(255, 215, 0, 0.01) 0%, transparent 50%);
  pointer-events: none; z-index: -1;
}

/* Header */
.ratty-header {
  margin: 20px 0; border-radius: 20px; overflow: hidden;
  box-shadow: var(--warm-glow), 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border);
}

.header-image { width: 100%; height: auto; display: block; }

/* Navigation */
.nav-menu { 
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 20px 24px;
  background: var(--panel);
  border-radius: 12px;
  border: 2px solid var(--border);
  margin: 24px 0;
  position: relative;
  flex-wrap: wrap;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-category {
  font-family: 'Industry', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);  /* Changed from var(--warn) to var(--text) for white */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-items-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-item { 
  font-family: 'DIN Alternate', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #FF8C00;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-item:hover { 
  color: #FF6347;
}

.nav-item.active { 
  color: var(--warn);
}

/* Donation Button */
.donation-button-container {
  margin-left: auto;
  display: flex; 
  align-items: center; 
  gap: 8px; 
  cursor: pointer;
  align-self: center;
}

.donate-label {
  color: rgba(255, 140, 0, 0.9); font-size: 14px; font-weight: 700; 
  text-transform: lowercase; letter-spacing: 0.5px; 
  font-family: 'DIN Alternate', sans-serif; cursor: pointer;
}

.donation-icon {
  width: 50px; height: 50px; background: rgba(255, 140, 0, 0.1); 
  border-radius: 8px; cursor: pointer; transition: all 0.3s ease; 
  display: flex; align-items: center; justify-content: center;
}

.donation-icon:hover { 
  background: rgba(255, 140, 0, 0.2); transform: scale(1.05); 
}

.donation-icon img { 
  width: 40px; height: 40px; border-radius: 6px; object-fit: cover; 
}

/* Layout */
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 40px 60px; }

/* Panels */
.panel {
  background: var(--panel); backdrop-filter: blur(10px); border: 2px solid var(--border);
  border-radius: 20px; padding: 24px; margin: 24px 0;
  box-shadow: var(--warm-glow), 0 8px 32px rgba(0, 0, 0, 0.3); 
  position: relative; overflow: hidden;
}

.panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.7), transparent);
}

.panel h2 {
  margin: 0 0 20px; font-size: 20px; color: var(--warn); font-weight: 700;
  font-family: 'DIN Alternate', sans-serif; text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Forms */
label {
  display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px;
  font-weight: 700; font-family: 'DIN Alternate', sans-serif;
}

input[type="number"], input[type="text"] {
  background: var(--panel2); backdrop-filter: blur(5px); border: 2px solid var(--border);
  color: var(--text); border-radius: 12px; padding: 12px 16px; outline: none; 
  min-width: 140px; font-size: 14px; font-family: 'DIN Alternate', sans-serif; 
  font-weight: 700; transition: all 0.3s ease; width: 100%;
}

input[type="number"]:focus, input[type="text"]:focus {
  background: var(--panel2); border-color: var(--accent-solid);
  box-shadow: 0 0 0 3px rgba(255, 99, 71, 0.2), var(--warm-glow); 
  transform: translateY(-1px);
}

input[type="number"]::placeholder, input[type="text"]::placeholder { 
  color: var(--muted); opacity: 0.7; 
}

/* Buttons */
button {
  background: var(--accent); color: white; border: 0; border-radius: 12px;
  padding: 12px 20px; font-weight: 700; font-size: 14px;
  font-family: 'DIN Alternate', sans-serif; cursor: pointer;
  transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(255, 99, 71, 0.3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

button:hover { 
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 99, 71, 0.4); 
}

button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary { 
  background: linear-gradient(135deg, #4A3429 0%, #3D2A1F 100%); 
}

/* Status Text */
.status {
  color: var(--muted); font-size: 14px; min-height: 24px;
  font-weight: 700; font-family: 'DIN Alternate', sans-serif;
}

/* Modals */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
  background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; 
  justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; 
  transition: all 0.3s ease; backdrop-filter: blur(5px);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content { max-width: 90vw; max-height: 90vh; position: relative; }

.modal-image {
  max-width: 100%; max-height: 90vh; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); border: 3px solid var(--accent-solid);
}

.modal-close {
  position: absolute; top: -15px; right: -15px; background: var(--accent-solid);
  color: white; border: none; border-radius: 50%; width: 40px; height: 40px; 
  font-size: 24px; cursor: pointer; display: flex; align-items: center; 
  justify-content: center; box-shadow: 0 4px 12px rgba(255, 99, 71, 0.4); 
  transition: all 0.3s ease;
}

.modal-close:hover { background: #ff4500; transform: scale(1.1); }

/* Donation Modal */
.donation-modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); display: flex;
  align-items: center; justify-content: center; z-index: 10000; opacity: 0;
  visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(8px);
}

.donation-modal.active {
  opacity: 1; visibility: visible;
  animation: modalAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalAppear {
  0% { opacity: 0; transform: scale(0.7) rotate(-5deg); }
  50% { opacity: 0.8; transform: scale(1.05) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.donation-content {
  background: linear-gradient(145deg, rgba(26, 15, 10, 0.98) 0%, 
    rgba(36, 22, 17, 0.95) 50%, rgba(26, 15, 10, 0.98) 100%);
  border: 3px solid rgba(255, 140, 0, 0.6); border-radius: 25px; padding: 0;
  max-width: 650px; width: 90%; position: relative; text-align: left; overflow: hidden;
  box-shadow: var(--warm-glow), 0 25px 80px rgba(0, 0, 0, 0.9), 
    inset 0 2px 0 rgba(255, 140, 0, 0.3);
  animation: modalFloat 6s ease-in-out infinite;
}

@keyframes modalFloat {
  0%, 100% { transform: rotate(0deg) translateY(0px); }
  25% { transform: rotate(0.5deg) translateY(-3px); }
  50% { transform: rotate(0deg) translateY(-5px); }
  75% { transform: rotate(-0.5deg) translateY(-3px); }
}

.donation-hero {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.9) 0%, rgba(255, 99, 71, 0.8) 100%);
  padding: 25px 30px 20px; display: flex; align-items: center; gap: 20px;
  border-bottom: 2px solid rgba(255, 140, 0, 0.5); position: relative; overflow: hidden;
}

.donation-hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: heroShine 4s ease-in-out infinite;
}

@keyframes heroShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.donation-hero img {
  width: 80px; height: 80px; border-radius: 12px; 
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); object-fit: cover; 
  z-index: 2; align-self: flex-end;
}

.donation-text {
  flex: 1; color: white; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); z-index: 2;
}

.donation-title {
  font-size: 22px; font-weight: 700; margin: 0 0 5px 0; letter-spacing: 0.5px;
  animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); }
  50% { text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 140, 0, 0.5); }
}

.donation-message {
  font-size: 16px; line-height: 1.4; opacity: 0.95; font-weight: 500;
}

.donation-body { padding: 30px 40px 35px; }

.wallet-option {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.08) 0%, rgba(255, 99, 71, 0.06) 100%);
  border: 2px solid rgba(255, 140, 0, 0.25); border-radius: 12px; padding: 16px 20px;
  margin: 12px 0; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden;
}

.wallet-option::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.wallet-option:hover {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(255, 99, 71, 0.12) 100%);
  border-color: rgba(255, 140, 0, 0.5); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.2);
}

.wallet-option:hover::before { left: 100%; }

.wallet-label {
  color: var(--text); font-weight: 700; font-size: 15px; margin: 0 0 12px 0;
}

.wallet-address-container {
  background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 8px; padding: 12px 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}

.wallet-address {
  color: #87CEEB; font-family: 'Courier New', monospace; font-size: 13px;
  font-weight: 600; flex: 1; word-break: break-all; letter-spacing: 0.3px;
}

.copy-icon {
  color: rgba(255, 140, 0, 0.8); font-size: 16px; cursor: pointer;
  transition: all 0.2s ease; padding: 2px;
}

.copy-icon:hover { color: rgba(255, 140, 0, 1); transform: scale(1.1); }

.copy-feedback {
  color: #32CD32; font-size: 12px; font-weight: 600; margin-top: 8px;
  opacity: 0; transition: opacity 0.3s ease; text-align: center;
}

.copy-feedback.show { opacity: 1; }

/* Responsive Design */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 32px;
  }
  
  .nav-items-row {
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .donation-button-container {
    margin-left: 0;
    align-self: flex-start;
  }
  
  .nav-item { font-size: 12px; }
  .nav-category { font-size: 12px; }
}

@media (max-width: 600px) {
  .nav-items-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .donation-button-container { margin-top: 5px; }
  .donate-label { font-size: 12px; }
  
  .donation-icon { width: 40px; height: 40px; }
  .donation-icon img { width: 32px; height: 32px; }
}

@media (max-width: 980px) { .wrap { padding: 0 40px 50px; } }
@media (max-width: 700px) { 
  .wrap { padding: 0 40px 40px; } 
  .panel { padding: 18px; } 
}