/*
Theme Name: OgiueChika
Theme URI: https://ogiuechika.antoniogmportfolio.online
Description: Tema clasico de WordPress para el blog de OgiueChika. Reproduce la identidad visual de la web principal: fondo azul oscuro, acentos cyan/violeta, tipografias Space Grotesk y DM Sans.
Author: OgiueChika
Author URI: https://ogiuechika.antoniogmportfolio.online
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ogiuechika
*/

:root {
	color-scheme: dark;
	--bg: #06101d;
	--bg-soft: #071624;
	--bg-card: #0b2035;
	--panel: rgba(10, 28, 48, .66);
	--border-glass: rgba(148, 222, 255, .14);
	--border-soft: rgba(255, 255, 255, .12);
	--text: #eef8ff;
	--muted: #94a3b8;
	--faint: #64748b;
	--cyan: #22d3ee;
	--cyan-bright: #63e6ff;
	--cyan-dark: #67e8f9;
	--violet: #9c7bff;
	--font-sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

::selection { background: var(--cyan); color: var(--bg); }

/* Barra de scroll con la identidad de la web: pulgar cyan degradado sobre carril azul oscuro. */
* {
	scrollbar-width: auto;
	scrollbar-color: var(--cyan) #0b1d31;
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0b1d31; }
::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--cyan-dark), var(--cyan));
	border-radius: 999px;
	border: 3px solid #0b1d31;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #a5f3fc, var(--cyan-dark)); }
::-webkit-scrollbar-corner { background: #0b1d31; }

img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; transition: color .2s ease; }
a:hover { color: #fff; }

.font-display,
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: #fff;
	margin: 0;
}

