/*
Theme Name: SecLab365 Child
Theme URI: https://seclab365.com/
Author: SecLab365
Author URI: https://seclab365.com/
Description: GeneratePress child theme for SecLab365. Category-first homepage, clean scannable vulnerability lists, mobile friendly.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: generatepress
Text Domain: seclab365-child
*/

/* ============ Base ============ */
body {
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
	color: #1f2937;
	background: #f6f8fa;
}
a { color: #0f766e; }
a:hover { color: #17c39a; }
.site-content { background: #f6f8fa; }

/* ============ Hero (homepage) ============ */
.sl-hero {
	background: linear-gradient(135deg, #16233f 0%, #1b2a4a 60%, #123f3a 100%);
	color: #fff;
	padding: 44px 20px 40px;
	text-align: center;
}
.sl-hero h1 {
	color: #fff;
	font-size: 40px;
	margin: 0 0 6px;
	letter-spacing: 1px;
}
.sl-hero .sl-tagline {
	color: #7fe3c3;
	font-size: 17px;
	margin: 0 0 14px;
	letter-spacing: 2px;
}
.sl-hero .sl-intro {
	color: #c7d2e0;
	font-size: 15px;
	line-height: 1.8;
	max-width: 640px;
	margin: 0 auto 20px;
}
.sl-hero-actions { margin: 0 0 18px; }
.sl-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	margin: 0 6px;
	text-decoration: none;
}
.sl-btn-primary { background: #17c39a; color: #06281f; }
.sl-btn-primary:hover { background: #2adcae; color: #06281f; }
.sl-btn-ghost { border: 1px solid #7fe3c3; color: #7fe3c3; }
.sl-btn-ghost:hover { background: rgba(127, 227, 195, .12); color: #7fe3c3; }
.sl-hero-search { max-width: 420px; margin: 0 auto; }
.sl-hero-search .search-form { display: flex; }
.sl-hero-search input[type="search"] {
	flex: 1;
	border: 1px solid rgba(255, 255, 255, .25);
	background: rgba(255, 255, 255, .1);
	color: #fff;
	border-radius: 999px 0 0 999px;
	padding: 9px 16px;
	font-size: 14px;
}
.sl-hero-search input[type="search"]::placeholder { color: #9fb0c3; }
.sl-hero-search input[type="submit"] {
	border: 0;
	background: #17c39a;
	color: #06281f;
	border-radius: 0 999px 999px 0;
	padding: 9px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

/* ============ Layout wrappers ============ */
.sl-wrap {
	max-width: 1060px;
	margin: 0 auto;
	padding: 0 20px;
}
.sl-home { padding-bottom: 40px; }
.sl-section { margin: 34px 0 0; }
.sl-section-title {
	font-size: 21px;
	margin: 0 0 16px;
	padding-left: 12px;
	border-left: 4px solid #17c39a;
	line-height: 1.4;
}
.sl-section-title .sl-more {
	float: right;
	font-size: 14px;
	font-weight: 400;
	line-height: 30px;
}

/* ============ Category tiles ============ */
.sl-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}
.sl-cat-card {
	display: block;
	background: #fff;
	border: 1px solid #e5e9ef;
	border-radius: 12px;
	padding: 18px;
	text-decoration: none;
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.sl-cat-card:hover {
	transform: translateY(-2px);
	border-color: #17c39a;
	box-shadow: 0 6px 18px rgba(22, 35, 63, .10);
}
.sl-cat-name {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: #16233f;
	margin-bottom: 6px;
}
.sl-cat-desc {
	display: block;
	font-size: 14px;
	line-height: 1.6;
	color: #6b7280;
	min-height: 44px;
	margin-bottom: 10px;
}
.sl-cat-meta {
	display: block;
	font-size: 13px;
	color: #0f766e;
}
.sl-cat-go { float: right; color: #9ca3af; }
.sl-cat-card:hover .sl-cat-go { color: #17c39a; }
.sl-cat-card.sl-cat-empty { opacity: .75; }

/* ============ Article rows (list view) ============ */
.sl-list { background: #fff; border: 1px solid #e5e9ef; border-radius: 12px; overflow: hidden; }
.sl-row {
	display: flex;
	gap: 16px;
	padding: 18px 20px;
	border-bottom: 1px solid #eef1f4;
}
.sl-row:last-child { border-bottom: 0; }
.sl-row-date {
	flex: 0 0 52px;
	text-align: center;
	padding-top: 2px;
}
.sl-row-day {
	display: block;
	font-size: 24px;
	font-weight: 800;
	color: #16233f;
	line-height: 1.1;
}
.sl-row-ym { display: block; font-size: 12px; color: #9ca3af; margin-top: 2px; }
.sl-row-body { flex: 1; min-width: 0; }
.sl-row-title { font-size: 17px; line-height: 1.5; margin: 0 0 6px; }
.sl-row-title a { color: #16233f; text-decoration: none; }
.sl-row-title a:hover { color: #0f766e; }
.sl-row-excerpt {
	font-size: 14px;
	line-height: 1.7;
	color: #6b7280;
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sl-row-meta { font-size: 13px; color: #9ca3af; }
.sl-row-meta .sl-tag {
	display: inline-block;
	background: #e6f7f1;
	color: #0f766e;
	border-radius: 999px;
	padding: 1px 10px;
	margin-right: 10px;
	text-decoration: none;
	font-size: 12px;
}
.sl-row-meta .sl-readmore { float: right; color: #0f766e; text-decoration: none; }

/* ============ Category nav strip (archive pages) ============ */
.sl-catnav {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 0 14px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.sl-catnav::-webkit-scrollbar { display: none; }
.sl-catnav a {
	flex: 0 0 auto;
	background: #fff;
	border: 1px solid #e5e9ef;
	color: #374151;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}
.sl-catnav a:hover { border-color: #17c39a; color: #0f766e; }
.sl-catnav a.sl-catnav-active { background: #16233f; border-color: #16233f; color: #fff; }

/* ============ Archive page tweaks ============ */
.sl-archive-head { margin-bottom: 8px; }
.sl-archive-head .taxonomy-description,
.sl-archive-head .archive-description {
	color: #6b7280;
	font-size: 15px;
	line-height: 1.7;
	margin: 6px 0 0;
}
.sl-empty-note {
	background: #fff;
	border: 1px dashed #d1d5db;
	border-radius: 12px;
	padding: 28px 20px;
	text-align: center;
	color: #6b7280;
	font-size: 15px;
}

/* ============ Single post ============ */
.single .entry-content { font-size: 16.5px; line-height: 1.9; }
.single .entry-content h2 {
	border-left: 4px solid #17c39a;
	padding-left: 12px;
	margin-top: 1.6em;
}
.single .entry-content img { border-radius: 8px; }
.single .entry-content code {
	background: #eef2f7;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: .9em;
}
.single .entry-content pre code { background: transparent; padding: 0; }

/* ============ Footer ============ */
.site-footer { background: #16233f; color: #9fb0c3; }
.site-footer a { color: #7fe3c3; }

/* ============ Mobile ============ */
@media (max-width: 640px) {
	.sl-hero { padding: 32px 16px 28px; }
	.sl-hero h1 { font-size: 30px; }
	.sl-row { padding: 16px; gap: 12px; }
	.sl-row-date { flex-basis: 42px; }
	.sl-row-day { font-size: 20px; }
	.sl-row-title { font-size: 16px; }
	.sl-cat-desc { min-height: 0; }
	.sl-section-title { font-size: 19px; }
}
