/*
Theme Name: HotelTyp Finance
Theme URI: https://hoteltyp.com
Author: HotelTyp
Author URI: https://hoteltyp.com
Description: Personal finance publication theme for HotelTyp — clear guides, independent comparisons, and interactive tools to help readers make informed money decisions.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: hoteltyp
*/

/* ==========================================================================
   Design tokens (mirrors the source template's :root)
   ========================================================================== */
:root {
	--primary-color: #0a1822;
	--secondary-color: #f44e2a;
	--bg-color: #f5f5f5;
	--text-color: #333;
	--hover-color: #d03e1f;
	--font-family: 'Ubuntu Sans', sans-serif;
	--container-width: 1200px;
	--card-bg: #ffffff;
	--border-radius: 6px;
	--values-authors-bg: var(--primary-color);
	--transition: 0.3s ease;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: var(--font-family);
}

body {
	background: var(--bg-color);
	color: var(--text-color);
	line-height: 1.5;
	font-size: 18px;
}

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

a {
	text-decoration: none;
	color: var(--text-color);
}

a:hover {
	color: var(--secondary-color);
}

time {
	display: block;
	font-size: 0.8em;
	color: #888;
	margin-bottom: 0.5em;
}

.container {
	width: 90%;
	max-width: var(--container-width);
	margin: 0 auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* HEADER */
.site-header {
	background: var(--primary-color);
	color: #fff;
	padding: 1em 0;
}

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

.menu__item {
	display: flex;
	text-align: center;
	align-items: center;
}

.logo {
	font-size: 1.2em;
	font-weight: 700;
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
}

.logo-wordmark {
	display: inline-flex;
	flex-direction: column;
	line-height: 1.1;
}

.logo-wordmark .logo-name {
	font-size: 1.3em;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.01em;
}

.logo-wordmark .logo-name span {
	color: var(--secondary-color);
}

.logo-wordmark .logo-tagline {
	font-size: 0.6em;
	font-weight: 400;
	color: #b9c2c8;
	letter-spacing: 0.02em;
}

/* Desktop nav */
.main-nav ul {
	display: flex;
	gap: 1.5em;
	list-style: none;
}

.main-nav a {
	color: #fff;
	font-weight: 500;
	font-size: 0.95em;
}

.header-search form {
	display: flex;
}

.header-search input {
	padding: 0.5em 0.8em;
	border: none;
	border-radius: var(--border-radius) 0 0 var(--border-radius);
	font-size: 1em;
}

.header-search button {
	padding: 0.5em 1em;
	border: none;
	background: var(--secondary-color);
	color: #fff;
	border-radius: 0 var(--border-radius) var(--border-radius) 0;
	cursor: pointer;
	font-size: 0.9em;
	font-weight: 500;
}

.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.2em;
	color: #fff;
	cursor: pointer;
}

/* MOBILE NAV OVERLAY */
.mobile-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 998;
}

.mobile-overlay.active {
	display: block;
}

/* MOBILE NAV */
.main-nav {
	position: relative;
}

.mobile-search-form {
	display: none;
	flex-direction: column;
	gap: 0.5em;
	margin-bottom: 1em;
}

.mobile-search-form input {
	padding: 0.5em;
	border: none;
	border-radius: var(--border-radius);
	font-size: 1em;
}

.mobile-search-form button {
	padding: 0.5em;
	background: var(--secondary-color);
	border: none;
	color: #fff;
	border-radius: var(--border-radius);
	cursor: pointer;
}

/* CATEGORIES STRIP */
.categories-strip {
	background: #0a1822;
	padding: 0.8em 0;
}

.categories-list {
	display: flex;
	gap: 2em;
	list-style: none;
	justify-content: center;
	flex-wrap: wrap;
}

.categories-list li a {
	color: #fff;
	font-size: 0.9em;
	font-weight: 500;
}

/* MAIN */
.site-main {
	padding: 2em 0;
}

.main-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2em;
	margin-bottom: 2em;
}

