/*
Theme Name:  AirPlane
Theme URI:   https://airplane.com.tr
Description: AirPlane.com.tr — Türkiye'nin Havacılık Haber ve Uçuş Arama Platformu
Author:      AirPlane Team
Version:     2.0.0
License:     GPL-2.0-or-later
Text Domain: airplane
*/

/* ════════════════════════════════════════
   1. DESIGN TOKENS
════════════════════════════════════════ */
:root {
	--navy:    #0b1120;
	--navy2:   #111c30;
	--navy3:   #162240;
	--card:    #152035;
	--border:  #1e3055;
	--accent:  #2a7fff;
	--accent2: #ff6b35;
	--gold:    #f5c842;
	--text:    #dce8f5;
	--muted:   #7a9bbf;
	--success: #1dd19f;
	--white:   #f0f6ff;
	--red:     #e8394a;

	/* Typography */
	--font-display: 'Playfair Display', Georgia, serif;
	--font-body:    'Source Sans 3', system-ui, sans-serif;
	--font-mono:    'JetBrains Mono', 'Courier New', monospace;

	/* Layout */
	--max-width:   1280px;
	--gap:         36px;
	--radius:      8px;
}

/* ════════════════════════════════════════
   2. RESET & BASE
════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	background: var(--navy);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* Screen-reader only */
.sr-only {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ════════════════════════════════════════
   3. TOPBAR
════════════════════════════════════════ */
.topbar {
	background: var(--navy2);
	border-bottom: 1px solid var(--border);
	padding: 6px 0;
	font-size: 12px;
	color: var(--muted);
	font-family: var(--font-mono);
}
.topbar-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.topbar-links { display: flex; gap: 16px; flex-shrink: 0; }
.topbar-links a { color: var(--muted); transition: color .2s; }
.topbar-links a:hover { color: var(--accent); }

.breaking-ticker {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow: hidden;
	flex: 1;
	min-width: 0;
}
.breaking-tag {
	background: var(--red);
	color: #fff;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	white-space: nowrap;
	flex-shrink: 0;
}
.ticker-text {
	white-space: nowrap;
	animation: ticker 28s linear infinite;
	font-size: 11px;
}
@keyframes ticker { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.topbar-date { white-space: nowrap; font-size: 11px; flex-shrink: 0; }

/* ════════════════════════════════════════
   4. HEADER
════════════════════════════════════════ */
header {
	background: var(--navy2);
	border-bottom: 2px solid var(--accent);
	padding: 16px 0 0;
	position: sticky;
	top: 0;
	z-index: 100;
}
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
.header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	gap: 12px;
}

/* Logo */
.logo {
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: 800;
	color: var(--white);
	line-height: 1;
	flex-shrink: 0;
}
.logo span { color: var(--accent); }
.logo small {
	display: block;
	font-family: var(--font-mono);
	font-size: 9px;
	color: var(--muted);
	letter-spacing: 3px;
	font-weight: 400;
	margin-top: 2px;
	text-transform: uppercase;
}

.header-right { display: flex; align-items: center; gap: 10px; }

/* Header search */
.header-search form { display: flex; }
.header-search input {
	background: var(--navy3);
	border: 1px solid var(--border);
	border-right: none;
	border-radius: 6px 0 0 6px;
	padding: 9px 14px;
	color: var(--text);
	font-family: var(--font-body);
	font-size: 14px;
	width: 240px;
	outline: none;
	transition: border-color .2s;
}
.header-search input:focus { border-color: var(--accent); }
.header-search button {
	background: var(--accent);
	border: none;
	border-radius: 0 6px 6px 0;
	padding: 9px 14px;
	color: #fff;
	font-size: 15px;
	transition: background .2s;
}
.header-search button:hover { background: #1a6ee0; }

/* ════════════════════════════════════════
   5. HAMBURGER
════════════════════════════════════════ */
.hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: var(--navy3);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 8px;
	flex-shrink: 0;
}
.hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════
   6. DESKTOP NAV
════════════════════════════════════════ */
header nav {
	display: flex;
	gap: 0;
	border-top: 1px solid var(--border);
	margin: 0 -16px;
	padding: 0 16px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
header nav::-webkit-scrollbar { display: none; }
.nav-item {
	padding: 13px 14px;
	font-size: 11px;
	font-weight: 600;
	color: var(--muted);
	transition: all .2s;
	border-bottom: 3px solid transparent;
	white-space: nowrap;
	letter-spacing: .5px;
	text-transform: uppercase;
	flex-shrink: 0;
}
.nav-item:hover { color: var(--white); border-bottom-color: var(--border); }
.nav-item.active { color: var(--white); border-bottom-color: var(--accent); }
.nav-item-ticket {
	padding: 10px 16px;
	margin: 6px 0 6px 8px;
	font-size: 11px;
	font-weight: 700;
	color: var(--navy) !important;
	background: var(--gold);
	border-radius: 6px;
	letter-spacing: .5px;
	text-transform: uppercase;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background .2s, transform .15s;
	border-bottom: none !important;
}
.nav-item-ticket:hover { background: #e6b800; transform: translateY(-1px); }

/* ════════════════════════════════════════
   7. MOBILE NAV OVERLAY
════════════════════════════════════════ */
.mobile-nav {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999;
	background: rgba(0,0,0,.65);
	backdrop-filter: blur(4px);
}
.mobile-nav.open { display: flex; }
.mobile-nav-panel {
	background: var(--navy2);
	border-right: 1px solid var(--border);
	width: 288px;
	max-width: 88vw;
	height: 100%;
	overflow-y: auto;
	padding: 24px 0;
}
.mobile-nav-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px 20px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 8px;
}
.mobile-nav-close {
	background: var(--navy3);
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--muted);
	width: 32px;
	height: 32px;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
}
.mobile-nav-close:hover { background: var(--border); }
.mobile-nav-search { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.mobile-nav-search form { display: flex; }
.mobile-nav-search input {
	flex: 1;
	background: var(--navy3);
	border: 1px solid var(--border);
	border-right: none;
	border-radius: 6px 0 0 6px;
	padding: 10px 12px;
	color: var(--text);
	font-size: 14px;
	outline: none;
}
.mobile-nav-search input:focus { border-color: var(--accent); }
.mobile-nav-search button { background: var(--accent); border: none; border-radius: 0 6px 6px 0; padding: 10px 12px; color: #fff; }
.mobile-nav-links { padding: 6px 0; }
.mobile-nav-links a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	border-bottom: 1px solid rgba(30,48,85,.5);
	transition: background .15s;
}
.mobile-nav-links a:hover { background: rgba(42,127,255,.08); color: var(--white); }
.nav-emoji { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }
.mobile-ticket-btn {
	margin: 16px 20px 0;
	display: block;
	padding: 14px;
	background: var(--gold);
	border-radius: 8px;
	text-align: center;
	font-weight: 700;
	font-size: 15px;
	color: var(--navy);
	letter-spacing: .5px;
	transition: background .2s;
}
.mobile-ticket-btn:hover { background: #e6b800; }

/* ════════════════════════════════════════
   8. SITE LAYOUT (content + sidebar)
════════════════════════════════════════ */
.site-wrapper {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 24px 16px;
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: var(--gap);
}

/* ════════════════════════════════════════
   9. SECTION HEADERS
════════════════════════════════════════ */
.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--border);
}
.section-title {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--white);
	display: flex;
	align-items: center;
	gap: 10px;
}
.section-title::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 20px;
	background: var(--accent);
	border-radius: 2px;
}
.see-all { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.see-all:hover { color: var(--white); }

/* ════════════════════════════════════════
   10. FEATURED GRID
════════════════════════════════════════ */
.featured-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto auto;
	gap: 2px;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 36px;
	border: 1px solid var(--border);
}
.featured-main {
	grid-column: 1;
	grid-row: 1 / 3;
	position: relative;
	min-height: 360px;
	background: var(--navy3);
	overflow: hidden;
}
.featured-img-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 90px;
	background: linear-gradient(135deg, var(--navy3), var(--card));
	transition: transform .4s;
}
.featured-img {
	width: 100%; height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
	transition: transform .4s;
}
.featured-main:hover .featured-img,
.featured-main:hover .featured-img-placeholder { transform: scale(1.04); }
.featured-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10,17,32,.95) 0%, rgba(10,17,32,.3) 60%, transparent 100%);
}
.featured-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; }
.featured-tag {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 3px;
	margin-bottom: 8px;
}
.featured-title {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--white);
	line-height: 1.3;
	margin-bottom: 6px;
}
.featured-meta { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.featured-side {
	background: var(--card);
	padding: 18px;
	border-left: 1px solid var(--border);
	transition: background .2s;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.featured-side:hover { background: var(--navy3); }
.featured-side + .featured-side { border-top: 1px solid var(--border); }
.featured-side .tag { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.featured-side h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--white); line-height: 1.4; margin-bottom: 6px; }
.featured-side p { font-size: 12px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ════════════════════════════════════════
   11. NEWS LIST
════════════════════════════════════════ */
.news-list { display: flex; flex-direction: column; }
.news-item {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
	transition: all .2s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover .news-item-title { color: var(--accent); }
.news-item-img {
	width: 100px;
	height: 68px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--navy3);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	border: 1px solid var(--border);
	flex-shrink: 0;
}
.news-item-img img { width: 100%; height: 100%; object-fit: cover; }
.news-item-tag { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.news-item-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--white);
	line-height: 1.4;
	margin-bottom: 4px;
	transition: color .2s;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.news-item-meta { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }

/* ════════════════════════════════════════
   12. SIDEBAR
════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget-title {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--white);
	padding-bottom: 10px;
	border-bottom: 2px solid var(--accent);
	margin-bottom: 14px;
}

/* Flight search form */
.flight-form { display: flex; flex-direction: column; gap: 10px; }
.flight-form label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; display: block; }
.flight-form input,
.flight-form select {
	width: 100%;
	background: var(--navy3);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 10px 12px;
	color: var(--text);
	font-family: var(--font-body);
	font-size: 14px;
	outline: none;
	transition: border-color .2s;
}
.flight-form input:focus,
.flight-form select:focus { border-color: var(--accent); }
.flight-form select option { background: var(--navy); }
.btn-search-flight {
	width: 100%;
	padding: 12px;
	background: var(--accent);
	border: none;
	border-radius: 6px;
	color: #fff;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 700;
	margin-top: 4px;
	touch-action: manipulation;
	transition: background .2s;
}
.btn-search-flight:hover { background: #1a6ee0; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-item {
	background: var(--navy3);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 10px 12px;
	transition: all .2s;
	text-align: center;
}
.cat-item:hover { border-color: var(--accent); background: rgba(42,127,255,.08); }
.cat-icon { font-size: 20px; display: block; margin-bottom: 4px; }
.cat-name { font-size: 11px; font-weight: 600; color: var(--muted); }

/* Popular list */
.popular-list { display: flex; flex-direction: column; }
.popular-item {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover .popular-title { color: var(--accent); }
.popular-num { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--border); line-height: 1; min-width: 26px; }
.popular-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; transition: color .2s; }
.popular-date { font-size: 11px; color: var(--muted); font-family: var(--font-mono); margin-top: 4px; }

