/*
Theme Name: Pozirk Games Responsive
Theme URI: https://pozirk.com/
Author: Igor Lukyanov
Author URI: https://inside.pozirk.com/
Description: A responsive, SEO-friendly Pozirk Games theme with modern design
Version: 1.0
Text Domain: pozirk
Tags: pozirk, games, responsive
*/

/* CSS Variables for consistent theming */
:root {
	--primary-color: #2c5f4f;
	--secondary-color: #d4a574;
	--text-color: #2d2d2d;
	--text-light: #6b6b6b;
	--a-color: #000077;
	--bg-color: #a5e5ff;
	--comment-bg-color: #fafafa;
	--white: #ffffff;
	--border-color: #e8e8e6;
	--header-height: 80px;
	--footer-height: 60px;
	--content-max-width: 1200px;
	--sidebar-width: 300px;
	--border-radius: 16px;
	--transition-speed: 0.3s;
}

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 18px;
	line-height: 1.3;
	color: var(--text-color);
	background-color: var(--bg-color);
	background-attachment:fixed;
	background-image:url('sky.png');
	background-repeat:repeat-x;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: Verdana, Geneva, sans-serif;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 1rem;
	color: var(--text-color);
	text-align:right;
	text-transform:uppercase;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* Page Header with Back Button */
.page-header-with-back {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 1rem;
}

.page-header-with-back h1,
.page-header-with-back h2 {
	margin-bottom: 0;
	flex: 1;
}

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

a:hover {
	text-decoration: underline;
}

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

/* Container */
.container {
	max-width: var(--content-max-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* Header Styles */
.site-header {
	background: var(--white);
	height: var(--header-height);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: all var(--transition-speed);
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
	max-width: var(--content-max-width);
	margin: 0 auto;
	padding: 0 20px;
}

.site-title {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--a-color);
	text-decoration: none;
	letter-spacing: -0.5px;
}

.site-title:hover {
	text-decoration: underline;
}

/* Navigation Menu */
.main-navigation {
	display: flex;
	align-items: center;
	text-transform:uppercase;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 2rem;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	font-family: Verdana, Geneva, sans-serif;
	font-weight: 500;
	color: var(--a-color);
	text-decoration: none;
	padding: 0.5rem 0;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
	text-decoration: underline;
}

/* Mobile Menu Toggle */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 1001;
}

.menu-toggle span {
	display: block;
	width: 25px;
	height: 2px;
	background: var(--text-color);
	margin: 5px 0;
	transition: all var(--transition-speed);
}

.menu-toggle.active .line1 {
	transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .line2 {
	opacity: 0;
}

.menu-toggle.active .line3 {
	transform: rotate(45deg) translate(-5px, -6px);
}

/* Main Content Area */
.site-content {
	min-height: calc(100vh - var(--header-height) - var(--footer-height));
	padding: 20px 0;
}

/* Home Page Layout (with sidebar) */
.home-layout {
	display: grid;
	grid-template-columns: 1fr var(--sidebar-width);
	gap: 20px;
	max-width: var(--content-max-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* Full Width Layout (no sidebar) */
.full-width-layout {
	max-width: var(--content-max-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* Content Block */
.content-block {
	background: var(--white);
	border-radius: var(--border-radius);
	padding: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	animation: fadeInUp 0.6s ease-out;
}

.content-block + .content-block {
	margin-top: 20px;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.content-block h1:first-child,
.content-block h2:first-child {
	margin-top: 0;
}

.content-block p {
	margin-bottom: 1.5rem;
}

/* Entry Meta */
.entry-meta {
	color: var(--text-light);
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.entry-header .entry-meta {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border-color);
}

/* Post Thumbnail */
.post-thumbnail {
	margin-bottom: 2rem;
}

.post-thumbnail img {
	border-radius: 12px;
	width: 100%;
}

/* Entry Tags */
.entry-tags {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-color);
}

/* Read More Link */
.read-more-link {
	font-weight: 600;
}

/* Sidebar */
.sidebar {
	background: var(--white);
	border-radius: var(--border-radius);
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	height: fit-content;
	position: sticky;
	top: calc(var(--header-height) + 20px);
}

.sidebar h3 {
	font-size: 1.3rem;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--border-color);
}

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

.sidebar li {
	margin-bottom: 0.8rem;
}

.sidebar a {
	color: var(--a-color);
}

.sidebar a:hover {
	text-decoration: underline;
}

/* Footer */
.site-footer {
}

.footer-menu {
	text-align: center;
		text-transform:uppercase;
}

.footer-menu ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 2rem;
}

.footer-menu a {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 0.9rem;
	color: var(--a-color);
	text-decoration: none;
}

.footer-menu a:hover {
	text-decoration: underline;
}

/* Comments Section */
.comments-area {
}

.comments-title {
	font-size: 1.8rem;
	margin-bottom: 2rem;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: var(--comment-bg-color);
	border-radius: 12px;
	border-left: 3px solid var(--secondary-color);
}

.comment::marker
{
	content:none;
}

.comment-author {
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 0.3rem;
		gap:0.3rem;
		display:flex;
		align-items:center;
}

.comment-meta {
	font-size: 0.85rem;
	color: var(--text-light);
	margin-bottom: 1rem;
		font-style: italic;
}

.comment-content p {
	margin-bottom: 0.5rem;
}

.comment-reply-link {
	font-size: 0.9rem;
	color: var(--a-color);
	font-weight: 500;
}

.comment-reply-link:hover {
	text-decoration: underline;
}

/* Comment Form */
.comment-respond {
}

.comment-reply-title {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}

.comment-form {
	display: grid;
}

.comment-form-author,
.comment-form-email,
.comment-form-comment {
	display: flex;
	flex-direction: column;
}

.comment-form label {
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--text-color);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
	padding: 12px 16px;
	border: 2px solid var(--border-color);
	border-radius: 8px;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 1rem;
	transition: border-color var(--transition-speed);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--primary-color);
}

.comment-form textarea {
	min-height: 150px;
	resize: vertical;
}

.form-submit {
}

button {
	background: var(--primary-color);
	color: var(--white);
	border: none;
	padding: 14px 32px;
	border-radius: 8px;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition-speed);
}