.featured-article {
	background: var(--card-bg);
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	margin-bottom: 2em;
}

.featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

.featured-info {
	padding: 1.5em;
}

.featured-info h2 {
	margin-bottom: 0.5em;
	font-weight: 600;
	font-size: 1.3em;
	color: var(--primary-color);
}

.featured-info p {
	margin-bottom: 1em;
	font-size: 0.95em;
	color: #555;
}

.btn {
	display: inline-block;
	padding: 0.5em 1em;
	background: var(--secondary-color);
	color: #fff;
	border-radius: var(--border-radius);
	font-weight: 500;
	font-size: 0.9em;
}

.btn:hover {
	background: var(--hover-color);
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
	gap: 1em;
}

.post-card {
	background: var(--card-bg);
	border-radius: var(--border-radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 1em;
}

.post-card img {
	margin-bottom: 1em;
}

.post-card h3 {
	font-size: 1em;
	font-weight: 600;
	margin-bottom: 0.5em;
	color: var(--primary-color);
}

.post-card p {
	font-size: 0.9em;
	color: #555;
	margin-bottom: 1em;
}

/* SIDEBAR */
.sidebar-block {
	background: #fff;
	border-radius: var(--border-radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	padding: 1em;
	margin-bottom: 1.5em;
}

.sidebar-block h2 {
	font-size: 1.1em;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 1em;
}

.mais-lidos-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.mais-lidos-list li {
	display: flex;
	gap: 1em;
	align-items: flex-start;
	flex-direction: row-reverse;
	padding-bottom: 1em;
	border: 1px solid #eee;
	padding: 15px;
	transition: background-color 0.3s, box-shadow 0.3s;
	border-radius: 6px;
	cursor: pointer;
}

.mais-lidos-list li:hover {
	background-color: #f2f2f2;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.mais-lidos-list li time {
	font-size: 0.75em;
	color: #999;
	margin: 0.3em 0;
	display: block;
	float: right;
}

.mais-lidos-list h3,
.mais-lidos-list h3 a {
	font-size: 0.95em;
	color: var(--primary-color);
	font-weight: 600;
	margin-bottom: 0.3em;
	min-width: 227px;
}

.mais-lidos-list a {
	font-size: 0.85em;
	color: var(--secondary-color);
	font-weight: 500;
}

.mais-lidos-list hr {
	border: none;
	border-top: 1px solid #ddd;
	margin: 0;
}

.mais-lidos-list .image-container {
	border-radius: 5px;
}

/* Widget-area lists (registered sidebar, block widgets) don't carry the
   template's own markup, so reset the default WP disc bullets and match
   the .mais-lidos-list link styling for anything dropped in from
   Appearance > Widgets. */
.sidebar ul,
.sidebar .sidebar-block ul,
.sidebar .widget ul,
.sidebar .wp-block-archives-list,
.sidebar .wp-block-categories,
.sidebar .wp-block-latest-posts__list,
.sidebar .wp-block-page-list,
.sidebar .wp-block-latest-comments {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar .sidebar-block li {
	margin-bottom: 0.5em;
	line-height: 1.4;
}

.sidebar .sidebar-block li a {
	color: var(--primary-color);
	text-decoration: none;
}

.sidebar .sidebar-block li a:hover {
	color: var(--secondary-color);
}

.read-more-link {
	font-size: 0.8em;
	color: var(--secondary-color);
	font-weight: 600;
	text-decoration: none;
}

.read-more-link:hover {
	color: var(--hover-color);
}

.read-more-link .arrow-icon {
	font-size: 1.2em;
	margin-left: 0.2em;
}

/* SEARCH FORM (widget/sidebar context) */
.sidebar-search {
	display: flex;
	gap: 0.5em;
	margin-bottom: 1em;
}

.sidebar-search input {
	flex: 1;
	padding: 0.5em;
	border: 1px solid #ccc;
	border-radius: var(--border-radius);
	font-size: 0.9em;
}

.sidebar-search button {
	padding: 0.5em 1em;
	background: var(--secondary-color);
	border: none;
	color: #fff;
	font-size: 0.9em;
	font-weight: 500;
	border-radius: var(--border-radius);
	cursor: pointer;
}

/* SECTION BLOCKS */
.section-block {
	margin-bottom: 3em;
}

.section-block h2::before,
.section-block h2::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid #cacaca;
	margin: 0;
}

.section-block h2::after {
	margin-left: 30px;
}

.section-block h2::before {
	margin-right: 30px;
}

.section-block h2 {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.7em;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 1em;
	text-align: center;
	position: relative;
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5em;
}

.info-card {
	background: var(--card-bg);
	border-radius: var(--border-radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	padding: 1em;
	display: flex;
	flex-direction: column;
}

.info-card img {
	border-radius: var(--border-radius);
	margin-bottom: 1em;
	width: 100%;
	height: auto;
}

.info-card h3 {
	font-weight: 600;
	font-size: 1em;
	margin-bottom: 0.5em;
	color: var(--primary-color);
}

.info-card p {
	font-size: 0.9em;
	color: #555;
	margin-bottom: 0.8em;
}

/* FOOTER */
.site-footer {
	background: var(--primary-color);
	color: #fff;
	margin-top: 3em;
	font-size: 0.9em;
}

.footer-top {
	padding: 2em 0;
}

.footer-container {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 2em;
}

.logo-col {
	position: relative;
	padding-left: 0 !important;
}

.footer-logo-box {
	width: 100%;
	background: #0a1822;
	padding: 1em;
	border-radius: var(--border-radius);
	margin-bottom: 1em;
	display: inline-block;
}

.footer-logo {
	font-size: 1.3em;
	font-weight: 700;
	color: #fff;
	display: block;
	text-align: center;
}

.footer-logo .logo-name span {
	color: var(--secondary-color);
}

.footer-col h3 {
	font-weight: 600;
	font-size: 1.5em;
	margin-bottom: 0.5em;
	color: #fff;
}

.footer-col {
	padding-left: 30px;
}

.footer-col p,
.footer-col li,
.footer-col a {
	color: #ddd;
	font-size: 1em;
	margin-bottom: 0.3em;
}

.footer-col ul {
	list-style: none;
	padding: 0;
}

.footer-col ul li a:hover {
	color: var(--secondary-color);
}

.social-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.3em;
}

.social-list a:hover {
	color: var(--secondary-color);
}

.footer-bottom {
	border-top: 1px solid #004050;
	padding: 1em 0;
	text-align: center;
}

.footer-bottom ul {
	list-style: none;
	display: inline-flex;
	gap: 1em;
}

.footer-bottom a {
	color: #ccc;
}

.footer-bottom a:hover {
	color: var(--secondary-color);
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
	.main-grid {
		grid-template-columns: 1fr;
	}

	.header-search {
		display: none;
	}

	.mobile-menu-toggle {
		display: block;
	}

	.main-nav {
		position: fixed;
		top: 0;
		right: -250px;
		width: 250px;
		height: 100vh;
		background: var(--primary-color);
		display: flex;
		flex-direction: column;
		padding: 2em 1em;
		gap: 1em;
		z-index: 999;
		transition: right var(--transition);
	}

	.main-nav.open {
		right: 0;
	}

	.main-nav ul {
		flex-direction: column;
		gap: 1em;
	}

	.main-nav a {
		color: #fff;
		font-size: 1.1em;
	}

	.mobile-search-form {
		display: flex;
	}

	.categories-list {
		flex-wrap: wrap;
		gap: 1em;
	}

	.footer-container {
		grid-template-columns: 1fr;
	}

	.container.post {
		width: 100%;
		margin: 0;
		padding: 0;
	}

	.author-box {
		background: #f9f9f9;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 18px;
	}

	.featured-info h2 {
		font-size: 1.1em;
	}

	.info-card h3 {
		font-size: 1em;
	}

	.cards-grid {
		grid-template-columns: 1fr;
	}

	.mais-lidos-list li {
		flex-direction: column;
		align-items: flex-start;
	}

	.mais-lidos-list li .image-container {
		aspect-ratio: 16 / 9;
		width: 100%;
		display: block;
		overflow: hidden;
		margin-bottom: 0px;
	}

	.mais-lidos-list li .image-container img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

/* Single post layout */
.post-page-grid {
	grid-template-columns: 2fr 1fr;
	gap: 2em;
}

.post-wrapper {
	background: #fff;
	border-radius: 6px;
	padding: 2em;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	min-width: 0;
	overflow-x: visible !important;
}

.post-header {
	margin-bottom: 1em;
}

.post-title {
	font-size: 2em;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 0.3em;
}

.post-subtitle {
	font-size: 1.2em;
	font-weight: 400;
	color: #555;
	margin-bottom: 1em;
}

.post-meta {
	font-size: 0.9em;
	color: #888;
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
	align-items: center;
}

.post-meta time,
.post-meta span {
	font-size: 0.9em;
}

.post-meta a {
	color: #888;
}

.post-meta a:hover {
	color: var(--secondary-color);
}

/* Single post featured image: the wrapper carries the breathing room
   below it, not the <img> itself, so hover-zoom and rounding on
   .image-container don't have to fight a second margin. Scoped under
   .single so it can never leak onto other places .post-wrapper might
   be reused. Specificity alone (4 classes) beats the base
   .image-container rules below, so no !important is needed. */
.single .post-wrapper .post-featured-image {
	margin: 0 0 2em 0;
	line-height: normal;
}

.single .post-wrapper .post-featured-image .image-container {
	margin: 0;
	padding: 0;
	line-height: 0;
}

.single .post-wrapper .post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	border-radius: 6px;
}

/* Home hero (front-page.php uses .featured-image, not
   .post-featured-image — see line ~267): the image sits flush against
   the top of the .featured-article card, no margin. */
.featured-article .image-container {
	margin: 0;
	padding: 0;
	line-height: 0;
}

.post-content-area p {
	margin-bottom: 1.5em;
	color: #333;
	line-height: 1.7em;
}

.post-content-area h2 {
	font-size: 1.5em;
	font-weight: 600;
	margin: 1.2em 0 0.5em 0;
	color: var(--primary-color);
}

.post-content-area h3 {
	font-size: 1.3em;
	font-weight: 600;
	margin: 2em 0 1em 0;
	color: var(--primary-color);
}

.post-content-area ul,
.post-content-area ol {
	margin-bottom: 1.25em;
	padding-left: 1.25em;
}

.post-content-area ul {
	list-style: disc;
}

.post-content-area ol {
	list-style: decimal;
}

.post-content-area ul li,
.post-content-area ol li {
	margin-bottom: 0.5em;
	line-height: 1.6;
}

.post-content-area img {
	border-radius: var(--border-radius);
	margin: 1.5em 0;
}

.post-content-area a {
	color: var(--secondary-color);
	text-decoration: underline;
}

.post-content-area a:hover {
	color: var(--hover-color);
}

/* Author Box */
.author-box {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 1.5em;
	display: flex;
	gap: 1em;
	margin-top: 3em;
	align-items: flex-start;
}

.author-box .author-avatar {
	border-radius: 50%;
	width: 80px;
	height: 80px;
	object-fit: cover;
}

.author-box .author-info {
	flex: 1;
}

.author-title {
	font-size: 1.1em;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 0.5em;
}

.author-desc {
	font-size: 0.95em;
	color: #555;
	line-height: 1.5em;
}

/* Related Posts */
.related-posts {
	margin-top: 3em;
}

.related-posts h2 {
	font-size: 1.3em;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 1.5em;
}

.adunit {
	margin-bottom: 2em;
}

@media (max-width: 990px) {
	.post-page-grid {
		grid-template-columns: 1fr;
	}

	.post-wrapper {
		border-radius: 0;
		border: none;
		box-shadow: none;
		padding: 1em;
	}

	.author-box {
		padding: 1em;
	}

	.container.post section.related-posts {
		padding: 0 1em;
	}
}

/* Category / archive page */
.category-page {
	padding: 2em 0;
}

.category-header {
	margin-bottom: 2em;
}

.category-header h1 {
	font-size: 2em;
	font-weight: 700;
	color: var(--primary-color);
	text-transform: capitalize;
	margin-bottom: 0.3em;
	text-align: left;
}

.category-header p {
	color: #666;
}

.category-page-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2em;
}

.category-content .posts-grid,
.category-content .cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 1.5em;
}

