/*
Theme Name: Universidade dos Dados Blog
Description: Tema customizado do blog da Universidade dos Dados, no estilo visual do site principal.
Author: Universidade dos Dados
Version: 1.0
*/

@charset "UTF-8";

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	background: #071A23;
	color: #fff;
	font-family: 'Poppins', Arial, sans-serif;
	font-weight: 300;
	line-height: 1.6;
	font-size: 18px;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: #45B6F8;
	text-decoration: none;
}

a:hover {
	color: #00F6BF;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: bold;
	color: #45B6F8;
	line-height: 1.2;
	margin-bottom: 16px;
}

.container {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 24px;
}

/* HEADER */
.site-header {
	padding: 24px 0;
	border-bottom: 1px solid rgba(69, 182, 248, .2);
	background: #071A23;
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: bold;
	font-size: 18px;
	color: #fff;
}

.site-logo img {
	height: 36px;
	width: auto;
}

.back-to-site {
	background: #00F6BF;
	color: #071A23;
	font-weight: bold;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	transition: all .3s ease;
}

.back-to-site:hover {
	transform: translateY(-2px);
	color: #071A23;
}

/* BLOG LIST (index.php) */
.blog-hero {
	text-align: center;
	padding: 60px 0 40px 0;
}

.blog-hero h1 {
	font-size: 32px;
	margin-bottom: 8px;
}

.blog-hero p {
	color: #a6d6e6;
	font-size: 16px;
}

.post-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-bottom: 60px;
}

.post-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border-radius: 16px;
	border: 1px solid rgba(69, 182, 248, .2);
	background: rgba(69, 182, 248, .06);
	transition: all .3s ease;
}

.post-card:hover {
	border-color: rgba(69, 182, 248, .5);
	transform: translateY(-4px);
}

.post-card-thumb {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16/9;
}

.post-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card-meta {
	font-size: 13px;
	color: #a6d6e6;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.post-card h2 {
	font-size: 24px;
	margin-bottom: 8px;
}

.post-card h2 a {
	color: #fff;
}

.post-card h2 a:hover {
	color: #45B6F8;
}

.post-card-excerpt {
	color: #cfe8f5;
	font-size: 16px;
}

.post-card-readmore {
	font-weight: bold;
	color: #00F6BF;
	font-size: 14px;
}

@media (min-width: 768px) {
	.post-card {
		flex-direction: row;
		align-items: center;
	}
	.post-card-thumb {
		width: 280px;
		flex-shrink: 0;
	}
}

/* PAGINATION */
.pagination {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding-bottom: 60px;
}

.pagination a, .pagination span {
	padding: 10px 16px;
	border-radius: 8px;
	border: 1px solid rgba(69, 182, 248, .3);
	color: #fff;
	font-size: 14px;
}

.pagination .current {
	background: #45B6F8;
	color: #071A23;
	font-weight: bold;
}

/* SINGLE POST (single.php) */
.single-post {
	padding: 60px 0;
}

.single-post-meta {
	font-size: 13px;
	color: #a6d6e6;
	text-transform: uppercase;
	letter-spacing: .5px;
	margin-bottom: 8px;
}

.single-post h1 {
	font-size: 32px;
	margin-bottom: 24px;
}

.single-post-thumb {
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 32px;
}

.single-post-content {
	font-size: 18px;
	color: #e6f2f8;
}

.single-post-content p {
	margin-bottom: 24px;
}

.single-post-content h2 {
	font-size: 26px;
	margin-top: 40px;
}

.single-post-content h3 {
	font-size: 21px;
	margin-top: 32px;
}

.single-post-content ul, .single-post-content ol {
	margin: 0 0 24px 24px;
}

.single-post-content a {
	text-decoration: underline;
}

.single-post-content img {
	border-radius: 12px;
	margin: 24px 0;
}

.single-post-content blockquote {
	border-left: 3px solid #00F6BF;
	padding-left: 20px;
	color: #a6d6e6;
	font-style: italic;
	margin: 24px 0;
}

.back-to-blog {
	display: inline-block;
	margin-top: 40px;
	font-weight: bold;
	color: #00F6BF;
}

/* COMMENTS */
.comments-area {
	padding-top: 40px;
	border-top: 1px solid rgba(69, 182, 248, .2);
}

.comments-area h3 {
	font-size: 21px;
}

/* FOOTER */
.site-footer {
	padding: 32px 0;
	text-align: center;
	border-top: 1px solid rgba(69, 182, 248, .2);
	background: #071A23;
}

.site-footer p {
	font-size: 14px;
	color: #a6d6e6;
}
