/**
 * ViewCounter — Inner pages (changelog, account, legal, blog)
 */

/* ─── Shared inner page layout ─── */
.inner-page { padding: 140px 0 80px; background: var(--slate-50); min-height: 80vh; }
.inner-page-header { text-align: center; margin-bottom: 48px; }
.inner-page-header .section-label { margin-bottom: 12px; }
.inner-page-header .section-title { margin-bottom: 8px; }

/* ─── Changelog ─── */
.changelog-timeline { max-width: 680px; margin: 0 auto 48px; }
.changelog-entry { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--slate-200); }
.changelog-entry:last-child { border-bottom: none; }
.changelog-version-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.changelog-version { font-size: 20px; font-weight: 700; color: var(--slate-900); letter-spacing: -0.3px; }
.changelog-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; background: var(--purple-100); color: var(--purple-700); }
.changelog-date { font-size: 13px; color: var(--slate-400); margin-bottom: 12px; }
.changelog-list { list-style: none; padding: 0; margin: 0; }
.changelog-list li { font-size: 14px; color: var(--slate-700); padding: 6px 0; display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.changelog-list li::before { content: '•'; color: var(--purple-400); font-weight: 700; margin-top: -1px; }
.changelog-type { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; }
.changelog-type-new { background: #ecfdf5; color: #065f46; }
.changelog-type-improved { background: var(--purple-50); color: var(--purple-700); }
.changelog-type-fixed { background: #fef2f2; color: #991b1b; }

/* ─── Account / License ─── */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.account-card { background: white; border: 1px solid var(--slate-200); border-radius: 16px; padding: 32px; }
.account-card-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--purple-100); color: var(--purple-600); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.account-card h2 { font-size: 18px; font-weight: 700; color: var(--slate-900); margin: 0 0 8px; }
.account-card p { font-size: 14px; color: var(--slate-500); line-height: 1.7; margin: 0 0 16px; }
.account-key-row { display: flex; gap: 10px; margin-bottom: 12px; }
.account-key-row input { flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 13px; padding: 10px 14px; border: 1px solid var(--slate-200); border-radius: 8px; color: var(--slate-700); }
.account-note { font-size: 12px; color: var(--slate-400); margin: 0; }
.account-downloads { display: flex; flex-direction: column; gap: 8px; }
.account-download-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 10px; text-decoration: none; transition: all 0.15s; }
.account-download-item:hover { border-color: var(--purple-300); background: var(--purple-50); }
.account-download-name { font-size: 14px; font-weight: 600; color: var(--slate-900); }
.account-download-meta { font-size: 12px; color: var(--slate-400); font-family: monospace; }
.account-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 48px; }
.account-link-card { display: block; background: white; border: 1px solid var(--slate-200); border-radius: 14px; padding: 24px; text-decoration: none; transition: all 0.2s; position: relative; }
.account-link-card:hover { border-color: var(--purple-200); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,47,198,0.06); }
.account-link-card h3 { font-size: 15px; font-weight: 700; color: var(--slate-900); margin: 0 0 4px; }
.account-link-card p { font-size: 13px; color: var(--slate-500); margin: 0; line-height: 1.5; }
.account-link-arrow { position: absolute; top: 24px; right: 20px; font-size: 18px; color: var(--purple-400); }

/* ─── Legal pages ─── */
.legal-content { max-width: 720px; font-size: 15px; line-height: 1.8; color: var(--slate-700); }
.legal-content h2 { font-size: 20px; font-weight: 700; color: var(--slate-900); margin: 36px 0 12px; }
.legal-content h3 { font-size: 16px; font-weight: 700; color: var(--slate-800); margin: 24px 0 8px; }
.legal-content p { margin: 0 0 16px; }
.legal-content ul, .legal-content ol { margin: 0 0 16px; padding-left: 24px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--purple-600); }

