/*
Theme Name: Jasadomino
Theme URI: https://jasadomino.site
Description: Custom GeneratePress child theme for Jasadomino -- an AI education hub. Ships with 20 pre-loaded articles, required legal pages, custom branding, and a tailored editorial design, auto-imported on activation.
Author: Jasadomino
Template: generatepress
Version: 1.0.0
Text Domain: jasadomino
*/

/* -----------------------------------------------------------------------
   1. Design tokens
----------------------------------------------------------------------- */
:root {
	--jd-brand: #4F46E5;
	--jd-brand-dark: #3730A3;
	--jd-ink: #1E1B4B;
	--jd-text: #3F3F55;
	--jd-muted: #6B7280;
	--jd-bg-soft: #F7F8FB;
	--jd-border: #E6E7F0;
	--jd-card-shadow: 0 2px 10px rgba(30, 27, 75, 0.06);
	--jd-card-shadow-hover: 0 10px 24px rgba(30, 27, 75, 0.12);
	--jd-radius: 14px;
}

/* -----------------------------------------------------------------------
   2. Base typography
----------------------------------------------------------------------- */
body {
	color: var(--jd-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background-color: var(--jd-bg-soft);
}

.site-content, .inside-article {
	background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--jd-ink);
	font-weight: 700;
	line-height: 1.25;
}

.entry-content h2 {
	margin-top: 2.2em;
	padding-top: 0.4em;
	border-top: 1px solid var(--jd-border);
	font-size: 1.55em;
}

.entry-content h3 {
	font-size: 1.2em;
	margin-top: 1.6em;
}

.entry-content p {
	line-height: 1.75;
	font-size: 1.06em;
}

.entry-content a {
	color: var(--jd-brand);
	text-decoration-color: rgba(79, 70, 229, 0.35);
}

.entry-content a:hover {
	color: var(--jd-brand-dark);
}

/* -----------------------------------------------------------------------
   3. Header / branding
----------------------------------------------------------------------- */
#site-navigation, .main-navigation {
	background-color: #fff;
	border-bottom: 1px solid var(--jd-border);
}

.main-navigation .main-nav ul li a {
	font-weight: 600;
	font-size: 0.98em;
}

.site-logo img, .custom-logo-link img {
	max-height: 46px;
	width: auto;
}

/* -----------------------------------------------------------------------
   4. Hero banner (front page latest-posts header)
----------------------------------------------------------------------- */
.jasadomino-hero {
	background: linear-gradient(120deg, var(--jd-brand) 0%, #7C3AED 100%);
	color: #fff;
	padding: 64px 24px;
	border-radius: 0 0 28px 28px;
	margin-bottom: 40px;
	text-align: center;
}

.jasadomino-hero h1 {
	color: #fff;
	font-size: 2.3em;
	max-width: 780px;
	margin: 0 auto 14px;
}

.jasadomino-hero p {
	color: rgba(255,255,255,0.92);
	max-width: 620px;
	margin: 0 auto;
	font-size: 1.1em;
}

/* -----------------------------------------------------------------------
   5. Post cards (blog index / archives)
----------------------------------------------------------------------- */
.site-main article.post {
	background: #fff;
	border: 1px solid var(--jd-border);
	border-radius: var(--jd-radius);
	box-shadow: var(--jd-card-shadow);
	padding: 0;
	overflow: hidden;
	margin-bottom: 32px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.site-main article.post:hover {
	box-shadow: var(--jd-card-shadow-hover);
	transform: translateY(-2px);
}

.site-main article.post .post-image img {
	width: 100%;
	height: auto;
	display: block;
}

.site-main article.post .inside-article {
	padding: 26px 28px 30px;
}

.site-main .entry-title a {
	color: var(--jd-ink);
}

.site-main .entry-title a:hover {
	color: var(--jd-brand);
}

.entry-meta {
	color: var(--jd-muted);
	font-size: 0.88em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* -----------------------------------------------------------------------
   6. Callout / definition / tip / warning boxes
   (article blockquotes: "Definition box:", "Tip:", "Warning box:")
----------------------------------------------------------------------- */
.entry-content blockquote {
	margin: 1.6em 0;
	padding: 18px 22px;
	border-left: 4px solid var(--jd-brand);
	background: var(--jd-bg-soft);
	border-radius: 0 10px 10px 0;
	font-size: 1em;
}

.entry-content blockquote p {
	margin: 0;
}

.entry-content blockquote strong:first-child {
	color: var(--jd-brand-dark);
}

/* -----------------------------------------------------------------------
   7. Tables
----------------------------------------------------------------------- */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.8em 0;
	font-size: 0.96em;
}

.entry-content table th {
	background: var(--jd-brand);
	color: #fff;
	text-align: left;
	padding: 10px 14px;
}

.entry-content table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--jd-border);
}

