/*
Theme Name: Basokolore
Description: Tema propio de Basokolore. Recrea el diseño clásico de la web (basado en "Scruffy" de Fresh01) con código actual, adaptable a móvil y compatible con PHP 8.3.
Version: 1.0
Author: Online Navarra
Author URI: https://www.onlinenavarra.com/
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: basokolore
*/

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { background: #000; }

body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	background: #000 url(img/bg.jpg) no-repeat center top;
}

h1, h2, h3, h4, h5, h6 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: normal;
	color: #666;
	margin: .4em 0;
	line-height: 1.25;
}

a { color: #8697a0; }
a:hover, a:focus { color: #5d6c74; }

img { max-width: 100%; height: auto; border: 0; }

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

.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000;
	width: auto; height: auto; clip: auto;
	background: #fff; color: #000; padding: 8px 12px;
}

/* ---------- Estructura ---------- */
#container {
	position: relative;
	width: 830px;
	max-width: 100%;
	margin: 0 auto;
}

#head {
	position: relative;
	min-height: 150px;
	background: #000 url(img/header.jpg) no-repeat center top;
}

.site-title {
	margin: 0;
	padding: 28px 15px 0;
	height: auto;
	font-size: 1em;
}

.site-title a { display: inline-block; }
.site-title img { display: block; }

/* ---------- Menú ---------- */
#nav ul {
	list-style: none;
	margin: 10px 0 0;
	padding: 0 0 0 18px;
}

#nav li {
	display: inline-block;
	margin-right: 10px;
	padding-left: 15px;
	font-size: 15px;
	background: url(img/navdivider.jpg) no-repeat left center;
}

#nav li:first-child { background: none; padding-left: 15px; }

#nav a {
	display: inline-block;
	padding-top: 13px;
	font-weight: bold;
	color: #fff;
	text-decoration: none;
}

#nav a:hover,
#nav a:focus,
#nav .current-menu-item > a,
#nav .current_page_item > a {
	color: #8cb203;
	background: url(img/navhover.gif) no-repeat top center;
}

#nav ul ul { display: none; }

.menu-toggle { display: none; }

/* ---------- Cuerpo ---------- */
#main {
	display: flex;
	align-items: flex-start;
	margin-top: -1px;
	background: #f4f5de url(img/main.jpg) no-repeat top left;
}

#content { width: 560px; min-width: 0; padding-bottom: 20px; }

#sidebar { width: 270px; padding: 0 0 20px; }

/* ---------- Entradas ---------- */
.post {
	position: relative;
	padding: 18px 25px 30px 45px;
	border-bottom: 1px solid #dfe0c3;
	background: url(img/posttop.jpg) no-repeat top left;
}

.post.first { padding-top: 40px; background-image: none; }

.post .comments-bubble {
	position: absolute;
	top: 27px;
	left: -22px;
	min-width: 60px;
	padding: 1px 21px 9px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 36px;
	line-height: 1.5;
	text-align: center;
	background: url(img/comments.jpg) no-repeat center center;
}

.post.first .comments-bubble { top: 53px; }

