/* Aicoin Official Website - Global Styles */
/* SEO-optimized, Bing-friendly dark theme */

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2035;
    --bg-card-hover: #1f2a45;
    --border-color: rgba(56, 189, 248, 0.15);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #38bdf8;
    --accent-cyan: #22d3ee;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    --accent-purple: #a78bfa;
    --gradient-ai: linear-gradient(135deg, #38bdf8, #22d3ee, #a78bfa);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --max-width: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        radial-gradient(ellipse at 20% 0%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(34, 211, 238, 0.03) 0%, transparent 50%);
}

a { color: var(--accent-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-cyan); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header / Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-ai);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: #0a0e17;
}

.main-nav { display: flex; align-items: center; gap: 8px; }

.main-nav a {
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-ai);
    color: #0a0e17;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); color: #0a0e17; }

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

/* Market Ticker Strip */
.ticker-strip {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    padding: 10px 0;
}

.ticker-inner {
    display: flex;
    gap: 32px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ticker-inner::-webkit-scrollbar { display: none; }

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 0.85rem;
}

.ticker-item .symbol { font-weight: 700; color: var(--text-primary); }
.ticker-item .price { font-family: var(--font-mono); color: var(--text-primary); }
.ticker-item .change-up { color: var(--accent-green); }
.ticker-item .change-down { color: var(--accent-red); }
.ticker-item .label { color: var(--text-muted); font-size: 0.75rem; }

/* Hero Section */
.hero {
    padding: 60px 0 40px;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-ai);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Search Box */
.search-section { padding: 0 0 40px; text-align: center; }

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus { border-color: var(--accent-blue); }

.search-box .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Section Styles */
.section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .ai-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--gradient-ai);
    color: #0a0e17;
    font-weight: 700;
    text-transform: uppercase;
}

.section-more {
    font-size: 0.9rem;
    color: var(--accent-blue);
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s;
}

.card:hover { border-color: rgba(56, 189, 248, 0.3); }

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.05);
}

.data-table tr:hover td { background: rgba(56, 189, 248, 0.03); }

.data-table .coin-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--accent-blue);
}

.coin-symbol { font-weight: 600; }
.coin-fullname { color: var(--text-muted); font-size: 0.8rem; }

.price-cell { font-family: var(--font-mono); font-weight: 600; }
.change-positive { color: var(--accent-green); font-family: var(--font-mono); }
.change-negative { color: var(--accent-red); font-family: var(--font-mono); }

.ai-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ai-score.buy { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.ai-score.hold { background: rgba(245, 158, 11, 0.15); color: var(--accent-yellow); }
.ai-score.sell { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

.star-btn { color: var(--accent-yellow); font-size: 1.1rem; }

/* Fear & Greed Gauge */
.gauge-card { text-align: center; }

.gauge-value {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    margin: 16px 0 8px;
}

.gauge-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.gauge-bar {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--accent-red), var(--accent-yellow), var(--accent-green));
    position: relative;
    margin: 16px 0;
}

.gauge-pointer {
    position: absolute;
    top: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--bg-card);
    transform: translateX(-50%);
}

/* AI Signal Cards */
.signal-list { display: flex; flex-direction: column; gap: 12px; }

.signal-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.1);
    transition: background 0.2s;
}

.signal-item:hover { background: rgba(56, 189, 248, 0.08); }

.signal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.signal-dot.hot { background: var(--accent-red); }
.signal-dot.info { background: var(--accent-blue); }
.signal-dot.ai { background: var(--accent-purple); }

.signal-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.signal-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* News Section */
.news-list { display: flex; flex-direction: column; gap: 16px; }

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s;
}

.news-item:hover { border-color: rgba(56, 189, 248, 0.3); }

.news-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 8px;
}

.news-tag.urgent { background: rgba(239, 68, 68, 0.2); color: var(--accent-red); }
.news-tag.normal { background: rgba(56, 189, 248, 0.15); color: var(--accent-blue); }

.news-title { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }
.news-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }

.ai-summary-box {
    padding: 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(167, 139, 250, 0.08));
    border: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 20px;
}

.ai-summary-box h4 {
    font-size: 0.9rem;
    color: var(--accent-blue);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-summary-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Heatmap / Market Overview */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 10px;
    width: fit-content;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { background: var(--bg-card); color: var(--accent-blue); }

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.heatmap-cell {
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s;
}

.heatmap-cell:hover { transform: scale(1.02); }
.heatmap-cell .sector-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.heatmap-cell .sector-change { font-family: var(--font-mono); font-size: 0.85rem; }

.heat-up-strong { background: rgba(16, 185, 129, 0.25); color: var(--accent-green); }
.heat-up { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.heat-down { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }
.heat-down-strong { background: rgba(239, 68, 68, 0.25); color: var(--accent-red); }

/* Content Cards */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.content-card:hover { border-color: rgba(56, 189, 248, 0.3); transform: translateY(-2px); }

.content-card-img {
    height: 160px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-blue);
}

.content-card-body { padding: 20px; }

.content-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.content-card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.content-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
}

/* FAQ Section */
.faq-section { padding: 48px 0; }

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-item h3 .q-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--gradient-ai);
    color: #0a0e17;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-steps { list-style: none; }

.faq-steps li {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-steps li::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    padding: 4px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-links { display: flex; gap: 16px; }

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: all 0.2s;
}

.social-links a:hover { background: rgba(56, 189, 248, 0.15); color: var(--accent-blue); }

/* Launchpad Cards */
.launchpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.launchpad-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s;
}

.launchpad-card:hover { border-color: rgba(56, 189, 248, 0.3); }

.launchpad-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.launchpad-card p { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 12px; }

.countdown {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-yellow);
}

.risk-score {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.risk-low { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.risk-mid { background: rgba(245, 158, 11, 0.15); color: var(--accent-yellow); }
.risk-high { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

/* Page-specific: Market Page */
.page-header {
    padding: 40px 0 24px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-blue); }

/* About Page */
.about-hero {
    text-align: center;
    padding: 60px 0 40px;
}

.about-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-ai);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover { border-color: rgba(56, 189, 248, 0.3); transform: translateY(-4px); }

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* Download Page */
.download-hero {
    text-align: center;
    padding: 80px 0 40px;
}

.download-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 40px auto;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.download-card .platform-icon { font-size: 2.5rem; margin-bottom: 16px; }
.download-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.download-card p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 20px; }

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .faq-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .heatmap-grid { grid-template-columns: repeat(3, 1fr); }
    .launchpad-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 12px 20px; }
    .main-nav { order: 3; width: 100%; justify-content: center; padding-top: 8px; }
    .hero h1 { font-size: 2rem; }
    .content-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .download-options { grid-template-columns: 1fr; }
    .heatmap-grid { grid-template-columns: repeat(2, 1fr); }
    .launchpad-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 1rem; }
    .section-title { font-size: 1.2rem; }
    .data-table { font-size: 0.8rem; }
    .data-table th, .data-table td { padding: 10px 8px; }
}
