﻿:root {
  --bg-primary: #070913;
  --bg-secondary: #0e1224;
  --bg-card: rgba(18, 24, 48, 0.7);
  --bg-card-hover: rgba(28, 37, 72, 0.85);
  --border-color: rgba(99, 102, 241, 0.2);
  --border-glow: rgba(168, 85, 247, 0.4);
  --accent-purple: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

.space-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at 15% 15%, rgba(168, 85, 247, 0.15), transparent 40%),
              radial-gradient(circle at 85% 75%, rgba(6, 182, 212, 0.15), transparent 45%),
              radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.08), transparent 50%),
              #070913;
  pointer-events: none;
}

.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1.5px 1.5px at 40px 60px, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 120px 240px, #a855f7, transparent),
    radial-gradient(2px 2px at 280px 180px, #38bdf8, transparent),
    radial-gradient(1px 1px at 390px 420px, #ffffff, transparent),
    radial-gradient(2px 2px at 580px 90px, #f59e0b, transparent),
    radial-gradient(1.5px 1.5px at 750px 300px, #ffffff, transparent),
    radial-gradient(2px 2px at 950px 150px, #a855f7, transparent);
  background-size: 800px 800px;
  opacity: 0.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 80px 20px;
}

header {
  text-align: center;
  padding: 30px 20px 20px 20px;
  position: relative;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-space {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--accent-purple);
  color: #d8b4fe;
}

.badge-bsc {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-gold);
  color: #fde68a;
}

.badge-dog {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-green);
  color: #6ee7b7;
}

h1.main-title {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 20%, #d8b4fe 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

p.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 24px auto;
}

.ca-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(14, 18, 36, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 20px;
  max-width: 720px;
  margin: 0 auto 24px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ca-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.ca-text {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #e2e8f0;
  word-break: break-all;
}

.btn-copy-ca {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy-ca:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.quick-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.q-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.q-link:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--accent-purple);
  color: white;
  transform: translateY(-2px);
}

.q-link.spacex-highlight {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fde68a;
}

.q-link.spacex-highlight:hover {
  background: rgba(245, 158, 11, 0.3);
}

.random-raid-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--accent-purple);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

.random-raid-info h3 {
  font-size: 1.25rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.random-raid-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-random {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-random:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.tabs-container {
  display: inline-flex;
  background: rgba(14, 18, 36, 0.9);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  gap: 8px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.tab-btn .tab-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.tab-btn.active {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.tab-btn.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.controls-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.search-row {
  display: flex;
  gap: 12px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  background: rgba(7, 9, 19, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 16px 12px 42px;
  color: white;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filters-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.pill-btn.active {
  background: rgba(168, 85, 247, 0.25);
  border-color: var(--accent-purple);
  color: #d8b4fe;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--accent-cyan);
  color: #042f2e;
  border-color: var(--accent-cyan);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  backdrop-filter: blur(8px);
}

.content-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 10px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.tag-spacex { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.tag-dogday { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.tag-rewards { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.tag-cto { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.tag-buy { background: rgba(236, 72, 153, 0.2); color: #f472b6; }

.card-body {
  background: rgba(7, 9, 19, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow-y: auto;
  font-family: inherit;
  line-height: 1.55;
}

.card-body::-webkit-scrollbar { width: 5px; }
.card-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.char-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  gap: 8px;
}

.btn-post-x {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-post-x:hover {
  background: #000;
  border-color: #fff;
  color: #fff;
}

.btn-copy-card {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-copy-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-copy-card.copied {
  background: var(--accent-green);
  color: white;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: 16px;
}

.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.empty-state p {
  color: var(--text-muted);
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-green);
  color: #f8fafc;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease forwards;
  pointer-events: auto;
}

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

footer {
  text-align: center;
  padding: 40px 20px 20px 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 60px;
}

@media (max-width: 768px) {
  h1.main-title { font-size: 2.1rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .random-raid-card { flex-direction: column; text-align: center; }
  .tab-btn { padding: 10px 16px; font-size: 0.95rem; }
  .ca-container { flex-direction: column; text-align: center; }
}