.post .comments-bubble a { color: #000; text-decoration: none; }

.entry-title {
	margin: 12px 0 7px;
	font-size: 32px;
	line-height: 1.3;
	color: #5a5a5a;
}

.entry-title a { color: #5a5a5a; text-decoration: none; }
.entry-title a:hover { color: #8cb203; }

.postmetadata { margin: 0 0 0 0; color: #8697a0; }
.postmetadata a { color: #8697a0; text-decoration: none; }

.postmetadata span {
	display: inline-block;
	margin-right: 10px;
	padding-left: 24px;
	background-repeat: no-repeat;
	background-position: left center;
}

.postmetadata .date     { background-image: url(img/icons/clock.png); }
.postmetadata .author   { background-image: url(img/icons/cog.png); }
.postmetadata .category { background-image: url(img/icons/folder.png); }

.entry { position: relative; }
.entry p { margin: 1.4em 0; line-height: 1.7; }
.entry img { padding: 5px; background: #dddfc0; }
.entry img.wp-smiley, .entry img.emoji { padding: 0; background: none; }

.entry .alignleft  { float: left;  margin: 10px 15px 10px 0; }
.entry .alignright { float: right; margin: 10px 0 10px 15px; }
.entry .aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.entry::after { content: ""; display: table; clear: both; }

.entry figure { margin: 1.4em 0; max-width: 100%; }
.entry figcaption, .wp-caption-text { font-size: 12px; text-align: center; color: #888; }
.wp-caption { max-width: 100%; }

/* Vídeos de YouTube a ancho completo */
.entry iframe, .entry embed, .entry object, .entry video { max-width: 100%; }
.entry .wp-block-embed__wrapper,
.entry .video-wrap { position: relative; aspect-ratio: 16 / 9; }
.entry .wp-block-embed__wrapper iframe,
.entry .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.entry blockquote { color: #666; font-style: italic; margin: 1.4em 20px; }

.entry table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.entry th, .entry td { border: 1px solid #b4b69c; padding: 3px 5px; }
.entry th { background: #dee0c2; }

.more { text-align: right; }
.more a {
	padding-right: 25px;
	text-decoration: none;
	background: url(img/icons/image_next.png) no-repeat right center;
}

.tags {
	padding-left: 25px;
	background: url(img/icons/tag.png) no-repeat left center;
}
.tags a { text-decoration: none; }

.page-header { padding: 30px 25px 0 45px; }
.page-header h1 { font-size: 22px; font-weight: bold; }

/* ---------- Paginación ---------- */
.pagination {
	display: flex;
	justify-content: space-between;
	padding: 20px 25px 0 45px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 16px;
}
.pagination a { text-decoration: none; }

/* ---------- Barra lateral ---------- */
#sidebar .subscribe {
	display: block;
	width: 247px;
	height: 73px;
	margin-left: 17px;
	overflow: hidden;
	text-indent: -9999px;
	background: url(img/subscribe.jpg) no-repeat top left;
}

.search-form { display: flex; gap: 4px; margin: 15px 10px 20px; }

.search-form .search-field {
	flex: 1;
	height: 32px;
	padding: 4px 6px;
	border: 1px solid #ebecd5;
	color: #777;
	font-size: 14px;
	background: #fff;
}

.search-form .search-submit {
	width: 40px;
	height: 32px;
	border: 0;
	cursor: pointer;
	text-indent: -9999px;
	overflow: hidden;
	background: url(img/submit.jpg) no-repeat center center;
}

#widgets { padding-left: 20px; }

.widget {
	position: relative;
	width: 225px;
	margin: 0 0 30px 5px;
	padding-bottom: 12px;
	border: 1px solid #dfe0c3;
	background: url(img/cattopleft.jpg) no-repeat top left;
}

.widget::after {
	content: "";
	position: absolute;
	right: 0; bottom: 0;
	width: 225px; height: 29px;
	z-index: 0;
	pointer-events: none;
	background: url(img/catbotright.jpg) no-repeat bottom right;
}

.widget .widget-title {
	margin: 0;
	padding: 8px 10px 4px 20px;
	font-size: 24px;
	color: #8a8c6b;
	background: url(img/widgettitle.jpg) no-repeat bottom center;
}

.widget ul { position: relative; z-index: 1; margin: 10px 10px 0 25px; padding: 0; list-style: none; }
.widget li { margin: 7px 0; font-size: 12px; color: #6a6a6a; }
.widget li ul { margin: 0 0 0 15px; }
.widget a { color: #6a6a6a; text-decoration: none; }
.widget a:hover { color: #8cb203; }
.widget .textwidget, .widget > p, .widget > div:not(.widget-title) {
	position: relative; z-index: 1; margin: 10px 10px 0 25px;
}
.widget select { max-width: 90%; margin: 10px 0 0 20px; }

/* ---------- Comentarios ---------- */
#comments { padding: 10px 25px 20px 45px; }
#comments h2, #comments h3 { font-size: 16px; }
.comment-list { margin: 5px 0 30px; padding: 0; list-style: none; border-top: 1px solid #dfe0c3; }
.comment-list li { padding: 10px; margin: 5px 0; list-style: none; }
.comment-list li:nth-child(even) { background: #e5e6c6; }
.comment-list .bypostauthor { background: #d7d8bf; }
.comment-meta { font-size: 12px; }
.comment-author .avatar { float: left; margin: 0 10px 0 0; }
#respond textarea, #respond input[type=text], #respond input[type=email], #respond input[type=url] {
	width: 100%; padding: 6px; font-size: 15px; border: 1px solid #ccc;
}
#respond .submit { border: 1px solid #9e9e9e; background: #ededed; padding: 6px 12px; cursor: pointer; }

/* ---------- Pie ---------- */
#footer {
	position: relative;
	height: 186px;
	margin-top: -50px;
	background: url(img/footer.jpg) no-repeat bottom center;
}

#footer p {
	position: absolute;
	bottom: 0;
	left: 20px;
	margin: 0 0 8px;
	color: #999;
	font-size: 12px;
}

/* ---------- Galerías ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.gallery-item { margin: 0; }
.gallery img, .wp-block-gallery img { padding: 3px; }

/* ---------- Móvil ---------- */
@media (max-width: 860px) {
	body { background-image: none; }

	#head { background-position: right top; min-height: 0; padding-bottom: 10px; }

	.site-title { padding: 15px 15px 0; }
	.site-title img { max-width: 240px; }

	.menu-toggle {
		display: inline-block;
		margin: 10px 15px 0;
		padding: 6px 12px;
		border: 1px solid #555;
		background: #111;
		color: #fff;
		font-size: 15px;
		cursor: pointer;
	}

	#nav ul { display: none; padding: 0 15px 5px; }
	#nav.is-open ul { display: block; }
	#nav li { display: block; padding: 0; background: none; }
	#nav a { padding: 8px 0; }
	#nav a:hover, #nav .current-menu-item > a, #nav .current_page_item > a { background: none; }

	#main { display: block; background-image: none; }
	#content, #sidebar { width: auto; }

	.post, .post.first { padding: 20px 15px 25px; background-image: none; }
	.post .comments-bubble { display: none; }
	.entry-title { font-size: 24px; }

	.page-header, .pagination, #comments { padding-left: 15px; padding-right: 15px; }

	#sidebar { border-top: 1px solid #dfe0c3; padding-top: 10px; }
	#sidebar .subscribe { margin-left: 0; }
	#widgets { padding: 0 15px; }
	.widget { width: auto; margin-left: 0; }
	.widget::after { width: 100%; }

	#footer { height: auto; margin: 0; padding: 120px 0 0; background-color: #f4f5de; background-size: contain; }
	#footer p { position: static; padding: 0 15px 10px; }
}
