/* VoiceOfChain Global Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0d1117;
    color: #e6edf3;
    line-height: 1.6;
    min-height: 100vh;
}

/* Page Wrapper */
.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

a { color: #58a6ff; text-decoration: underline; text-decoration-color: rgba(88, 166, 255, 0.4); }
a:hover { text-decoration-color: #58a6ff; }

/* ========== HEADER ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #21262d;
}

.header-left { display: flex; align-items: center; gap: 24px; }
.header-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header-brand:hover { text-decoration: none; }
.header-logo { height: 48px; width: auto; }
.header h1 { font-size: 22px; color: #e6edf3; margin: 0; font-weight: 600; }
.header h1 span { color: #3b9eff; font-weight: 700; }

.header-nav { display: flex; gap: 8px; }
.header-nav a {
    padding: 8px 16px;
    border-radius: 8px;
    color: #b0b8c1;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}
.header-nav a:hover {
    background: #21262d;
    color: #e6edf3;
    text-decoration: none;
}
.header-nav a.active {
    background: #1f6feb;
    color: #fff;
}

@media (max-width: 768px) {
    body { padding: 12px; }
    .header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .header-left { flex-direction: column; align-items: flex-start; gap: 12px; }
    .header-nav { flex-wrap: wrap; }
}

/* ========== FOOTER ========== */
.site-footer {
    margin-top: 40px;
    padding: 30px 20px 20px;
    border-top: 1px solid #21262d;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 24px;
}

.footer-section .footer-heading {
    font-size: 14px;
    margin-bottom: 12px;
    color: #8b949e;
}

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

.social-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    min-height: 44px;
    min-width: 44px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    font-size: 13px;
    color: #e6edf3;
    text-decoration: none;
    transition: all 0.2s;
}

.social-links a:hover {
    background: #21262d;
    border-color: #58a6ff;
    color: #58a6ff;
    text-decoration: none;
}

.social-links svg {
    flex-shrink: 0;
    color: #8b949e;
    transition: color 0.2s;
}

.social-links a:hover svg { color: #58a6ff; }

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: #c9d1d9;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    min-height: 44px;
}

.footer-links a::before {
    content: "→";
    color: #484f58;
    font-size: 12px;
    transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover { color: #58a6ff; text-decoration: none; }
.footer-links a:hover::before { color: #58a6ff; transform: translateX(3px); }

.footer-desc {
    font-size: 13px;
    color: #8b949e;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #21262d;
    font-size: 13px;
    color: #8b949e;
}

.footer-divider { margin: 0 8px; }

@media (max-width: 600px) {
    .footer-content { grid-template-columns: 1fr; }
    .social-links { flex-direction: column; }
    .social-links a { justify-content: center; }
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active { background: #0a3622; color: #3fb950; }

/* Severity badges */
.badge-critical { background: #dc3545; color: #fff; }
.badge-high { background: #fd7e14; color: #000; }
.badge-medium { background: #ffc107; color: #000; }
.badge-low { background: #6c757d; color: #fff; }

/* Difficulty badges */
.badge-beginner { background: #1a4d2e; color: #4ade80; }
.badge-intermediate { background: #4d3a1a; color: #fbbf24; }
.badge-advanced { background: #4d1a1a; color: #fca5a5; }

/* ========== SHARE BUTTONS ========== */
.share-section { display: flex; gap: 8px; margin: 20px 0; }

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #21262d;
    background: #161b22;
    color: #e6edf3;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.share-btn:hover { border-color: #388bfd; text-decoration: none; }
.share-twitter:hover { background: #1da1f2; border-color: #1da1f2; }
.share-telegram:hover { background: #0088cc; border-color: #0088cc; }
.share-facebook:hover { background: #1877f2; border-color: #1877f2; }
.share-copy:hover { background: #166534; border-color: #166534; }

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #21262d;
}

.page-btn {
    padding: 10px 20px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.page-btn:hover:not(.disabled) {
    background: #30363d;
    border-color: #58a6ff;
    text-decoration: none;
}

.page-btn.disabled {
    color: #8b949e;
    background: #21262d;
    cursor: not-allowed;
}

.page-info { color: #9ca3af; font-size: 14px; }

/* ========== CARDS ========== */
.card {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: #58a6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ========== COLORS ========== */
.text-green, .pump { color: #3fb950; }
.text-red, .dump { color: #f85149; }
.text-orange, .arb-spread { color: #f0883e; }
.text-purple, .vol-ratio { color: #d2a8ff; }
.text-muted { color: #8b949e; }

/* ========== UTILITIES ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.empty {
    text-align: center;
    padding: 60px 20px;
    color: #b0b8c1;
}

.empty .icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.refresh-note {
    text-align: center;
    color: #b0b8c1;
    font-size: 12px;
    margin-top: 16px;
}