/* ════════════════════════════════════════
   13. ARTICLE SINGLE
════════════════════════════════════════ */
.article-body { max-width: 780px; }
.article-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.article-content p { margin-bottom: 1.2em; }
.article-content h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); margin: 2rem 0 .75rem; }
.article-content h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); margin: 1.5rem 0 .5rem; }
.article-content a { color: var(--accent); text-decoration: underline; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }

/* Source + AI disclaimer blocks */
.ap-source-block {
	margin-top: 36px;
	padding: 14px 18px;
	border-left: 4px solid #2a7fff;
	background: #0d1f3c;
	border-radius: 0 8px 8px 0;
	font-size: 13px;
	color: #7a9bbf;
	line-height: 1.6;
}
.ap-source-label { font-weight: 700; color: #dce8f5; margin-right: 4px; }
.ap-source-link  { color: #2a7fff; text-decoration: underline; }
.ap-disclaimer-block {
	margin-top: 12px;
	padding: 14px 18px;
	background: #0a1628;
	border: 1px solid #1e3055;
	border-radius: 8px;
	font-size: 12px;
	color: #5a7a9f;
	line-height: 1.7;
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.ap-disclaimer-icon { font-size: 18px; flex-shrink: 0; }
.ap-disclaimer-text strong { color: #7a9bbf; display: block; margin-bottom: 4px; }
.ap-disclaimer-text a { color: #2a7fff; text-decoration: underline; }

/* ════════════════════════════════════════
   14. FOOTER
════════════════════════════════════════ */
footer {
	background: var(--navy2);
	border-top: 1px solid var(--border);
	margin-top: 60px;
	padding: 40px 0 20px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 28px; }
.footer-logo { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--muted); transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
	border-top: 1px solid var(--border);
	padding-top: 18px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
	color: var(--muted);
	font-family: var(--font-mono);
}
.footer-bottom a { color: var(--muted); transition: color .2s; }
.footer-bottom a:hover { color: var(--accent); }

/* ════════════════════════════════════════
   15. PAGINATION
════════════════════════════════════════ */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
	font-family: var(--font-mono);
	font-size: .8rem;
	padding: .5em .9em;
	border-radius: 6px;
	border: 1px solid var(--border);
	color: var(--muted);
	text-decoration: none;
	transition: border-color .2s, color .2s;
}
.pagination .current, .pagination a:hover { border-color: var(--accent); color: var(--accent); }

/* ════════════════════════════════════════
   16. BREADCRUMB
════════════════════════════════════════ */
.cat-breadcrumb {
	font-size: 11px;
	color: var(--muted);
	font-family: var(--font-mono);
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 8px;
}

/* ════════════════════════════════════════
   17. RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
	.header-search input { width: 180px; }
	.site-wrapper { grid-template-columns: 1fr 280px; gap: 24px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 860px) {
	.site-wrapper { grid-template-columns: 1fr; padding: 20px 14px; display: flex; flex-direction: column; }
	.sidebar { display: flex !important; }
	.featured-grid { grid-template-columns: 1fr; }
	.featured-main { min-height: 240px; grid-row: auto; grid-column: 1; }
	.featured-side { border-left: none; border-top: 1px solid var(--border); }
	.topbar-date { display: none; }
	.header-search { display: none; }
	.hamburger { display: flex; }
	header nav { padding: 0 14px; }
	.nav-item { padding: 12px 10px; font-size: 10px; }
	.nav-item-ticket { padding: 8px 12px; font-size: 10px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
	.ap-disclaimer-block { flex-direction: column; gap: 8px; }
}

@media (max-width: 600px) {
	.topbar-inner { padding: 0 12px; }
	.topbar-links a:not(:first-child) { display: none; }
	.breaking-ticker { display: none; }
	.header-inner { padding: 0 12px; }
	.logo { font-size: 26px; }
	header nav { margin: 0 -12px; padding: 0 12px; }
	.nav-item { padding: 11px 8px; font-size: 9px; letter-spacing: 0; }
	.nav-item-ticket { padding: 7px 10px; font-size: 9px; margin: 5px 0 5px 4px; }
	.featured-title { font-size: 17px; }
	.featured-body { padding: 14px; }
	.news-item-img { width: 80px; height: 56px; }
	.news-item-title { font-size: 13px; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-col:nth-child(n+3) { display: none; }
	.footer-bottom { flex-direction: column; gap: 4px; }
	.site-wrapper { padding: 16px 12px; }
}

@media (max-width: 380px) {
	.logo { font-size: 22px; }
	.nav-item { padding: 10px 7px; font-size: 8px; }
	.featured-title { font-size: 15px; }
}
