/* SpeedsTests.com - Shared Styles */
:root {
    --bg-dark: #0a0a2e;
    --bg-card: #111144;
    --bg-card-hover: #161655;
    --blue: #4488ff;
    --cyan: #66ccff;
    --purple: #c084fc;
    --teal: #5eead4;
    --text: #ccd6e0;
    --text-muted: #8899bb;
    --text-dim: #556688;
    --border: rgba(255,255,255,0.06);
    --radius: 10px;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Segoe UI',system-ui,-apple-system,sans-serif; background:var(--bg-dark); color:var(--text); line-height:1.6; }
a { color:var(--cyan); text-decoration:none; transition:color .2s; }
a:hover { color:var(--blue); }
img { max-width:100%; height:auto; }

/* Top Nav */
.site-nav { background:rgba(10,10,46,0.95); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:100; backdrop-filter:blur(12px); }
.nav-inner { max-width:1200px; margin:0 auto; padding:0 20px; display:flex; align-items:center; justify-content:space-between; height:60px; }
.nav-logo { font-size:1.3em; font-weight:700; letter-spacing:1px; color:#fff; }
.nav-logo .s1 { color:var(--cyan); }
.nav-logo .s2 { color:#fff; }
.nav-logo .s3 { color:var(--blue); }
.nav-links { display:flex; gap:24px; align-items:center; list-style:none; }
.nav-links a { color:var(--text-muted); font-size:.9em; font-weight:500; padding:4px 0; border-bottom:2px solid transparent; transition:all .2s; }
.nav-links a:hover, .nav-links a.active { color:#fff; border-bottom-color:var(--cyan); }
.nav-search { position:relative; }
.nav-search input { background:rgba(255,255,255,0.06); border:1px solid var(--border); color:#fff; padding:7px 14px 7px 34px; border-radius:20px; font-size:.85em; width:180px; outline:none; transition:all .3s; }
.nav-search input:focus { width:240px; border-color:var(--blue); background:rgba(255,255,255,0.1); }
.nav-search::before { content:'\1F50D'; position:absolute; left:10px; top:50%; transform:translateY(-50%); font-size:.8em; }
.nav-toggle { display:none; background:none; border:none; color:#fff; font-size:1.5em; cursor:pointer; }

/* Page wrapper */
.page-wrap { max-width:1200px; margin:0 auto; padding:30px 20px; min-height:calc(100vh - 160px); }
.page-wrap.narrow { max-width:800px; }

/* Hero / Page titles */
.page-hero { text-align:center; padding:40px 20px 30px; }
.page-hero h1 { font-size:2em; font-weight:700; color:#fff; margin-bottom:8px; }
.page-hero p { color:var(--text-muted); font-size:1em; }

/* Category pills */
.cat-pills { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:20px 0 30px; }
.cat-pill { padding:6px 18px; border-radius:20px; font-size:.85em; font-weight:500; background:rgba(255,255,255,0.05); color:var(--text-muted); border:1px solid var(--border); transition:all .2s; }
.cat-pill:hover, .cat-pill.active { background:var(--blue); color:#fff; border-color:var(--blue); }

/* Article cards grid */
.articles-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:24px; }
.article-card { background:var(--bg-card); border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); transition:all .3s; }
.article-card:hover { transform:translateY(-3px); border-color:rgba(100,180,255,0.2); box-shadow:0 8px 30px rgba(0,0,0,0.3); }
.article-card .thumb { width:100%; height:200px; object-fit:cover; background:rgba(255,255,255,0.03); }
.article-card .card-body { padding:18px; }
.article-card .card-cat { display:inline-block; font-size:.75em; font-weight:600; text-transform:uppercase; letter-spacing:1px; color:var(--cyan); margin-bottom:8px; }
.article-card h3 { font-size:1.1em; font-weight:600; color:#fff; margin-bottom:8px; line-height:1.4; }
.article-card h3 a { color:#fff; }
.article-card h3 a:hover { color:var(--cyan); }
.article-card .excerpt { font-size:.88em; color:var(--text-muted); margin-bottom:12px; }
.article-card .meta { font-size:.78em; color:var(--text-dim); display:flex; justify-content:space-between; }

/* Single article */
.article-single { max-width:800px; margin:0 auto; }
.article-single h1 { font-size:2em; font-weight:700; color:#fff; margin-bottom:12px; line-height:1.3; }
.article-single .article-meta { color:var(--text-dim); font-size:.85em; margin-bottom:24px; display:flex; gap:20px; flex-wrap:wrap; }
.article-single .featured-img { width:100%; border-radius:var(--radius); margin-bottom:24px; }
.article-body { font-size:1em; line-height:1.8; color:var(--text); }
.article-body h2 { color:#fff; font-size:1.4em; margin:28px 0 12px; }
.article-body h3 { color:#fff; font-size:1.15em; margin:24px 0 10px; }
.article-body p { margin-bottom:16px; }
.article-body ul, .article-body ol { margin:12px 0 16px 24px; }
.article-body li { margin-bottom:6px; }
.article-body blockquote { border-left:3px solid var(--blue); padding:12px 20px; margin:16px 0; background:rgba(255,255,255,0.02); border-radius:0 var(--radius) var(--radius) 0; color:var(--text-muted); font-style:italic; }
.article-body code { background:rgba(255,255,255,0.06); padding:2px 6px; border-radius:4px; font-size:.9em; }
.article-body pre { background:rgba(0,0,0,0.3); padding:16px; border-radius:var(--radius); overflow-x:auto; margin:16px 0; }
.article-body img { border-radius:var(--radius); margin:16px 0; }

/* Product cards */
.products-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:20px; margin:30px 0; }
.product-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:20px; text-align:center; transition:all .3s; }
.product-card:hover { border-color:rgba(100,180,255,0.2); transform:translateY(-2px); }
.product-card img { width:160px; height:160px; object-fit:contain; margin:0 auto 14px; }
.product-card h4 { font-size:.95em; color:#fff; margin-bottom:6px; font-weight:600; }
.product-card .price { font-size:1.2em; font-weight:700; color:var(--teal); margin-bottom:10px; }
.product-card .rating { color:#f9a825; font-size:.85em; margin-bottom:10px; }
.product-card .btn-affiliate { display:inline-block; padding:8px 20px; border-radius:20px; font-size:.85em; font-weight:600; transition:all .2s; }
.btn-amazon { background:#ff9900; color:#111; }
.btn-amazon:hover { background:#ffad33; color:#111; }
.btn-ebay { background:#0064d2; color:#fff; }
.btn-ebay:hover { background:#0077ff; color:#fff; }

/* Subscribe bar */
.subscribe-bar { background:linear-gradient(135deg, rgba(68,136,255,0.15), rgba(192,132,252,0.1)); border:1px solid rgba(68,136,255,0.2); border-radius:var(--radius); padding:30px; text-align:center; margin:40px 0; }
.subscribe-bar h3 { color:#fff; font-size:1.2em; margin-bottom:6px; }
.subscribe-bar p { color:var(--text-muted); font-size:.9em; margin-bottom:16px; }
.subscribe-form { display:flex; gap:10px; max-width:440px; margin:0 auto; }
.subscribe-form input { flex:1; padding:10px 16px; border-radius:8px; border:1px solid var(--border); background:rgba(255,255,255,0.06); color:#fff; font-size:.9em; outline:none; }
.subscribe-form input:focus { border-color:var(--blue); }
.subscribe-form button { padding:10px 24px; border-radius:8px; border:none; background:var(--blue); color:#fff; font-weight:600; cursor:pointer; font-size:.9em; transition:all .2s; }
.subscribe-form button:hover { background:#5599ff; }

/* Sidebar */
.content-with-sidebar { display:grid; grid-template-columns:1fr 320px; gap:40px; }
.sidebar .widget { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:20px; margin-bottom:20px; }
.sidebar .widget h4 { color:#fff; font-size:.9em; text-transform:uppercase; letter-spacing:1px; margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid var(--border); }
.sidebar .widget-list { list-style:none; }
.sidebar .widget-list li { padding:8px 0; border-bottom:1px solid rgba(255,255,255,0.03); }
.sidebar .widget-list li:last-child { border:none; }
.sidebar .widget-list a { color:var(--text-muted); font-size:.88em; }
.sidebar .widget-list a:hover { color:var(--cyan); }

/* Legal pages */
.legal-content { max-width:800px; margin:0 auto; }
.legal-content h1 { color:#fff; font-size:1.8em; margin-bottom:6px; }
.legal-content .last-updated { color:var(--text-dim); font-size:.85em; margin-bottom:30px; }
.legal-content h2 { color:#fff; font-size:1.25em; margin:28px 0 10px; }
.legal-content p { margin-bottom:14px; color:var(--text); font-size:.95em; }
.legal-content ul { margin:10px 0 14px 24px; }
.legal-content li { margin-bottom:6px; font-size:.95em; color:var(--text); }

/* Footer */
.site-footer { background:rgba(0,0,0,0.3); border-top:1px solid var(--border); padding:40px 20px 20px; margin-top:60px; }
.footer-inner { max-width:1200px; margin:0 auto; display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:30px; }
.footer-col h4 { color:#fff; font-size:.85em; text-transform:uppercase; letter-spacing:1px; margin-bottom:14px; }
.footer-col a { display:block; color:var(--text-dim); font-size:.88em; padding:4px 0; transition:color .2s; }
.footer-col a:hover { color:var(--cyan); }
.footer-col p { color:var(--text-dim); font-size:.85em; }
.footer-bottom { max-width:1200px; margin:24px auto 0; padding-top:20px; border-top:1px solid var(--border); text-align:center; color:var(--text-dim); font-size:.8em; }
.footer-bottom a { color:var(--text-dim); }

/* Pagination */
.pagination { display:flex; justify-content:center; gap:8px; margin:40px 0; }
.pagination a, .pagination span { padding:8px 14px; border-radius:6px; font-size:.88em; border:1px solid var(--border); color:var(--text-muted); transition:all .2s; }
.pagination a:hover { border-color:var(--blue); color:#fff; }
.pagination .current { background:var(--blue); color:#fff; border-color:var(--blue); }

/* Alerts / Messages */
.alert { padding:14px 20px; border-radius:var(--radius); margin-bottom:20px; font-size:.9em; }
.alert-success { background:rgba(94,234,212,0.1); border:1px solid rgba(94,234,212,0.3); color:var(--teal); }
.alert-error { background:rgba(255,80,80,0.1); border:1px solid rgba(255,80,80,0.3); color:#ff6b6b; }
.alert-info { background:rgba(68,136,255,0.1); border:1px solid rgba(68,136,255,0.3); color:var(--cyan); }

/* Buttons */
.btn { display:inline-block; padding:10px 24px; border-radius:8px; font-weight:600; font-size:.9em; cursor:pointer; border:none; transition:all .2s; text-align:center; }
.btn-primary { background:var(--blue); color:#fff; }
.btn-primary:hover { background:#5599ff; color:#fff; }
.btn-danger { background:#cc3333; color:#fff; }
.btn-danger:hover { background:#ee4444; color:#fff; }
.btn-sm { padding:6px 14px; font-size:.82em; }

/* Forms */
.form-group { margin-bottom:18px; }
.form-group label { display:block; color:var(--text-muted); font-size:.85em; font-weight:500; margin-bottom:6px; }
.form-control { width:100%; padding:10px 14px; border:1px solid var(--border); background:rgba(255,255,255,0.04); color:#fff; border-radius:8px; font-size:.9em; outline:none; transition:border-color .2s; }
.form-control:focus { border-color:var(--blue); }
textarea.form-control { min-height:200px; resize:vertical; font-family:inherit; }
select.form-control { appearance:auto; }

/* Admin table */
.admin-table { width:100%; border-collapse:collapse; }
.admin-table th { background:rgba(255,255,255,0.03); color:var(--text-muted); font-size:.8em; text-transform:uppercase; letter-spacing:1px; padding:12px; text-align:left; border-bottom:1px solid var(--border); }
.admin-table td { padding:12px; border-bottom:1px solid var(--border); font-size:.9em; color:var(--text); }
.admin-table tr:hover td { background:rgba(255,255,255,0.02); }
.status-badge { display:inline-block; padding:3px 10px; border-radius:12px; font-size:.75em; font-weight:600; text-transform:uppercase; }
.status-published { background:rgba(94,234,212,0.15); color:var(--teal); }
.status-draft { background:rgba(255,255,255,0.06); color:var(--text-dim); }

/* Responsive */
@media(max-width:900px) {
    .content-with-sidebar { grid-template-columns:1fr; }
    .sidebar { order:-1; }
}
@media(max-width:700px) {
    .nav-links { display:none; }
    .nav-toggle { display:block; }
    .nav-links.open { display:flex; flex-direction:column; position:absolute; top:60px; left:0; right:0; background:rgba(10,10,46,0.98); padding:20px; gap:14px; border-bottom:1px solid var(--border); }
    .articles-grid { grid-template-columns:1fr; }
    .subscribe-form { flex-direction:column; }
    .page-hero h1 { font-size:1.5em; }
    .footer-inner { grid-template-columns:1fr 1fr; }
}
