/* Blog article pages — standalone layout for release/update posts and the
   blog index page. Linked from blog/*.php templates and blog.php after
   css/geral.css so its page-level overrides win the cascade. */

html, body {
	overflow-x: hidden;
	overflow-y: auto;
	height: auto;
}

body {
	padding: 40px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: 100vh;
	background: #383431;
}

.page-card {
	max-width: 720px;
	width: 100%;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 16px;
	padding: 40px;
	text-align: left;
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-card h1 {
	font-size: 2rem;
	margin-bottom: 12px;
	color: #fff;
}

.page-card .date {
	font-size: 0.85rem;
	color: #888;
	display: block;
	margin-bottom: 24px;
}

.page-card h2 {
	font-size: 1.25rem;
	margin-top: 28px;
	margin-bottom: 12px;
	color: #ccc;
}

.page-card p {
	line-height: 1.7;
	margin-bottom: 16px;
	color: #aaa;
	font-size: 1rem;
}

.page-card ul,
.page-card ol {
	margin-bottom: 16px;
	padding-left: 20px;
}

.page-card li {
	line-height: 1.7;
	color: #aaa;
	font-size: 1rem;
	margin-bottom: 4px;
}

.page-card a {
	color: #93c5fd;
}

.page-card code {
	background: rgba(255, 255, 255, 0.08);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
	color: #ccc;
}

.page-card .highlight {
	background: rgba(255, 255, 255, 0.05);
	border-left: 3px solid #93c5fd;
	padding: 16px 20px;
	border-radius: 8px;
	margin-bottom: 16px;
}

.page-card .highlight p {
	margin-bottom: 0;
}

.page-card .highlight-success {
	border-left-color: #4ade80;
}

.page-card .highlight-danger {
	border-left-color: #ef4444;
}

.blog-link {
	color: #93c5fd;
}

.lang-en {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: 24px;
	color: #aaa;
	text-decoration: none;
	font-size: 0.9rem;
}

.back-link.full-center {
	width: 100%;
	text-align: center;
	justify-content: center;
}

.back-link:hover {
	color: #fff;
}

/* Blog index page (blog.php) */
.page-card h1.blog-index-title {
	margin-bottom: 32px;
	text-align: center;
}

.post-card {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 20px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(8px);
	transition: border-color 0.2s;
}

.post-card:hover {
	border-color: rgba(255, 255, 255, 0.2);
}

.post-card h2 {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0 0 4px;
	color: #fff;
}

.post-card h2 a {
	color: inherit;
	text-decoration: none;
}

.post-card h2 a:hover {
	color: #93c5fd;
}

.post-card .date {
	font-size: 0.8rem;
	color: #888;
	display: block;
	margin-bottom: 8px;
}

.post-card p {
	color: #aaa;
	font-size: 0.9rem;
	margin: 0;
	line-height: 1.6;
}

.post-card .reading-time {
	font-size: 0.75rem;
	color: #666;
	display: inline-block;
	margin-top: 6px;
}

/* Back-to-top floating button */
.back-to-top {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 44px;
	height: 44px;
	background: rgba(37, 99, 235, 0.9);
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 1.2rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s, background 0.2s;
	z-index: 999;
	backdrop-filter: blur(4px);
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	background: #1d4ed8;
}

/* Blog share buttons (partials/blog-share.php) */
.blog-share {
	margin: 28px 0 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-share-title {
	color: #aaa;
	font-size: 0.85rem;
	margin-bottom: 12px;
}

.blog-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.blog-share-btn {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 16px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	color: #fff;
	font-family: inherit;
	font-size: 0.85rem;
	text-decoration: none;
	cursor: pointer;
}

.blog-share-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.25);
}

.blog-share-copied {
	display: none;
	margin: 12px 0 0;
	color: #4ade80;
	font-size: 0.85rem;
}
