/*
Theme Name: Avrora News
Theme URI: https://www.avroranews.com/
Author: Avrora News
Author URI: https://www.avroranews.com/
Description: Avrora News saytı üçün fərdi hazırlanmış mövzu. Ana mövzu və ya plagin tələb etmir. Bütün ayarlar: Görünüş → Fərdiləşdir → Avrora ayarları.
Version: 2.1.0
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Update URI: false
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avroranews
*/

/* ---------- Tokens ---------- */
:root {
	--av-accent: #d32f2f;
	--av-ink: #1c1d21;
	--av-ink-soft: #55585f;
	--av-muted: #8a8d94;
	--av-line: #e7e7ea;
	--av-bg: #f4f4f6;
	--av-card: #ffffff;
	--av-header: #ffffff;
	--av-title-color: #1c1d21;
	--av-header-pad: 14px;
	--av-logo-h: 70px;
	--av-nav-bg: #1c1d21;
	--av-nav-text: #ffffff;
	--av-nav-hover: #d32f2f;
	--av-nav-border: #d32f2f;
	--av-cat-bg: #d32f2f;
	--av-cat-text: #ffffff;
	--av-card-title: #1c1d21;
	--av-footer-bg: #1c1d21;
	--av-footer-text: #b9bac1;
	--av-cols: 3;
	--av-slide-ratio: 16 / 10;
	--av-radius: 10px;
	--av-shadow: 0 1px 2px rgba(20, 20, 30, .06), 0 4px 14px rgba(20, 20, 30, .06);
	--av-shadow-hover: 0 2px 4px rgba(20, 20, 30, .08), 0 10px 26px rgba(20, 20, 30, .12);
	--av-wrap: 1200px;
	/* Arial: system font with full Azerbaijani alphabet (Ə ə Ö ö Ç ç Ş ş Ğ ğ I ı İ Ü ü). Nothing is downloaded. */
	--av-sans: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", "Noto Sans", sans-serif;
	--av-serif: var(--av-sans);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--av-bg);
	color: var(--av-ink);
	font: 16px/1.65 var(--av-sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, iframe, embed, object { max-width: 100%; height: auto; }
a { color: var(--av-accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: var(--av-serif); line-height: 1.25; margin: 0 0 .6em; color: var(--av-ink); }
p { margin: 0 0 1.1em; }
button, input, select, textarea { font: inherit; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: #fff; clip: auto !important; clip-path: none; color: var(--av-ink); display: block;
	height: auto; left: 8px; padding: 12px 20px; top: 8px; width: auto; z-index: 100000;
}
.av-wrap { max-width: var(--av-wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.av-header { background: var(--av-header); border-bottom: 1px solid var(--av-line); }
.av-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: var(--av-header-pad) 16px; }
.av-logo-center .av-header-inner { justify-content: center; text-align: center; }
.av-logo-center .av-branding { display: flex; flex-direction: column; align-items: center; }
.av-branding { min-width: 0; }
.av-branding .custom-logo-link { display: inline-block; line-height: 0; }
.av-branding .custom-logo { max-height: var(--av-logo-h); width: auto; display: block; }
.av-site-title { font-family: var(--av-serif); font-size: clamp(26px, 4vw, 40px); font-weight: 700; margin: 0; line-height: 1.1; letter-spacing: 0; }
.av-site-title a { color: var(--av-title-color); text-decoration: none; }
.av-site-desc { margin: 4px 0 0; color: var(--av-muted); font-size: 14px; }
.av-header-tools { display: flex; align-items: center; gap: 8px; }
.av-search-form { display: flex; align-items: center; background: var(--av-bg); border: 1px solid var(--av-line); border-radius: 999px; overflow: hidden; }
.av-search-form input[type="search"] { border: 0; background: transparent; padding: 8px 14px; width: 200px; outline: none; color: var(--av-ink); }
.av-search-form button { border: 0; background: transparent; padding: 8px 12px; cursor: pointer; color: var(--av-ink-soft); line-height: 0; }
.av-search-form button:hover { color: var(--av-accent); }

/* ---------- Navigation ---------- */
.av-nav { background: var(--av-nav-bg); border-bottom: 3px solid var(--av-nav-border); position: relative; z-index: 50; }
.av-nav.is-sticky { position: sticky; top: 0; }
.admin-bar .av-nav.is-sticky { top: 32px; }
.av-nav .av-wrap { display: flex; align-items: center; gap: 12px; }
.av-nav .av-menu { flex: 1; }
.av-menu-center .av-menu { justify-content: center; }
.av-nav-search { margin-left: auto; position: relative; }
.av-nav-search .av-search-toggle { border: 0; background: transparent; color: var(--av-nav-text); padding: 10px 6px; cursor: pointer; line-height: 0; }
.av-nav-search .av-search-toggle:hover { color: var(--av-nav-hover); }
.av-nav-search .av-search-form { position: absolute; right: 0; top: calc(100% + 6px); width: 300px; background: #fff; box-shadow: var(--av-shadow-hover); display: none; }
.av-nav-search.is-open .av-search-form { display: flex; }
.av-nav-search .av-search-form input[type="search"] { width: 100%; }
.av-menu-toggle {
	display: none; align-items: center; gap: 8px; border: 0; background: transparent; padding: 12px 0;
	font-weight: 600; color: var(--av-nav-text); cursor: pointer;
}
.av-menu-toggle .bars, .av-menu-toggle .bars::before, .av-menu-toggle .bars::after {
	display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: "";
}
.av-menu-toggle .bars::before { position: absolute; top: -6px; }
.av-menu-toggle .bars::after { position: absolute; top: 6px; }
.av-menu, .av-menu ul { list-style: none; margin: 0; padding: 0; }
.av-menu { display: flex; flex-wrap: wrap; }
.av-menu > li { position: relative; }
.av-menu a { display: block; padding: 13px 16px; color: var(--av-nav-text); font-weight: 600; font-size: 15px; text-decoration: none; }
.av-menu > li > a:hover, .av-menu > li.current-menu-item > a, .av-menu > li.current-menu-ancestor > a, .av-menu > li.current-cat > a { color: var(--av-nav-hover); }
.av-menu .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 220px; background: #fff; box-shadow: var(--av-shadow-hover);
	border-top: 3px solid var(--av-nav-border); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.av-menu .sub-menu .sub-menu { left: 100%; top: -3px; }
.av-menu li:hover > .sub-menu, .av-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.av-menu .sub-menu a { color: var(--av-ink); font-weight: 500; padding: 10px 16px; border-bottom: 1px solid var(--av-line); }
.av-menu .sub-menu a:hover { color: var(--av-accent); background: var(--av-bg); }

/* ---------- Main ---------- */
.av-main { padding: 28px 0 48px; }
.av-section-title {
	display: flex; align-items: center; gap: 14px; font-family: var(--av-sans); font-size: 15px; font-weight: 800;
	text-transform: uppercase; letter-spacing: .6px; margin: 0 0 18px; color: var(--av-ink);
}
.av-section-title::before { content: ""; width: 5px; height: 20px; background: var(--av-accent); border-radius: 2px; }
.av-section-title::after { content: ""; flex: 1; height: 1px; background: var(--av-line); }

/* ---------- Sliders (side by side) ---------- */
.av-sliders { display: grid; grid-template-columns: repeat(var(--av-slider-cols, 2), minmax(0, 1fr)); gap: 20px; margin-bottom: 36px; }
.av-slider { position: relative; border-radius: var(--av-radius); overflow: hidden; background: #111; box-shadow: var(--av-shadow); }
.av-slides { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.av-viewport { overflow: hidden; }
.av-slide { position: relative; flex: 0 0 100%; aspect-ratio: var(--av-slide-ratio); min-height: 240px; overflow: hidden; }
.av-slide-img, .av-slide .av-noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.82) 100%); }
.av-slide-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 26px 34px; color: #fff; }
.av-slide-title { font-size: clamp(20px, 2.1vw, 28px); margin: 8px 0 8px; color: #fff; }
.av-slide-title a { color: #fff; text-decoration: none; }
.av-slide-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.av-slide .av-meta { color: rgba(255,255,255,.85); }
.av-slider-btn {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%;
	border: 0; background: rgba(255,255,255,.88); color: var(--av-ink); cursor: pointer; display: grid; place-items: center;
	box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: background .15s;
}
.av-slider-btn:hover { background: #fff; color: var(--av-accent); }
.av-slider-prev { left: 14px; }
.av-slider-next { right: 14px; }
.av-dots { position: absolute; right: 20px; bottom: 14px; z-index: 3; display: flex; gap: 8px; }
.av-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: .2s; }
.av-dots button[aria-current="true"] { background: #fff; width: 26px; border-radius: 6px; }
.av-slider.is-single .av-slider-btn, .av-slider.is-single .av-dots { display: none; }

.av-slider .av-dots button[hidden] { display: none; }
.av-slider.is-static .av-slider-btn, .av-slider.is-static .av-dots { display: none; }

/* ---------- Badges & meta ---------- */
.av-cat { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.av-cat a {
	display: inline-block; background: var(--av-cat-bg); color: var(--av-cat-text); font-size: 11px; font-weight: 700; text-transform: uppercase;
	letter-spacing: .5px; padding: 3px 9px; border-radius: 4px; text-decoration: none; line-height: 1.6;
}
.av-cat a:hover { filter: brightness(.9); text-decoration: none; }
.av-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--av-muted); }
.av-meta a { color: inherit; }
.av-meta svg { width: 13px; height: 13px; vertical-align: -1px; margin-right: 4px; opacity: .8; }

/* ---------- Card grid ---------- */
.av-grid { display: grid; grid-template-columns: repeat(var(--av-cols), minmax(0, 1fr)); gap: 24px; }
.av-card {
	display: flex; flex-direction: column; background: var(--av-card); border-radius: var(--av-radius); overflow: hidden;
	box-shadow: var(--av-shadow); transition: box-shadow .2s, transform .2s;
}
.av-card:hover { box-shadow: var(--av-shadow-hover); transform: translateY(-2px); }
.av-card-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.av-card-thumb img, .av-card-thumb .av-noimg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.av-card:hover .av-card-thumb img { transform: scale(1.04); }
.av-card-thumb .av-cat { position: absolute; left: 12px; top: 12px; }
.av-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.av-card-title { font-size: 19px; margin: 0; }
.av-card-title a { color: var(--av-card-title); text-decoration: none; }
.av-card-title a:hover { color: var(--av-accent); }
.av-card-excerpt { color: var(--av-ink-soft); font-size: 14.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.av-card-body .av-meta { margin-top: auto; padding-top: 6px; }
.av-card.sticky { outline: 2px solid var(--av-accent); outline-offset: -2px; }

/* Placeholder for posts without an image */
.av-noimg {
	display: grid; place-items: center; background: linear-gradient(135deg, var(--av-ink) 0%, #3a3d46 100%);
	color: rgba(255,255,255,.18); font-family: var(--av-serif); font-weight: 700; font-size: 64px; letter-spacing: 2px;
}

/* ---------- Load more / pagination ---------- */
.av-more-wrap { text-align: center; margin-top: 34px; }
.av-more {
	display: inline-flex; align-items: center; gap: 10px; background: var(--av-accent); color: #fff; border: 0; border-radius: 999px;
	padding: 12px 30px; font-weight: 700; cursor: pointer; font-size: 15px; transition: filter .15s;
}
.av-more:hover { filter: brightness(.92); text-decoration: none; color: #fff; }
.av-more[disabled] { opacity: .65; cursor: wait; }
.av-pagination { margin-top: 30px; }
.av-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.av-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px;
	background: #fff; color: var(--av-ink); box-shadow: var(--av-shadow); font-weight: 600; text-decoration: none;
}
.av-pagination .page-numbers.current, .av-pagination a.page-numbers:hover { background: var(--av-accent); color: #fff; }
.js .av-has-more .av-pagination { display: none; }

/* ---------- Archive header ---------- */
.av-archive-head { margin-bottom: 24px; }
.av-archive-head h1 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; }
.av-archive-head .av-archive-desc { color: var(--av-ink-soft); }

/* ---------- Single ---------- */
.av-single { max-width: 820px; margin: 0 auto; }
.av-article { background: var(--av-card); border-radius: var(--av-radius); box-shadow: var(--av-shadow); overflow: hidden; }
.av-article-head { padding: 30px 36px 10px; }
.av-article-title { font-size: clamp(26px, 3.6vw, 40px); margin: 12px 0 12px; }
.av-article-thumb { margin: 10px 0 0; }
.av-article-thumb img { width: 100%; display: block; }
.av-article-thumb figcaption { font-size: 13px; color: var(--av-muted); padding: 8px 36px 0; }
.av-content { padding: 26px 36px 30px; font-size: 17.5px; line-height: 1.8; overflow-wrap: break-word; }
.av-content > *:last-child { margin-bottom: 0; }
.av-content h2 { font-size: 26px; margin-top: 1.4em; }
.av-content h3 { font-size: 22px; margin-top: 1.3em; }
.av-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--av-accent); font-family: var(--av-serif); font-size: 1.1em; color: var(--av-ink-soft); }
.av-content figure { margin: 1.5em 0; }
.av-content figcaption, .wp-caption-text { font-size: 13px; color: var(--av-muted); text-align: center; }
.av-content table { width: 100%; border-collapse: collapse; }
.av-content td, .av-content th { border: 1px solid var(--av-line); padding: 8px 10px; }
.av-content pre { background: var(--av-bg); padding: 14px; overflow: auto; border-radius: 6px; }
.av-content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.av-content .alignright { float: right; margin: .3em 0 1em 1.4em; }
.av-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.av-content::after { content: ""; display: table; clear: both; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-item { margin: 0; }
.gallery-icon img { width: 100%; height: auto; }
.av-article-foot { padding: 0 36px 30px; display: flex; flex-direction: column; gap: 16px; }
.av-tags a { display: inline-block; background: var(--av-bg); color: var(--av-ink-soft); padding: 4px 10px; border-radius: 4px; font-size: 13px; margin: 0 4px 6px 0; }
.av-tags a:hover { background: var(--av-accent); color: #fff; text-decoration: none; }
.av-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--av-line); padding-top: 16px; }
.av-share strong { font-size: 14px; margin-right: 4px; }
.av-share a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.av-share a:hover { filter: brightness(.9); text-decoration: none; }
.av-share svg { width: 15px; height: 15px; fill: currentColor; }
.av-share .fb { background: #1877f2; } .av-share .x { background: #111; } .av-share .wa { background: #25d366; } .av-share .tg { background: #229ed9; }
.page-links { padding: 0 36px 20px; }
.av-related { margin-top: 40px; }
.av-related .av-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.av-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.av-postnav a { display: block; background: #fff; border-radius: var(--av-radius); box-shadow: var(--av-shadow); padding: 14px 18px; color: var(--av-ink); text-decoration: none; height: 100%; }
.av-postnav a:hover { color: var(--av-accent); }
.av-postnav small { display: block; color: var(--av-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.av-postnav .next { text-align: right; }

/* ---------- Comments ---------- */
.av-comments { background: var(--av-card); border-radius: var(--av-radius); box-shadow: var(--av-shadow); padding: 26px 36px; margin-top: 30px; }
.av-comments ol, .av-comments ul { list-style: none; padding: 0; margin: 0; }
.av-comments .children { margin-left: 28px; }
.av-comments .comment-body { border-bottom: 1px solid var(--av-line); padding: 16px 0; }
.av-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.av-comments .comment-author img { border-radius: 50%; }
.av-comments .comment-metadata { font-size: 12px; color: var(--av-muted); margin: 2px 0 8px; }
.av-comments .comment-metadata a { color: inherit; }
.av-comments .reply a { font-size: 13px; font-weight: 600; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--av-line); border-radius: 6px; background: #fff;
}
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form .submit, .av-btn { background: var(--av-accent); color: #fff; border: 0; border-radius: 6px; padding: 10px 22px; font-weight: 700; cursor: pointer; }

/* ---------- Footer ---------- */
.av-footer { background: var(--av-footer-bg); color: var(--av-footer-text); font-size: 14px; }
.av-footer a { color: #fff; }
.av-footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding: 40px 16px 10px; }
.av-footer-widgets .widget-title { color: #fff; font-family: var(--av-sans); font-size: 15px; text-transform: uppercase; letter-spacing: .5px; }
.av-footer-widgets ul { list-style: none; padding: 0; margin: 0; }
.av-footer-widgets li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.av-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.av-footer-bottom .av-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 18px; }
.av-totop {
	position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--av-accent);
	color: #fff; cursor: pointer; box-shadow: var(--av-shadow-hover); opacity: 0; visibility: hidden; transition: .2s; z-index: 60;
	display: grid; place-items: center;
}
.av-totop.is-visible { opacity: 1; visibility: visible; }

/* ---------- Misc ---------- */
.av-empty { background: #fff; border-radius: var(--av-radius); box-shadow: var(--av-shadow); padding: 40px; text-align: center; }
.av-empty .av-search-form { max-width: 420px; margin: 18px auto 0; }
.av-empty .av-search-form input[type="search"] { width: 100%; }
.sticky, .bypostauthor, .gallery-caption { }
.alignwide, .alignfull { max-width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.av-grid, .av-related .av-grid { grid-template-columns: repeat(min(var(--av-cols), 2), minmax(0, 1fr)); }
}
@media (max-width: 782px) {
	.admin-bar .av-nav.is-sticky { top: 46px; }
	.av-header-inner { flex-direction: column; text-align: center; padding: var(--av-header-pad) 16px; gap: 10px; }
	.av-search-form { width: 100%; max-width: 420px; }
	.av-search-form input[type="search"] { width: 100%; }
	.av-menu-toggle { display: inline-flex; }
	.av-nav .av-wrap { flex-wrap: wrap; }
	.av-nav .av-menu { flex: 0 0 100%; order: 3; }
	.av-nav-search .av-search-form { width: calc(100vw - 32px); }
	.av-menu { display: none; flex-direction: column; padding-bottom: 8px; }
	.av-nav.is-open .av-menu { display: flex; }
	.av-menu a { padding: 11px 4px; border-top: 1px solid rgba(127,127,127,.25); }
	.av-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; padding-left: 16px; min-width: 0; background: transparent; }
	.av-menu .sub-menu a { color: var(--av-nav-text); border-bottom: 0; }
	.av-sliders { grid-template-columns: 1fr; gap: 16px; }
	.av-slide { aspect-ratio: 4 / 3; min-height: 240px; }
	.av-slide-body { padding: 18px 18px 40px; }
	.av-slider-btn { display: none; }
	.av-dots { left: 0; right: 0; justify-content: center; bottom: 14px; }
	.av-article-head, .av-content, .av-article-foot, .av-comments, .page-links { padding-left: 18px; padding-right: 18px; }
	.av-article-thumb figcaption { padding-left: 18px; padding-right: 18px; }
	.av-content { font-size: 17px; }
	.av-footer-widgets { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.av-grid, .av-related .av-grid { grid-template-columns: 1fr; gap: 18px; }
	.av-postnav { grid-template-columns: 1fr; }
	.av-postnav .next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Footer bottom links */
.av-footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