@media (max-width: 768px) {
	.category-page-grid {
		grid-template-columns: 1fr;
	}
}

/* Author archive page */
.author-page {
	padding: 2em 0;
}

.author-section {
	display: flex;
	justify-content: center;
	margin-bottom: 3em;
}

.author-card {
	background: #fff;
	border-radius: var(--border-radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	padding: 2em;
	text-align: center;
	max-width: 400px;
	width: 100%;
}

.author-card img {
	margin: auto;
	margin-bottom: 20px;
}

.author-avatar {
	width: 120px;
	height: 120px;
	border-radius: 50% !important;
	object-fit: cover;
	margin-bottom: 1em;
	border: 4px solid #fff;
	box-shadow: 0 0 0 4px var(--primary-color);
}

.author-name {
	font-size: 1.5em;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 0.5em;
}

.author-bio {
	font-size: 1em;
	color: #555;
	line-height: 1.5em;
	margin-bottom: 1.5em;
}

.author-posts-block h2 {
	font-size: 1.5em;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 1.5em;
	text-align: left;
}

@media (max-width: 768px) {
	.author-posts-block h2 {
		text-align: center;
	}
}

/* Static page */
.page-content {
	background: #fff;
	border-radius: var(--border-radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	padding: 2.5em;
	margin: 2em 0;
}

.page-content h1 {
	font-size: 2em;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 0.8em;
}

.page-content h2 {
	font-size: 1.4em;
	font-weight: 600;
	color: var(--primary-color);
	margin: 1.2em 0 0.5em 0;
}

.page-content p {
	margin-bottom: 1.2em;
	line-height: 1.7em;
}

.page-content ul,
.page-content ol {
	margin: 0 0 1.2em 1.5em;
}

.page-content a {
	color: var(--secondary-color);
	text-decoration: underline;
}

/* References block (article sources) */
.references ul li {
	margin-bottom: 0.5rem;
	font-size: 1rem;
}

.references {
	border: 1px solid #00000024;
	padding: 0.5rem;
	border-radius: 0.5rem;
	overflow: auto;
	margin-top: 2em;
}

.references p {
	text-align: center;
	font-weight: 600;
	margin-top: 10px;
	margin-bottom: 21px;
	border-bottom: 1px solid #00000030;
	padding-bottom: 15px;
}

/* Pagination */
.pagination {
	text-align: center;
	color: var(--secondary-color);
	font-family: var(--font-family);
	margin: 2rem 0;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 32px;
	font-size: 0.875rem;
	background: #fff;
	border-radius: 4px;
	padding: 0.6em 0.9em;
	text-decoration: none;
	color: inherit;
	margin: 0 0.2em;
}

.pagination .page-numbers.current {
	background-color: var(--secondary-color);
	color: #fff;
}

/* Image zoom container (cards) */
.image-container {
	overflow: hidden;
	position: relative;
	display: inline-block;
	width: 100%;
	margin-bottom: 1em;
	border-radius: var(--border-radius);
}

.image-container img {
	transition: transform 0.3s ease;
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 0 !important;
}

.image-container:hover img {
	transform: scale(1.05);
}

/* No-results / empty state */
.no-results {
	background: #fff;
	border-radius: var(--border-radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	padding: 3em 2em;
	text-align: center;
}

.no-results h1 {
	color: var(--primary-color);
	margin-bottom: 0.5em;
}

.no-results p {
	color: #555;
	margin-bottom: 1.5em;
}
