/* ============================================
   TRADEX (TDX) - COMPLETE STYLESHEET
   Version: 6.0 - Community Focus + Animations
   ============================================ */

/* ============================================
   RESET & VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6c5ce7;
    --primary-dark: #5b4bc4;
    --primary-light: #8b7ef5;
    --secondary: #a463f5;
    --accent: #00d4ff;
    --success: #00ff88;
    --danger: #ff4444;
    --warning: #ffaa00;
    --dark: #000000;
    --dark-card: rgba(0, 0, 0, 0.6);
    --gray: #888888;
    --gray-light: #aaaaaa;
    --border: rgba(108, 92, 231, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ============================================
   BLOCKCHAIN ANIMATED BACKGROUND
   ============================================ */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #000000;
    background-image: radial-gradient(circle at 25% 40%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 75% 60%, rgba(164, 99, 245, 0.05) 0%, transparent 50%);
}

.nodes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.node {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: nodePulse 3s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.ring-container {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(108, 92, 231, 0.06);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate linear infinite;
}

.ring-1 { width: 400px; height: 400px; margin-left: -200px; margin-top: -200px; animation-duration: 30s; }
.ring-2 { width: 600px; height: 600px; margin-left: -300px; margin-top: -300px; animation-duration: 45s; animation-direction: reverse; }
.ring-3 { width: 800px; height: 800px; margin-left: -400px; margin-top: -400px; animation-duration: 60s; }

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(108, 92, 231, 0.4);
    border-radius: 50%;
    animation: particleFloat 12s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    font-size: 0.8rem;
    color: var(--gray);
    background: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.75rem;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #fff, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   COMMUNITY STATS BANNER
   ============================================ */
.community-stats {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(164, 99, 245, 0.05));
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { border-color: rgba(108, 92, 231, 0.3); }
    70% { border-color: rgba(108, 92, 231, 0.8); }
    100% { border-color: rgba(108, 92, 231, 0.3); }
}

.community-stat { text-align: center; }
.community-stat-value { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.community-stat-label { font-size: 0.7rem; color: var(--gray); text-transform: uppercase; }

/* ============================================
   BUTTONS
   ============================================ */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: white;
}

.btn-outline:hover { border-color: var(--primary); background: rgba(108, 92, 231, 0.1); transform: translateY(-2px); }

.btn-pancake { background: #1f8a4c; color: white; }
.btn-bitget { background: #f0b90b; color: #000; }
.btn-telegram { background: #0088cc; color: white; }
.btn-twitter { background: #1da1f2; color: white; }
.btn-email { background: #6c5ce7; color: white; }

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover { border-color: var(--primary); background: rgba(108, 92, 231, 0.05); transform: translateY(-3px); }

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--gray);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================================
   PRICE CARD
   ============================================ */
.price-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.price-item { text-align: center; padding: 1rem; }
.price-label { font-size: 0.7rem; text-transform: uppercase; color: var(--gray); margin-bottom: 0.5rem; }
.price-value { font-size: 1.2rem; font-weight: 700; background: linear-gradient(135deg, #fff, var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-change { font-size: 0.75rem; margin-top: 0.25rem; }
.price-change.positive { color: var(--success); }
.price-change.negative { color: var(--danger); }

/* ============================================
   CHART & TRANSACTIONS
   ============================================ */
.chart-container, .transactions-container, .contract-container, .social-links-section {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.transaction-type.buy { color: var(--success); }
.transaction-type.sell { color: var(--danger); }

/* ============================================
   CONTRACT ADDRESS
   ============================================ */
.contract-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.contract-address code {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-family: monospace;
    border: 1px solid var(--border);
}

.copy-btn {
    background: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

/* ============================================
   TOKENOMICS
   ============================================ */
.tokenomics { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--gray); margin-bottom: 3rem; }

.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.token-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.token-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.token-percent { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }

/* ============================================
   FOOTER & MOBILE
   ============================================ */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.95);
    margin-top: 4rem;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 10px;
    justify-content: space-around;
    z-index: 1000;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.7rem;
    padding: 8px;
    border-radius: 12px;
}

.mobile-nav-item.active { color: var(--primary); background: rgba(108, 92, 231, 0.1); }
.mobile-nav-icon { font-size: 1.3rem; }

/* ============================================
   TOAST & WALLET
   ============================================ */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    z-index: 9999;
    font-size: 0.85rem;
    animation: fadeInUp 0.3s ease;
}

.wallet-badge {
    position: fixed;
    top: 70px;
    right: 10px;
    background: rgba(108, 92, 231, 0.9);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    z-index: 999;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .price-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 0.8rem 1rem; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 70px; }
    .stats-grid { grid-template-columns: 1fr; }
    .price-grid { grid-template-columns: 1fr; }
    .tokenomics-grid { grid-template-columns: 1fr; }
    .button-group .btn { width: 100%; justify-content: center; }
    .community-stats { flex-direction: column; text-align: center; }
    .wallet-badge { top: 60px; font-size: 9px; }
}

@media (min-width: 769px) {
    .mobile-menu-btn { display: none; }
    .nav-links { display: flex !important; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }