/* SOnlineSoftware.com - Cybersecurity News & Resource Hub */
:root {
  --primary: #0a1628;
  --secondary: #111d32;
  --accent: #00bcd4;
  --accent2: #ff5722;
  --accent3: #4caf50;
  --text: #e0e0e0;
  --text-light: #8892a4;
  --card: #152238;
  --card-border: #1e3050;
  --danger: #f44336;
  --warning: #ff9800;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--primary); color: var(--text); line-height: 1.6; }

/* Top Bar */
.top-bar { background: var(--secondary); padding: .5rem 0; font-size: .8rem; border-bottom: 1px solid var(--card-border); }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: var(--text-light); text-decoration: none; margin-right: 1rem; }
.top-bar a:hover { color: var(--accent); }

/* Header */
header { background: var(--secondary); padding: 1rem 0; border-bottom: 2px solid var(--accent); position: sticky; top: 0; z-index: 100; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 800; text-decoration: none; }
.logo s { color: var(--accent); }
.logo span { color: var(--text); }
.logo small { display: block; font-size: .65rem; font-weight: 400; color: var(--text-light); }

/* Navigation */
nav ul { display: flex; gap: .25rem; list-style: none; }
nav a { color: var(--text-light); text-decoration: none; padding: .5rem 1rem; border-radius: 6px; font-size: .9rem; font-weight: 500; transition: all .2s; }
nav a:hover, nav a.active { background: rgba(0,188,212,.1); color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Breaking News Ticker */
.breaking { background: var(--danger); padding: .5rem 0; font-size: .85rem; font-weight: 600; }
.breaking .container { display: flex; align-items: center; gap: 1rem; }
.breaking .label { background: #fff; color: var(--danger); padding: .15rem .6rem; border-radius: 3px; font-size: .7rem; text-transform: uppercase; white-space: nowrap; }
.breaking .text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Hero Section */
.hero { padding: 2rem 0; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.hero-main { position: relative; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--card-border); }
.hero-main .content { padding: 2rem; }
.hero-main .cat { background: var(--accent); color: #000; padding: .2rem .7rem; border-radius: 4px; font-size: .75rem; font-weight: 700; display: inline-block; margin-bottom: 1rem; }
.hero-main h2 { font-size: 1.8rem; line-height: 1.3; margin-bottom: 1rem; }
.hero-main h2 a { color: var(--text); text-decoration: none; }
.hero-main h2 a:hover { color: var(--accent); }
.hero-main .meta { color: var(--text-light); font-size: .85rem; }
.hero-main .meta span { margin-right: 1rem; }
.hero-side { display: flex; flex-direction: column; gap: 1rem; }
.hero-side .item { background: var(--card); border: 1px solid var(--card-border); border-radius: 8px; padding: 1rem; flex: 1; }
.hero-side .item .cat { font-size: .7rem; color: var(--accent2); font-weight: 700; text-transform: uppercase; }
.hero-side .item h3 { font-size: .9rem; margin: .3rem 0; }
.hero-side .item h3 a { color: var(--text); text-decoration: none; }
.hero-side .item h3 a:hover { color: var(--accent); }
.hero-side .item .meta { font-size: .75rem; color: var(--text-light); }

/* News Grid */
.section-title { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--accent); display: flex; justify-content: space-between; align-items: center; }
.section-title a { font-size: .85rem; font-weight: 400; color: var(--accent); text-decoration: none; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; overflow: hidden; transition: transform .2s, border-color .2s; }
.news-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.news-card .body { padding: 1.25rem; }
.news-card .cat { font-size: .7rem; color: var(--accent2); font-weight: 700; text-transform: uppercase; margin-bottom: .5rem; }
.news-card h3 { font-size: 1rem; line-height: 1.4; margin-bottom: .5rem; }
.news-card h3 a { color: var(--text); text-decoration: none; }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { font-size: .85rem; color: var(--text-light); margin-bottom: .75rem; }
.news-card .meta { font-size: .75rem; color: var(--text-light); }
.news-card .meta .source { color: var(--accent3); }

/* Category Tabs */
.cat-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.cat-tabs a { background: var(--card); border: 1px solid var(--card-border); padding: .4rem 1rem; border-radius: 20px; text-decoration: none; color: var(--text-light); font-size: .85rem; transition: all .2s; }
.cat-tabs a:hover, .cat-tabs a.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }

/* Page Header */
.page-header { padding: 2rem 0; }
.page-header h1 { font-size: 2rem; }
.page-header p { color: var(--text-light); margin-top: .5rem; }

/* Article Page */
article { max-width: 800px; margin: 2rem auto; }
article h1 { font-size: 2.2rem; line-height: 1.3; margin-bottom: 1rem; }
article .meta { color: var(--text-light); font-size: .9rem; margin-bottom: 2rem; }
article .meta span { margin-right: 1rem; }
article p { margin-bottom: 1.2rem; font-size: 1.05rem; }
article h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--accent); }
article h3 { font-size: 1.2rem; margin: 1.5rem 0 .8rem; }
article ul, article ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
article li { margin-bottom: .5rem; font-size: 1.05rem; }
article blockquote { border-left: 3px solid var(--accent); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--card); border-radius: 0 8px 8px 0; }
article blockquote p { margin-bottom: 0; }
article .source-ref { background: var(--card); border: 1px solid var(--card-border); border-radius: 8px; padding: 1rem; margin: 1.5rem 0; font-size: .85rem; }
article .source-ref a { color: var(--accent); }

/* PJ Networks CTA Box */
.cta-box { background: linear-gradient(135deg, var(--secondary), #1a3050); border: 1px solid var(--accent); border-radius: 12px; padding: 2rem; margin: 2rem 0; text-align: center; }
.cta-box h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.cta-box p { color: var(--text-light); margin-bottom: 1rem; }
.cta-box .btn { display: inline-block; background: var(--accent); color: #000; padding: .7rem 2rem; border-radius: 6px; text-decoration: none; font-weight: 700; }
.cta-box .btn:hover { background: #00e5ff; }

/* Footer */
footer { background: var(--secondary); border-top: 1px solid var(--card-border); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
footer h4 { color: var(--accent); margin-bottom: 1rem; font-size: 1rem; }
footer p, footer li { color: var(--text-light); font-size: .85rem; line-height: 2; }
footer ul { list-style: none; }
footer a { color: var(--text-light); text-decoration: none; }
footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--card-border); padding-top: 1.5rem; text-align: center; font-size: .8rem; color: var(--text-light); }
.footer-bottom a { color: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  nav ul { gap: 0; flex-wrap: wrap; }
  nav a { font-size: .8rem; padding: .4rem .6rem; }
}

/* Newsletter */
.newsletter { background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; padding: 2rem; text-align: center; margin: 2rem 0; }
.newsletter h3 { margin-bottom: .5rem; }
.newsletter p { color: var(--text-light); margin-bottom: 1rem; font-size: .9rem; }
.newsletter .form { display: flex; max-width: 400px; margin: 0 auto; gap: .5rem; }
.newsletter input { flex: 1; padding: .7rem 1rem; border: 1px solid var(--card-border); border-radius: 6px; background: var(--secondary); color: var(--text); }
.newsletter button { padding: .7rem 1.5rem; background: var(--accent); color: #000; border: none; border-radius: 6px; font-weight: 700; cursor: pointer; }

/* Tools Section */
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.tool-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; padding: 1.5rem; }
.tool-card .icon { font-size: 2rem; margin-bottom: .5rem; }
.tool-card h3 { margin-bottom: .5rem; }
.tool-card p { font-size: .85rem; color: var(--text-light); margin-bottom: 1rem; }
.tool-card .btn { display: inline-block; background: var(--accent); color: #000; padding: .5rem 1.2rem; border-radius: 6px; text-decoration: none; font-size: .85rem; font-weight: 600; }

/* Vendor Cards */
.vendor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.vendor-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; padding: 1.5rem; text-align: center; }
.vendor-card h3 { margin-bottom: .5rem; }
.vendor-card p { font-size: .85rem; color: var(--text-light); margin-bottom: .5rem; }
.vendor-card .partner { font-size: .8rem; color: var(--accent3); font-weight: 600; }
.vendor-card .btn { display: inline-block; background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: .5rem 1.2rem; border-radius: 6px; text-decoration: none; font-size: .8rem; margin-top: .5rem; }
.vendor-card .btn:hover { background: var(--accent); color: #000; }
