/* DragonTop10 — Ultra-smooth premium design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

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

:root {
  --cyan: #00d4ff;
  --blue: #0066ff;
  --purple: #7b2ff7;
  --red: #e63946;
  --bg: #050510;
  --card: #0c0c24;
  --card-hover: #12123a;
  --border: rgba(255,255,255,0.06);
  --text: #e8e8f0;
  --muted: #6b7280;
  --glow-cyan: 0 0 30px rgba(0,212,255,0.4);
  --glow-purple: 0 0 30px rgba(123,47,247,0.4);
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --radius: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Animated grid background */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
}

/* Floating orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(0,212,255,0.07);
  top: -200px;
  left: -200px;
  animation: float1 20s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(123,47,247,0.07);
  bottom: -200px;
  right: -200px;
  animation: float2 25s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 50px) scale(1.1); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -40px) scale(1.15); }
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,5,16,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--glow-cyan);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-text .top {
  color: var(--cyan);
}

.logo-text .ten {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  gap: 0.25rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* Hero */
.hero {
  position: relative;
  padding: 7rem 2rem 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-visual {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 3rem;
}

.hero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(from 0deg, var(--cyan), var(--blue), var(--purple), var(--cyan)) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  animation: spin 8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-dragon {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  box-shadow: var(--glow-cyan), inset 0 0 40px rgba(0,212,255,0.05);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.btn {
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--bg);
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0,212,255,0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* Stats bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 700px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'JetBrains Mono', monospace;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Sections */
.section {
  max-width: 1300px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(123,47,247,0.1);
  border: 1px solid rgba(123,47,247,0.2);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--purple);
  margin-bottom: 1rem;
  font-weight: 500;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0);
  transition: transform 0.4s;
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.3);
  background: var(--card-hover);
  box-shadow: var(--shadow);
}

.cat-card:hover::before {
  transform: scaleX(1);
}

.cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.cat-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cat-card p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.cat-link {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s;
}

.cat-card:hover .cat-link {
  gap: 0.7rem;
}

/* Article grid */
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.art-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: var(--text);
}

.art-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.3);
  box-shadow: var(--shadow);
}

.art-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.art-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(123,47,247,0.1));
}

.art-visual.tech {
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,102,255,0.05));
}

.art-visual.software {
  background: linear-gradient(135deg, rgba(123,47,247,0.15), rgba(230,57,70,0.05));
}

.art-visual.apps {
  background: linear-gradient(135deg, rgba(0,255,150,0.1), rgba(0,212,255,0.05));
}

.art-body {
  padding: 1.5rem;
}

.art-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.art-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.art-tag.tech { background: rgba(0,212,255,0.1); color: var(--cyan); }
.art-tag.software { background: rgba(123,47,247,0.1); color: var(--purple); }
.art-tag.apps { background: rgba(0,255,150,0.1); color: #00ff96; }

.art-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.art-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.art-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* CTA banner */
.cta-banner {
  max-width: 1300px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.cta-inner {
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(123,47,247,0.1));
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,212,255,0.05) 0%, transparent 50%);
  animation: rotate 15s linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.cta-inner h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
}

.cta-inner p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-brand .top { color: var(--cyan); }
.footer-brand .ten {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-tag {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 0.75rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .stats-bar { flex-direction: column; gap: 1.5rem; }
  .cat-grid, .art-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 2rem; }
}

/* Logo images */
.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.hero-logo {
  width: 320px;
  height: 320px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(0,212,255,0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.footer-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin-bottom: 1rem;
  object-fit: cover;
}

/* Hero banner background */
.hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/dragon10banner.jpg') center/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,16,0.6) 0%, rgba(5,5,16,0.95) 100%);
}

/* Mobile margins for article text */
@media (max-width: 768px) {
  .article-page {
    padding: 0 1.25rem;
    margin: 2rem auto;
  }
  
  .article-page h1 {
    font-size: 1.8rem;
  }
  
  .article-page p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .article-page table {
    font-size: 0.85rem;
  }
  
  .article-page th, .article-page td {
    padding: 0.6rem 0.75rem;
  }
}

/* Tool links styling */
.tool-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dotted rgba(0,212,255,0.4);
  transition: all 0.2s;
}

.tool-link:hover {
  border-bottom-style: solid;
  color: #33ddff;
}