.grid-glow {
	background-image: linear-gradient(rgba(77, 192, 255, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(77, 192, 255, .06) 1px, transparent 1px);
	background-size: 56px 56px;
}

.text-gradient {
	background: linear-gradient(110deg, #f5fbff 15%, #63e6ff 58%, #9c7bff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.glass {
	background: var(--panel);
	border: 1px solid var(--border-glass);
	box-shadow: 0 20px 80px rgba(0, 0, 0, .22);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	padding: 16px 16px 0;
	pointer-events: none;
}

@media (min-width: 640px) {
	.site-header { padding-left: 24px; padding-right: 24px; }
}

.site-header-inner {
	max-width: 80rem;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 1rem;
	background: rgba(7, 21, 35, .55);
	box-shadow: 0 25px 50px -12px rgba(8, 47, 73, .3);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	pointer-events: auto;
}

@media (min-width: 640px) {
	.site-header-inner { padding-left: 24px; padding-right: 24px; }
}

.site-brand {
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -.02em;
	color: #fff;
	white-space: nowrap;
}
.site-brand span { color: var(--cyan-dark); }
.site-brand .brand-dot { margin-left: 4px; }

.site-nav .site-nav-list {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
}
.site-nav a {
	font-size: .875rem;
	color: #cbd5e1;
	transition: color .2s ease;
}
.site-nav a:hover { color: var(--cyan-dark); }

.site-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch { display: flex; align-items: center; }
.lang-switch a {
	font-size: .75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #94a3b8;
	transition: color .2s ease;
}
.lang-switch a:hover { color: #fff; }

.site-cta {
	display: inline-block;
	background: var(--cyan-dark);
	color: #020617;
	font-weight: 700;
	font-size: .875rem;
	padding: 8px 16px;
	border-radius: .75rem;
	white-space: nowrap;
	transition: background .2s ease;
}
.site-cta:hover { background: #fff; color: #020617; }

.menu-toggle {
	display: none;
	padding: 8px;
	border: 0;
	border-radius: .5rem;
	background: transparent;
	color: #e2e8f0;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}
.menu-toggle:focus-visible { outline: 2px solid var(--cyan-dark); }

.mobile-panel {
	position: absolute;
	top: 64px;
	left: 12px;
	right: 12px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 1rem;
	background: #0b1d31;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .3), 0 8px 10px -6px rgba(0, 0, 0, .3);
}
.mobile-panel[hidden] { display: none; }

.mobile-panel ul,
.mobile-panel .mobile-menu-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
}
.mobile-panel a:not(.site-cta) {
	font-size: .875rem;
	color: #e2e8f0;
	transition: color .2s ease;
}
.mobile-panel a:not(.site-cta):hover { color: var(--cyan-dark); }

.site-cta-block {
	margin-top: 8px;
	padding: 12px 16px;
	text-align: center;
}

@media (max-width: 767px) {
	.site-nav,
	.site-actions { display: none; }
	.menu-toggle { display: inline-flex; }
}

/* ==========================================================================
   Blog hero (archive)
   ========================================================================== */
.blog-hero {
	position: relative;
	z-index: 1;
	padding: 150px 24px 48px;
}

.blog-hero-inner { max-width: 76rem; margin: 0 auto; }

.eyebrow {
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .25em;
	color: var(--cyan);
	margin: 0 0 18px;
}

.blog-hero-title {
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	max-width: 16ch;
}

.blog-hero-sub {
	margin-top: 22px;
	max-width: 40rem;
	color: var(--muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

/* ==========================================================================
   Post list
   ========================================================================== */
.blog-list {
	position: relative;
	z-index: 1;
	padding: 48px 24px 96px;
}

.blog-list-inner { max-width: 76rem; margin: 0 auto; }

.post-featured {
	display: grid;
	gap: 24px;
	border-radius: 1.5rem;
	padding: 22px;
	margin-bottom: 40px;
}
.post-featured .post-thumb { border-radius: 1.1rem; overflow: hidden; }
.post-featured .post-thumb img { width: 100%; display: block; object-fit: cover; }

.post-card-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
}
.post-card-meta .post-cats { color: var(--cyan); }
.post-card-meta .post-cats a { color: var(--cyan); }
.post-card-meta time { color: var(--faint); }

.post-title { margin: 16px 0 0; }
.post-title a { color: #fff; }
.post-title a:hover { color: var(--cyan-bright); }
.post-featured .post-title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); max-width: 22ch; }

.post-excerpt { margin: 14px 0 0; color: var(--muted); max-width: 60ch; }

.read-more {
	display: inline-block;
	margin-top: 22px;
	font-size: .9rem;
	font-weight: 600;
	color: var(--muted);
}
.read-more:hover { color: var(--cyan); }

.post-row {
	border-top: 1px solid rgba(255, 255, 255, .15);
	padding: 26px 2px 26px 0;
}
.post-row:first-of-type { border-top: none; }
.post-row .post-title { font-size: 1.35rem; }
.post-row .post-excerpt { font-size: .95rem; }

.posts-pagination {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 56px;
	flex-wrap: wrap;
}
.posts-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid var(--border-soft);
	color: #cbd5e1;
	font-weight: 600;
	font-size: .9rem;
}
.posts-pagination .page-numbers.current {
	background: var(--cyan);
	border-color: var(--cyan);
	color: #020617;
}
.posts-pagination .page-numbers:hover:not(.current) {
	border-color: var(--cyan);
	color: var(--cyan);
}

/* ==========================================================================
   Single / page
   ========================================================================== */
.single-header, .page-header {
	position: relative;
	z-index: 1;
	padding: 150px 24px 40px;
}
.single-header-inner, .page-header-inner { max-width: 46rem; margin: 0 auto; }

.single-title, .page-title {
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	margin-top: 18px;
}

.single-cover, .page-cover {
	position: relative;
	z-index: 1;
	padding: 0 24px 0;
}
.single-cover-inner, .page-cover-inner {
	max-width: 46rem;
	margin: 0 auto;
	border-radius: 1.5rem;
	overflow: hidden;
	border: 1px solid var(--border-glass);
}
.single-cover img, .page-cover img { width: 100%; display: block; }

.single-content, .page-content {
	position: relative;
	z-index: 1;
	padding: 40px 24px 72px;
}
.entry-content {
	max-width: 46rem;
	margin: 0 auto;
	color: #dbe7f2;
	font-size: 1.05rem;
	line-height: 1.75;
}
.entry-content > * { margin-bottom: 1.4em; }
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 { margin: 1.6em 0 .6em; }
.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.35rem; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--cyan); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .5em; }
.entry-content blockquote {
	margin: 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--cyan);
	color: var(--muted);
	font-style: italic;
}
.entry-content img { border-radius: 1rem; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--faint); text-align: center; margin-top: .6em; }
.entry-content code {
	background: rgba(34, 211, 238, .1);
	color: var(--cyan-bright);
	padding: 2px 7px;
	border-radius: 6px;
	font-size: .9em;
}
.entry-content pre {
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: 1rem;
	padding: 18px;
	overflow-x: auto;
}
.entry-content pre code { background: none; padding: 0; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--border-soft); padding: 10px 14px; text-align: left; }
.entry-content th { background: rgba(255, 255, 255, .04); }
.entry-content .wp-block-image img { border-radius: 1rem; }
.entry-content .alignleft { float: left; margin-right: 1.4em; }
.entry-content .alignright { float: right; margin-left: 1.4em; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }

.single-meta, .page-meta {
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--faint);
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}
.single-meta .post-cats a, .page-meta .post-cats a { color: var(--cyan); }

.post-navigation {
	max-width: 46rem;
	margin: 0 auto;
	padding: 40px 0;
	border-top: 1px solid var(--border-soft);
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.post-navigation .nav-links { display: flex; justify-content: space-between; width: 100%; gap: 20px; }
.post-navigation a { color: var(--muted); font-weight: 600; font-size: .95rem; max-width: 42%; }
.post-navigation a:hover { color: var(--cyan); }
.post-navigation .nav-next { text-align: right; }

/* ==========================================================================
   Search
   ========================================================================== */
.search-form { display: flex; gap: 10px; margin-top: 26px; max-width: 480px; }
.search-form input[type="search"] {
	flex: 1;
	background: rgba(0, 0, 0, .25);
	border: 1px solid var(--border-soft);
	border-radius: 12px;
	color: #fff;
	padding: 12px 16px;
	font-size: 1rem;
	outline: none;
	transition: border-color .2s ease;
}
.search-form input[type="search"]:focus { border-color: var(--cyan); }
.search-form input[type="search"]::placeholder { color: var(--faint); }
.search-form button {
	background: var(--cyan-dark);
	color: #020617;
	border: 0;
	border-radius: 12px;
	padding: 12px 20px;
	font-weight: 700;
	cursor: pointer;
}
.search-form button:hover { background: #fff; }

.no-results {
	position: relative;
	z-index: 1;
	padding: 40px 24px 96px;
}
.no-results-inner { max-width: 40rem; margin: 0 auto; }

/* ==========================================================================
   Error 404
   ========================================================================== */
.error-404 {
	position: relative;
	z-index: 1;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 140px 24px 96px;
}
.error-404-inner { max-width: 40rem; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; }
.error-404-title { font-size: 1.8rem; margin: 10px 0 14px; }
.error-404-sub { color: var(--muted); margin-bottom: 30px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	position: relative;
	z-index: 1;
	border-top: 1px solid rgba(255, 255, 255, .1);
	background: rgba(4, 11, 20, .8);
	padding: 48px 24px;
}

.footer-inner { max-width: 80rem; margin: 0 auto; }

.footer-main {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	text-align: center;
}

.footer-brand .site-brand { font-size: 1.25rem; }
.footer-tagline {
	margin: 8px 0 0;
	max-width: 20rem;
	color: var(--muted);
	font-size: .875rem;
	line-height: 1.5;
}

.footer-social-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 999px;
	background: rgba(0, 0, 0, .2);
	color: #94a3b8;
	transition: transform .3s ease, border-color .3s ease, background-color .3s ease, color .3s ease;
}
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }
.social-icon:hover { transform: scale(1.1); }
.social-icon:active { transform: scale(.9); }

.social-icon--youtube:hover { border-color: rgba(103, 232, 249, .6); background-color: rgba(34, 211, 238, .1); color: #cffafe; }
.social-icon--twitch:hover { border-color: rgba(167, 139, 250, .6); background-color: rgba(139, 92, 246, .1); color: #ddd6fe; }
.social-icon--tiktok:hover { border-color: rgba(244, 114, 182, .6); background-color: rgba(236, 72, 153, .1); color: #fbcfe8; }
.social-icon--instagram:hover { border-color: rgba(232, 121, 249, .6); background-color: rgba(217, 70, 239, .1); color: #f5d0fe; }

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}
.footer-legal a { font-size: .75rem; color: #475569; transition: color .2s ease; }
.footer-legal a:hover { color: var(--cyan); }

.footer-copy {
	margin: 40px 0 0;
	font-size: .75rem;
	color: #334155;
	text-align: center;
}

@media (min-width: 768px) {
	.footer-main {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		text-align: left;
	}
	.footer-social-links,
	.footer-legal { justify-content: flex-start; }
	.footer-copy { text-align: left; }
}

@media (max-width: 760px) {
	.blog-hero { padding-top: 130px; }
	.single-header, .page-header { padding-top: 130px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
