/* =========================================================================
 *  OV Bot — content pages (Features, FAQ, Guidelines, Changelog, Success)
 *  Dark glassmorphism + teal/purple/gold, matching the store. Loaded after
 *  main.css + chrome.css. Scoped under .content-page / .success-* so it can't
 *  bleed into other pages.
 * ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Exo:wght@100;300;400;500;600;700&display=swap');

:root {
	--ct-teal: #03dac6;
	--ct-purple: #bb86fc;
	--ct-gold: #e8c15a;
	--ct-orange: #faa356;
	--ct-text: rgba(236, 242, 248, 0.92);
	--ct-muted: rgba(236, 242, 248, 0.55);
	--ct-glass: rgba(255, 255, 255, 0.04);
	--ct-glass2: rgba(0, 0, 0, 0.2);
	--ct-border: rgba(187, 134, 252, 0.28);
	--ct-border-soft: rgba(255, 255, 255, 0.12);
	--ct-shadow: 0 10px 30px 2px rgba(0, 0, 0, 0.45);
	--ct-head: "Exo", sans-serif;
}

/* Center + cap the reading width */
#main2 .inner.not-home.content-page {
	width: 100% !important;
	max-width: 1120px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 4.5em 64px 4em 64px !important;
}
@media screen and (max-width: 640px) {
	#main2 .inner.not-home.content-page { padding-left: 22px !important; padding-right: 22px !important; }
}

.content-page .lead {
	color: var(--ct-muted);
	font-weight: 400;
	max-width: 48em;
	line-height: 1.8;
	margin-bottom: 2.5em;
}
.content-page .lead b { color: var(--ct-text); font-weight: 600; }

.content-page .section-title {
	font-family: var(--ct-head);
	font-weight: 600;
	font-size: 1.5em;
	color: #fff;
	margin: 2.2em 0 1.1em;
	display: flex; align-items: center; gap: 0.55em;
}
.content-page .section-title:first-of-type { margin-top: 0.5em; }
.content-page .section-title::before {
	content: ""; width: 4px; height: 1.05em; border-radius: 2px;
	background: linear-gradient(var(--ct-teal), var(--ct-purple));
}

/* Shared back button spacing */
.content-page .actions { margin-top: 3em; }

/* =========================== Features masonry ==========================
 *  Screenshots come in every shape (480x270 up to 679x1215), so nothing is
 *  cropped. Cards flow into balanced columns and interlock like a puzzle;
 *  each image keeps its true aspect ratio via width:100% + height:auto.
 * ======================================================================= */
/* The gallery wants more room than the reading-width content pages. */
#main2 .inner.not-home.content-page.feat-page { max-width: 1340px; }

.feat-masonry {
	column-count: 3;
	column-gap: 1.3em;
}
@media screen and (max-width: 1080px) { .feat-masonry { column-count: 2; } }
@media screen and (max-width: 680px)  { .feat-masonry { column-count: 1; } }

.feat-card {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	display: inline-block;      /* keeps each card whole inside a column */
	width: 100%;
	margin: 0 0 1.3em;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--ct-border-soft);
	background: var(--ct-glass2);
	box-shadow: var(--ct-shadow);
	transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.feat-card:hover {
	transform: translateY(-4px);
	border-color: var(--ct-border);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 22px rgba(3, 218, 198, 0.14);
}

