/* ===== CSS Variables ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6a6a7a;
  
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-pink: #ec4899;
  
  --bitcoin: #f7931a;
  --monero: #ff6600;
  --ethereum: #627eea;
  --patreon: #ff424d;
  --streamelements: #6441a5;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --glow-color: rgba(139, 92, 246, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Background Effects ===== */
.background-glow {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: glow-rotate 30s linear infinite;
}

@keyframes glow-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.background-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ===== Main Container ===== */
main {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0.5rem 0.65rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 0.35rem 0 0.25rem;
}

.avatar-container {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0 auto 0.4rem;
  overflow: hidden;
  border-radius: 50%;
}

.avatar-glow {
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue), var(--accent-pink));
  border-radius: 50%;
  opacity: 0.6;
  filter: blur(12px);
  animation: avatar-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes avatar-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-card);
  z-index: 1;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border-radius: 50%;
  font-size: 3rem;
  color: white;
  z-index: 0;
}

.hero h1 {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.2rem;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

/* ===== Social Icons ===== */
.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  row-gap: 0.35rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.social-link.social-img img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.7);
  transition: filter var(--transition-normal);
}

.social-link.social-img:hover img {
  filter: grayscale(0%) brightness(1);
}

/* Make Matrix logo brighter since it's dark */
.social-link.social-img img[alt="Matrix"] {
  filter: grayscale(100%) brightness(1.5) invert(1);
}

.social-link.social-img:hover img[alt="Matrix"] {
  filter: grayscale(0%) brightness(1.2) invert(0);
}

/* ===== Sections ===== */
.section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.65rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.section-title i {
  color: var(--accent-purple);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.7rem;
  margin-bottom: 0.45rem;
}

/* ===== Donation Platforms ===== */
.donation-platforms {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.platform-card:hover {
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.platform-card .fa-arrow-right {
  margin-left: auto;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.platform-card:hover .fa-arrow-right {
  transform: translateX(4px);
  color: var(--text-primary);
}

.platform-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.patreon .platform-icon {
  background: rgba(255, 66, 77, 0.15);
  color: var(--patreon);
}

.patreon:hover {
  border-color: var(--patreon);
  box-shadow: 0 4px 20px rgba(255, 66, 77, 0.15);
}

.kofi .platform-icon {
  background: rgba(255, 93, 177, 0.15);
  color: #ff5dbd;
}

.kofi:hover {
  border-color: #ff5dbd;
  box-shadow: 0 4px 20px rgba(255, 93, 177, 0.15);
}

.streamelements .platform-icon {
  background: rgba(100, 65, 165, 0.15);
  color: var(--streamelements);
}

.streamelements:hover {
  border-color: var(--streamelements);
  box-shadow: 0 4px 20px rgba(100, 65, 165, 0.15);
}

.merch .platform-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.merch:hover {
  border-color: #22c55e;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
}

.platform-info {
  display: flex;
  flex-direction: column;
}

.platform-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.825rem;
  line-height: 1.15;
}

.platform-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.15;
}

/* ===== Cryptocurrency Grid ===== */
.crypto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.crypto-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.4rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.crypto-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.crypto-card[data-crypto="bitcoin"]:hover {
  border-color: var(--bitcoin);
  box-shadow: 0 8px 32px rgba(247, 147, 26, 0.15);
}

.crypto-card[data-crypto="monero"]:hover {
  border-color: var(--monero);
  box-shadow: 0 8px 32px rgba(255, 102, 0, 0.15);
}

.crypto-card[data-crypto="ethereum"]:hover {
  border-color: var(--ethereum);
  box-shadow: 0 8px 32px rgba(98, 126, 234, 0.15);
}

.crypto-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}

.crypto-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.crypto-icon.bitcoin {
  background: rgba(247, 147, 26, 0.15);
  color: var(--bitcoin);
}

.crypto-icon.monero {
  background: rgba(255, 102, 0, 0.15);
  color: var(--monero);
}

.crypto-icon.ethereum {
  background: rgba(98, 126, 234, 0.15);
  color: var(--ethereum);
}

.crypto-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.crypto-name .name {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-primary);
  line-height: 1.1;
}

.crypto-name .symbol {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.1;
}

.crypto-address-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.35rem;
  flex: 1;
}

.crypto-address {
  flex: 1;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.55rem;
  color: var(--text-secondary);
  word-break: break-all;
  line-height: 1.2;
  background: none;
  text-align: center;
}

.copy-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 24px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.7rem;
}

