/* styles.css - Shouhou Network Premium Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #0f172a;
    --accent: #ef4444;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(226, 232, 240, 0.8);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 10rem 2rem 6rem;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* Nodes Section */
.nodes-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

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

.nodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.node-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s, border-color 0.3s;
}

.node-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.node-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.node-flag {
    font-size: 1.5rem;
}

.node-name {
    font-weight: 600;
}

.node-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.node-latency {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Pricing Section */
.pricing-section {
    background: var(--bg-white);
    padding: 6rem 2rem;
}

.pricing-table-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

th, td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

th {
    background: #f8fafc;
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
    font-weight: 600;
}

.price {
    font-weight: 700;
    color: var(--accent);
}

.cross-mark {
    color: #ef4444;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Blog Section */
.blog-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.article-content .read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Article Page Layout */
.article-container {
    max-width: 1200px;
    margin: 10rem auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
}

.article-hero {
    width: 100%;
    border-radius: 1rem;
    margin: 2rem 0;
}

article h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

article p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

article h2 {
    margin: 2rem 0 1rem;
}

.meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

aside {
    padding-top: 1rem;
}

aside h3 {
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

aside ul {
    list-style: none;
}

aside ul li {
    margin-bottom: 1rem;
}

aside ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
}

aside ul li a:hover {
    color: var(--primary);
}

/* Footer */
footer {
    padding: 4rem 2rem;
    background: var(--secondary);
    color: white;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .article-container {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    nav ul {
        display: none;
    }
}