.entry-content table tr:nth-child(even) td {
	background: var(--jd-bg-soft);
}

/* -----------------------------------------------------------------------
   8. Reading-time badge
----------------------------------------------------------------------- */
.jasadomino-reading-time {
	display: inline-block;
	background: var(--jd-bg-soft);
	color: var(--jd-brand-dark);
	border: 1px solid var(--jd-border);
	border-radius: 20px;
	padding: 5px 14px;
	font-size: 0.82em;
	font-weight: 600;
	margin-bottom: 1.4em;
}

/* -----------------------------------------------------------------------
   9. Buttons / links styled as CTAs inside content
----------------------------------------------------------------------- */
.entry-content h2 + p a:only-child {
	font-weight: 600;
}

/* -----------------------------------------------------------------------
   10. Footer bar (legal links + copyright)
----------------------------------------------------------------------- */
.footer-bar, #footer-bar {
	background: var(--jd-ink);
	color: rgba(255,255,255,0.75);
	padding: 22px 0;
}

.jasadomino-footer-links {
	text-align: center;
	margin-bottom: 8px;
}

.jasadomino-footer-links a {
	color: rgba(255,255,255,0.85);
	text-decoration: none;
	font-size: 0.92em;
}

.jasadomino-footer-links a:hover {
	color: #fff;
	text-decoration: underline;
}

.jasadomino-footer-links span {
	color: rgba(255,255,255,0.35);
	margin: 0 4px;
}

.jasadomino-footer-copy {
	text-align: center;
	font-size: 0.82em;
	color: rgba(255,255,255,0.55);
}

/* -----------------------------------------------------------------------
   11. Category badge shown on cards (optional, theme-agnostic hook target)
----------------------------------------------------------------------- */
.entry-meta .cat-links a {
	background: rgba(79, 70, 229, 0.1);
	color: var(--jd-brand-dark);
	padding: 3px 10px;
	border-radius: 20px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
}

/* -----------------------------------------------------------------------
   12. Responsive tweaks
----------------------------------------------------------------------- */
@media (max-width: 768px) {
	.jasadomino-hero {
		padding: 44px 20px;
		border-radius: 0 0 18px 18px;
	}
	.jasadomino-hero h1 {
		font-size: 1.6em;
	}
	.site-main article.post .inside-article {
		padding: 20px;
	}
}

/* -----------------------------------------------------------------------
   13. Page content (legal pages etc.) -- slightly narrower measure for readability
----------------------------------------------------------------------- */
.page .entry-content {
	max-width: 760px;
}

/* -----------------------------------------------------------------------
   14. Right sidebar (Categories / Archives / Recent Posts / Search)
----------------------------------------------------------------------- */
#right-sidebar .widget,
.sidebar .widget {
	background: #fff;
	border: 1px solid var(--jd-border);
	border-radius: var(--jd-radius);
	box-shadow: var(--jd-card-shadow);
	padding: 22px 24px;
	margin-bottom: 24px;
}

#right-sidebar .widget-title,
.sidebar .widget-title {
	font-size: 1.05em;
	color: var(--jd-ink);
	border-bottom: 2px solid var(--jd-brand);
	padding-bottom: 8px;
	margin-bottom: 14px;
	display: inline-block;
}

#right-sidebar .widget ul,
.sidebar .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#right-sidebar .widget ul li,
.sidebar .widget ul li {
	padding: 7px 0;
	border-bottom: 1px dashed var(--jd-border);
	font-size: 0.95em;
}

#right-sidebar .widget ul li:last-child,
.sidebar .widget ul li:last-child {
	border-bottom: none;
}

#right-sidebar .widget a,
.sidebar .widget a {
	color: var(--jd-text);
}

#right-sidebar .widget a:hover,
.sidebar .widget a:hover {
	color: var(--jd-brand);
}

#right-sidebar .widget_search input[type="search"],
.sidebar .widget_search input[type="search"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--jd-border);
	border-radius: 8px;
}

#right-sidebar .widget_search input[type="submit"],
.sidebar .widget_search input[type="submit"] {
	margin-top: 8px;
	background: var(--jd-brand);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 9px 16px;
	font-weight: 600;
	cursor: pointer;
}