.feat-media { background: #0d0d12; line-height: 0; }
/* Full image, never cropped — the whole screenshot is always visible. */
.feat-full { display: block; width: 100%; height: auto; }
/* Graceful fallback if an image ever fails to load. */
.feat-card.noimg .feat-media {
	line-height: normal; padding: 2.4em 1em; text-align: center;
	color: var(--ct-muted); font-family: "Courier New", monospace; font-size: 0.8em;
}
.feat-card.noimg .feat-media::before { content: "preview unavailable"; }

.feat-body { padding: 1.05em 1.2em 1.2em; }
.feat-cmd {
	display: inline-block; font-family: "Courier New", monospace; font-size: 0.78em;
	color: var(--ct-teal); background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(3, 218, 198, 0.3); border-radius: 7px;
	padding: 0.3em 0.62em; margin-bottom: 0.6em;
}
.feat-title { font-family: var(--ct-head); font-weight: 600; font-size: 1.08em; color: #fff; line-height: 1.25; margin-bottom: 0.4em; }
.feat-text { font-size: 0.85em; line-height: 1.6; color: var(--ct-muted); }

/* =========================== FAQ accordion ============================== */
.content-page .faq-container { display: block; }
.content-page .faq-container-inner { margin-bottom: 2.5em; }
.content-page .faq-title {
	font-family: var(--ct-head); font-weight: 600; font-size: 1.2em; color: #fff;
	opacity: 1 !important; margin: 0 0 1em; display: flex; align-items: center; gap: 0.5em;
}
.content-page .faq-title::before {
	content: "\f059"; font-family: "Font Awesome 5 Free"; font-weight: 900;
	color: var(--ct-teal); font-size: 0.9em;
}
/* each Q+A wrapper becomes a card */
.content-page .faq-container-inner > div {
	border-radius: 14px; overflow: hidden; margin-bottom: 0.85em;
	border: 1px solid var(--ct-border-soft); background: var(--ct-glass2);
	transition: border-color 0.2s ease;
}
.content-page .faq-container-inner > div:hover { border-color: var(--ct-border); }
.content-page .hr-line { display: none; }
.content-page .faq-page {
	border-radius: 0 !important; margin: 0 !important;
	box-shadow: none !important; background: transparent !important;
	backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
	color: #fff !important; font-family: var(--ct-head); font-weight: 500;
	font-size: 1.05em !important; padding: 1.05em 1.3em !important;
	display: flex; align-items: center; justify-content: space-between; gap: 1em;
}
.content-page .faq-page:hover { background: rgba(3, 218, 198, 0.06) !important; color: var(--ct-teal) !important; }
.content-page .faq-page .plus {
	float: none; position: static; right: auto; top: auto; width: 0.9em; flex-shrink: 0;
	filter: brightness(0) saturate(100%) invert(78%) sepia(58%) saturate(560%) hue-rotate(115deg); opacity: 0.9;
}
.content-page .faq-body {
	background: rgba(0, 0, 0, 0.25) !important; border-radius: 0 !important;
	padding: 0 1.5em !important; color: var(--ct-muted);
}
.content-page .faq-body.show { padding: 1.1em 1.5em 1.3em !important; }
.content-page .faq-body p, .content-page .faq-body { font-size: 0.92em; }
.content-page .faq-body a { color: var(--ct-teal); border-bottom: 1px dotted var(--ct-teal); }

/* =========================== Changelog ================================= */
.cl-wrap { display: flex; flex-direction: column; gap: 1em; margin-bottom: 1em; }
.cl-entry {
	border-radius: 14px; padding: 1.25em 1.4em;
	border: 1px solid var(--ct-border-soft); background: var(--ct-glass2);
	border-left: 3px solid var(--ct-teal); box-shadow: var(--ct-shadow);
}
.cl-entry.ann { border-left-color: var(--ct-purple); }
.cl-date {
	display: inline-flex; align-items: center; gap: 0.45em;
	font-size: 0.72em; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
	color: var(--ct-teal); background: rgba(3, 218, 198, 0.1);
	border: 1px solid rgba(3, 218, 198, 0.25); border-radius: 999px; padding: 0.35em 0.75em; margin-bottom: 0.9em;
}
.cl-entry.ann .cl-date { color: var(--ct-purple); background: rgba(187, 134, 252, 0.1); border-color: rgba(187, 134, 252, 0.25); }
.cl-date::before { content: "\f073"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 0.9em; }
.cl-body { margin: 0; padding: 0; list-style: none; }
.cl-body li { position: relative; padding-left: 1.4em; margin: 0.4em 0; font-size: 0.92em; line-height: 1.6; color: var(--ct-text); }
.cl-body li::before { content: ""; position: absolute; left: 0.25em; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ct-teal); }
.cl-empty { color: var(--ct-muted); font-style: italic; padding: 0.5em 0; }

/* =========================== Guidelines ================================ */
.empty-state {
	text-align: center; padding: 2.5em 1.5em; border-radius: 20px;
	border: 1px solid var(--ct-border-soft); background: linear-gradient(180deg, rgba(3,218,198,0.05), var(--ct-glass2) 60%);
	box-shadow: var(--ct-shadow); margin-bottom: 2.5em;
}
.empty-state .es-icon {
	width: 4em; height: 4em; margin: 0 auto 0.8em; border-radius: 18px;
	display: flex; align-items: center; justify-content: center; font-size: 1em;
	color: var(--ct-teal); background: rgba(3,218,198,0.1); border: 1px solid rgba(3,218,198,0.28);
}
.empty-state .es-icon i { font-size: 2em; }
.empty-state h2 { font-family: var(--ct-head); font-weight: 600; color: #fff; font-size: 1.4em; margin-bottom: 0.4em; }
.empty-state p { color: var(--ct-muted); max-width: 34em; margin: 0 auto 1.2em; line-height: 1.7; }
.empty-state p a { color: var(--ct-teal); border-bottom: 1px dotted var(--ct-teal); }

.principle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2em; }
.principle-card {
	border-radius: 14px; padding: 1.3em 1.35em;
	border: 1px solid var(--ct-border-soft); background: var(--ct-glass2); box-shadow: var(--ct-shadow);
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.principle-card:hover { transform: translateY(-4px); border-color: var(--ct-purple); }
.principle-card .pc-icon {
	width: 2.6em; height: 2.6em; border-radius: 12px; margin-bottom: 0.75em;
	display: flex; align-items: center; justify-content: center;
	color: var(--ct-gold); background: rgba(232,193,90,0.12); border: 1px solid rgba(232,193,90,0.25);
}
.principle-card h3 { font-family: var(--ct-head); font-weight: 600; color: #fff; font-size: 1.05em; margin-bottom: 0.35em; }
.principle-card p { font-size: 0.85em; line-height: 1.6; color: var(--ct-muted); }

/* =========================== Success page ============================== */
.success-wrap {
	min-height: 78vh; display: flex; align-items: center; justify-content: center;
	padding: 6em 1.5em 3em;
}
.success-card {
	text-align: center; max-width: 30em; width: 100%;
	padding: 2.6em 2em 2.2em; border-radius: 22px;
	border: 1px solid rgba(3, 218, 198, 0.3);
	background: linear-gradient(180deg, rgba(3, 218, 198, 0.07), var(--ct-glass2) 55%);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(3, 218, 198, 0.12);
}
.success-icon {
	width: 4.5em; height: 4.5em; margin: 0 auto 1em; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: #04201d; font-size: 1em;
	background: linear-gradient(135deg, var(--ct-teal), #7ef4e6);
	box-shadow: 0 8px 26px rgba(3, 218, 198, 0.4);
	animation: success-pop 0.5s ease;
}
.success-icon i { font-size: 2.3em; }
@keyframes success-pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.success-card h1 { font-family: var(--ct-head); font-weight: 700; color: #fff; font-size: 2em; margin-bottom: 0.4em; }
.success-card .s-text { color: var(--ct-muted); line-height: 1.7; margin-bottom: 1.3em; }
.cmd-chip {
	display: inline-flex; align-items: center; gap: 0.5em; margin-bottom: 1.6em;
	font-family: "Courier New", monospace; font-size: 1.05em; color: var(--ct-teal);
	background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(3, 218, 198, 0.35);
	border-radius: 10px; padding: 0.6em 1em;
}
.cmd-chip i { color: var(--ct-muted); font-size: 0.9em; }
.success-actions { display: flex; flex-direction: column; gap: 0.8em; }
.success-actions .button { width: 100%; margin: 0 !important; }