/* ─── Blog index ─── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-bottom: 48px; }
.blog-card { display: block; background: white; border: 1px solid var(--slate-200); border-radius: 16px; overflow: hidden; text-decoration: none; transition: all 0.25s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.blog-card-image { height: 200px; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card-meta { font-size: 12px; color: var(--slate-400); margin-bottom: 8px; display: flex; gap: 12px; align-items: center; }
.blog-card-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; background: var(--purple-100); color: var(--purple-600); padding: 2px 8px; border-radius: 4px; }
.blog-card h2 { font-size: 18px; font-weight: 700; color: var(--slate-900); margin: 0 0 8px; letter-spacing: -0.3px; line-height: 1.3; }
.blog-card p { font-size: 14px; color: var(--slate-500); line-height: 1.6; margin: 0; }
.blog-pagination { text-align: center; }
.blog-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.blog-pagination a, .blog-pagination span { font-size: 13px; padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.blog-pagination a { background: white; border: 1px solid var(--slate-200); color: var(--slate-700); transition: all 0.15s; }
.blog-pagination a:hover { border-color: var(--purple-300); color: var(--purple-600); }
.blog-pagination .current { background: var(--purple-600); color: white; font-weight: 600; }

/* ─── Blog single ─── */
.blog-article { max-width: 720px; margin: 0 auto 48px; }
.blog-article-header { margin-bottom: 32px; }
.blog-article-meta { font-size: 13px; color: var(--slate-400); margin-bottom: 12px; display: flex; gap: 12px; align-items: center; }
.blog-article-header h1 { font-family: 'Fraunces', serif; font-size: 38px; font-weight: 600; color: var(--slate-900); letter-spacing: -1px; line-height: 1.15; margin: 0 0 12px; }
.blog-article-excerpt { font-size: 18px; color: var(--slate-500); line-height: 1.7; font-weight: 300; margin: 0; }
.blog-article-image { margin: 0 0 32px; border-radius: 16px; overflow: hidden; }
.blog-article-image img { width: 100%; display: block; }
.blog-article-content { font-size: 16px; line-height: 1.85; color: var(--slate-700); }
.blog-article-content h2 { font-size: 24px; font-weight: 700; color: var(--slate-900); margin: 36px 0 12px; }
.blog-article-content h3 { font-size: 18px; font-weight: 700; color: var(--slate-800); margin: 28px 0 8px; }
.blog-article-content p { margin: 0 0 18px; }
.blog-article-content a { color: var(--purple-600); font-weight: 500; }
.blog-article-content img { border-radius: 12px; margin: 24px 0; }
.blog-article-content blockquote { border-left: 3px solid var(--purple-300); padding: 16px 20px; background: var(--purple-50); border-radius: 0 10px 10px 0; margin: 24px 0; font-style: italic; color: var(--slate-600); }
.blog-article-content pre { background: var(--slate-900); color: var(--purple-300); padding: 20px; border-radius: 12px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; overflow-x: auto; margin: 0 0 20px; }
.blog-article-content code { font-family: 'JetBrains Mono', monospace; font-size: 13px; background: var(--slate-100); padding: 2px 7px; border-radius: 5px; color: var(--purple-700); }
.blog-article-content pre code { background: none; padding: 0; color: inherit; }
.blog-article-footer { padding-top: 24px; border-top: 1px solid var(--slate-200); margin-top: 36px; }
.blog-article-author { display: flex; align-items: center; gap: 14px; }
.blog-article-author img { border-radius: 50%; width: 48px; height: 48px; }
.blog-author-name { font-size: 14px; font-weight: 600; color: var(--slate-900); }
.blog-author-bio { font-size: 13px; color: var(--slate-500); line-height: 1.5; }

/* ─── Email Capture ─── */
.vc-email-capture { background: linear-gradient(135deg, var(--purple-950), var(--purple-900)); border-radius: 16px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 48px auto; max-width: 720px; position: relative; overflow: hidden; }
.vc-email-capture::before { content: ''; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(139,47,198,0.2); }
.vc-email-capture-text h3 { font-size: 20px; font-weight: 700; color: white; margin: 0 0 4px; position: relative; }
.vc-email-capture-text p { font-size: 14px; color: var(--purple-200); margin: 0; position: relative; line-height: 1.5; }
.vc-email-capture-form { display: flex; gap: 10px; position: relative; flex-shrink: 0; }
.vc-email-capture-form input[type="email"] { font-family: 'DM Sans', sans-serif; font-size: 14px; padding: 12px 16px; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; background: rgba(255,255,255,0.1); color: white; width: 240px; outline: none; }
.vc-email-capture-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.vc-email-capture-form input[type="email"]:focus { border-color: var(--purple-400); background: rgba(255,255,255,0.15); }
.vc-email-capture-form button { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; padding: 12px 24px; border-radius: 10px; border: none; cursor: pointer; background: white; color: var(--purple-700); transition: all 0.2s; }
.vc-email-capture-form button:hover { background: var(--purple-50); transform: translateY(-1px); }

@media (max-width: 700px) {
	.vc-email-capture { flex-direction: column; text-align: center; padding: 32px 24px; }
	.vc-email-capture-form { flex-direction: column; width: 100%; }
	.vc-email-capture-form input[type="email"] { width: 100%; }
	.account-grid { grid-template-columns: 1fr; }
	.blog-article-header h1 { font-size: 28px; }
}