button:hover {
	background: var(--secondary-color);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* AJAX Loading State */
.comment-form.loading {
	opacity: 0.6;
	pointer-events: none;
}

.ajax-message {
	padding: 12px 20px;
	border-radius: 8px;
	margin-top: 1rem;
	font-weight: 500;
	animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ajax-message.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.ajax-message.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 968px) {
	.home-layout {
		grid-template-columns: 1fr;
	}
	
	.sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
	:root {
		--header-height: 70px;
	}
	
	body {
		font-size: 16px;
	}
	
	h1 { font-size: 2rem; }
	h2 { font-size: 1.6rem; }
	h3 { font-size: 1.4rem; }
	
	.site-title {
		font-size: 1.5rem;
	}
	
	/* Mobile Menu */
	.menu-toggle {
		display: block;
	}
	
	.main-navigation {
		position: fixed;
		top: 0;
		right: -100%;
		width: 280px;
		height: 100vh;
		background: var(--white);
		box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
		transition: right var(--transition-speed);
		overflow-y: auto;
	}
	
	.main-navigation.active {
		right: 0;
	}
	
	.main-navigation ul {
		flex-direction: column;
		gap: 0;
		padding: 80px 30px 30px;
	}
	
	.main-navigation li {
		width: 100%;
		border-bottom: 1px solid var(--border-color);
	}
	
	.main-navigation a {
		display: block;
		padding: 1rem 0;
		font-size: 1.1rem;
	}
	
	.content-block {
		padding: 30px 25px;
	}
	
	.footer-menu ul {
		flex-direction: column;
		gap: 1rem;
	}
}

@media (max-width: 480px) {
	.content-block {
		padding: 25px 20px;
		border-radius: 12px;
	}
	
	.comment {
		padding: 1rem;
	}
}

/* Utility Classes */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.alignleft {
	float: left;
	margin-right: 1.5rem;
}

.alignright {
	float: right;
	margin-left: 1.5rem;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* Youtube */
iframe, embed, object
{
	max-width: 100%;
}

.widget
{
	margin-bottom:20px;
}

.copyright
{
	text-align:center;
	font-size:14px;
	padding-top:9px;
}

.banner
{
	text-align:center;
	overflow:hidden;
	background-color:#eeee;
	margin-left:-20px;
	margin-right:-20px;
	border:1px solid black;
}

.banner-main
{
	text-align:center;
	overflow:hidden;
	background-color:#eeee;
	margin-left:25px;
	margin-right:25px;
	border:1px solid black;
}

.main-games
{
	display:flex;
	flex-wrap:wrap;
	align-content:space-between;
	text-align:center;
	width:100%;
}

.main-game
{
	padding:5px;
	flex:1 1 150px;
}