.copy-btn:hover {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: white;
}

.copy-btn.copied {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
}

.copy-btn.copied i::before {
  content: "\f00c"; /* Check icon */
}

.copy-feedback {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: #22c55e;
  color: white;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  opacity: 0;
  transform: translateY(-8px);
  transition: all var(--transition-normal);
  pointer-events: none;
}

.copy-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 0.35rem 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.footer a {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--accent-pink);
}

.heart-pulse {
  color: var(--accent-pink);
  animation: heart-beat 1.5s ease-in-out infinite;
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
  main {
    padding: 0.5rem 1.5rem;
    gap: 0.5rem;
  }
  
  .hero {
    padding: 0.25rem 0 0.15rem;
  }
  
  .avatar-container {
    width: 56px;
    height: 56px;
    margin-bottom: 0.35rem;
  }
  
  .hero h1 {
    font-size: 1.3rem;
    margin-bottom: 0.1rem;
  }
  
  .tagline {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }
  
  .section {
    padding: 0.5rem 0.75rem;
  }
  
  .section-title {
    font-size: 0.95rem;
    gap: 0.4rem;
    margin-bottom: 0.15rem;
  }
  
  .section-subtitle {
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
  }
  
  .social-icons {
    gap: 0.4rem;
  }
  
  .social-link {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .social-link.social-img img {
    width: 18px;
    height: 18px;
  }
  
  .donation-platforms {
    flex-direction: row;
    gap: 0.35rem;
    margin-top: 0.2rem;
  }
  
  .platform-card {
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding: 0.4rem 0.35rem;
  }
  
  .platform-card .fa-arrow-right {
    display: none;
  }
  
  .platform-icon {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
    margin: 0 auto;
  }
  
  .platform-info {
    align-items: center;
    margin-top: 0.25rem;
  }
  
  .platform-name {
    font-size: 0.75rem;
  }
  
  .platform-desc {
    font-size: 0.65rem;
  }
  
  .crypto-grid {
    gap: 0.35rem;
  }
  
  .crypto-card {
    padding: 0.45rem;
  }
  
  .crypto-header {
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
  }
  
  .crypto-icon {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
  }
  
  .crypto-name {
    align-items: flex-start;
    text-align: left;
  }
  
  .crypto-name .name {
    font-size: 0.75rem;
  }
  
  .crypto-name .symbol {
    font-size: 0.6rem;
  }
  
  .crypto-address-container {
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.4rem;
  }
  
  .crypto-address {
    font-size: 0.55rem;
    text-align: left;
    line-height: 1.3;
  }
  
  .copy-btn {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
  
  .footer {
    padding: 0.15rem 0;
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) {
  main {
    padding: 0.6rem 2rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .tagline {
    font-size: 0.85rem;
  }
  
  .social-icons {
    gap: 0.5rem;
  }
  
  .social-link {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .social-link.social-img img {
    width: 20px;
    height: 20px;
  }
  
  .section {
    padding: 0.6rem 0.85rem;
  }
  
  .section-title {
    font-size: 1rem;
  }
  
  .section-subtitle {
    font-size: 0.8rem;
  }
  
  .donation-platforms {
    gap: 0.4rem;
  }
  
  .platform-card {
    padding: 0.5rem 0.4rem;
  }
  
  .platform-icon {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }
  
  .platform-name {
    font-size: 0.8rem;
  }
  
  .platform-desc {
    font-size: 0.7rem;
  }
  
  .crypto-card {
    padding: 0.5rem;
  }
  
  .crypto-icon {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }
  
  .crypto-name .name {
    font-size: 0.8rem;
  }
  
  .crypto-name .symbol {
    font-size: 0.65rem;
  }
  
  .crypto-address-container {
    padding: 0.35rem 0.45rem;
  }
  
  .crypto-address {
    font-size: 0.6rem;
  }
  
  .copy-btn {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }
  
  .footer {
    font-size: 0.8rem;
  }
}

/* ===== Animations ===== */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  animation: fade-in-up 0.6s ease-out;
}

.section {
  animation: fade-in-up 0.6s ease-out;
  animation-fill-mode: both;
}

.section:nth-child(2) {
  animation-delay: 0.1s;
}

.section:nth-child(3) {
  animation-delay: 0.2s;
}

.footer {
  animation: fade-in-up 0.6s ease-out 0.3s both;
}

/* ===== Selection ===== */
::selection {
  background: var(--accent-purple);
  color: white;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
