/**
 * BBC YAPI MÜHENDİSLİK — Yerinde Dönüşüm Süreci Sayfası
 * ----------------------------------------------------------------------------
 * Bu stil daha önce page-yerinde-donusum.php içinde satır içi olarak basılıyordu:
 * 851 satır CSS her sayfa görüntülemesinde yeniden indiriliyor ve tarayıcıda
 * önbelleklenemiyordu. Şablon artık bbc_enqueue_template_style() ile bu
 * dosyayı sürümlenmiş olarak kuyruğa alır.
 */

/* ==========================================================================
   YERİNDE DÖNÜŞÜM - MODERN DARK & GOLD DESIGN SYSTEM
   ========================================================================== */

:root {
	--yd-bg: #0A0D14;
	--yd-card-bg: rgba(18, 24, 38, 0.85);
	--yd-card-border: rgba(255, 255, 255, 0.1);
	--yd-gold: #F5A623;
	--yd-gold-glow: rgba(245, 166, 35, 0.35);
	--yd-green: #22C55E;
	--yd-cyan: #38BDF8;
	--yd-red: #EF4444;
	--yd-purple: #A855F7;
	--yd-text-main: #F3F4F6;
	--yd-text-sub: #9CA3AF;
}

body.bbc-theme-body {
	background-color: var(--yd-bg) !important;
	color: var(--yd-text-main) !important;
}

.yd-wrapper {
	background-color: var(--yd-bg);
	color: var(--yd-text-main);
	overflow-x: hidden;
	font-family: var(--font-body);
}

/* Glassmorphism Panels */
.yd-glass {
	background: var(--yd-card-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--yd-card-border);
	border-radius: 20px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	transition: all 0.35s cubic-bezier(0.2, 0.6, 0.3, 1);
}

.yd-glass:hover {
	border-color: rgba(245, 166, 35, 0.35);
	box-shadow: 0 25px 65px rgba(245, 166, 35, 0.12);
}

/* Badge System */
.yd-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 50px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: rgba(245, 166, 35, 0.12);
	border: 1px solid rgba(245, 166, 35, 0.3);
	color: var(--yd-gold);
}

.pulse-beacon-green {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--yd-green);
	box-shadow: 0 0 10px var(--yd-green);
	animation: beaconPulse 1.8s infinite;
}

@keyframes beaconPulse {
	0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
	70% { transform: scale(1.25); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
	100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Section Layout */
.yd-section {
	padding: 90px 0;
	position: relative;
}

@media (max-width: 768px) {
	.yd-section { padding: 50px 0; }
}

.yd-title {
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 3.8vw, 3.2rem);
	font-weight: 900;
	line-height: 1.1;
	text-transform: uppercase;
	color: #FFFFFF;
	margin-bottom: 16px;
}

.yd-title span {
	color: var(--yd-gold);
	background: linear-gradient(135deg, #F5A623 0%, #FBBF24 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.yd-sub {
	color: var(--yd-text-sub);
	font-size: 1.08rem;
	max-width: 680px;
	margin: 0 auto 50px auto;
	line-height: 1.6;
}

/* ==========================================================================
   1. HERO SECTION (Devlet Destekli Yerinde Dönüşüm)
   ========================================================================== */
.yd-hero {
	padding-top: 140px;
	padding-bottom: 80px;
	background: radial-gradient(circle at 50% 15%, rgba(245, 166, 35, 0.16) 0%, transparent 60%);
	position: relative;
}

.yd-hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 50px;
	align-items: center;
}

@media (max-width: 992px) {
	.yd-hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
	.yd-hero-actions { justify-content: center; }
}

.yd-hero-h1 {
	font-family: var(--font-display);
	font-size: clamp(2.3rem, 4.8vw, 3.8rem);
	font-weight: 900;
	line-height: 1.05;
	text-transform: uppercase;
	color: #FFFFFF;
	margin: 20px 0 24px 0;
}

.yd-hero-h1 span {
	color: var(--yd-gold);
	display: block;
}

.yd-hero-desc {
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.65;
	margin-bottom: 32px;
}

.grant-pills-row {
	display: flex;
	gap: 12px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}

@media (max-width: 992px) {
	.grant-pills-row { justify-content: center; }
}

.grant-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(34, 197, 94, 0.3);
	padding: 8px 16px;
	border-radius: 40px;
	font-size: 0.85rem;
	font-weight: 700;
	color: #86EFAC;
}

.grant-pill i { color: var(--yd-green); }

.yd-hero-actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* Hero Right State Aid Card */
.hero-grant-card {
	padding: 30px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero-grant-card::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 60%);
	pointer-events: none;
}

.grant-card-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--yd-gold);
	background: rgba(245, 166, 35, 0.12);
	padding: 4px 12px;
	border-radius: 20px;
	margin-bottom: 16px;
}

.grant-big-num {
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	font-weight: 900;
	color: var(--yd-green);
	line-height: 1;
	margin-bottom: 6px;
}

.grant-big-label {
	font-size: 0.9rem;
	color: var(--yd-text-sub);
	margin-bottom: 24px;
}

.grant-breakdown-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: left;
}

.grant-breakdown-item {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 12px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.88rem;
}

.grant-breakdown-item strong {
	font-family: var(--font-mono);
	color: #FFFFFF;
}

/* ==========================================================================
   2. SECTION 1: INTERACTIVE STATE SUBSIDY CALCULATOR
   ========================================================================== */
.calc-sec-card {
	padding: 40px;
}

.calc-sec-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

@media (max-width: 992px) {
	.calc-sec-grid { grid-template-columns: 1fr; }
}

.calc-slider-group {
	margin-bottom: 26px;
}

.calc-slider-group label {
	display: flex;
	justify-content: space-between;
	font-size: 0.95rem;
	font-weight: 700;
	color: #FFFFFF;
	margin-bottom: 10px;
}

.calc-slider-group label span {
	font-family: var(--font-mono);
	color: var(--yd-gold);
	font-size: 1.1rem;
}

.yd-range-input {
	width: 100%;
	height: 10px;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.1);
	outline: none;
	-webkit-appearance: none;
	accent-color: var(--yd-gold);
	cursor: pointer;
}

.calc-total-box {
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(34, 197, 94, 0.35);
	border-radius: 20px;
	padding: 30px;
	text-align: center;
}

.calc-result-row {
	display: flex;
	justify-content: space-between;
	font-size: 0.92rem;
	padding: 10px 0;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
	color: var(--yd-text-sub);
}

.calc-result-row strong {
	font-family: var(--font-mono);
	color: #FFFFFF;
}

.calc-result-row.highlight {
	border-bottom: none;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 2px solid var(--yd-green);
	font-size: 1.1rem;
}

.calc-result-row.highlight .total-val {
	font-family: var(--font-display);
	font-size: 2.4rem;
	font-weight: 900;
	color: var(--yd-green);
	display: block;
	margin-top: 6px;
}

/* ==========================================================================
   3. SECTION 2: INTERACTIVE BEFORE / AFTER SWITCHER
   ========================================================================== */
.vs-pill-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 40px;
}

.vs-pill-btn-group {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--yd-card-border);
	border-radius: 50px;
	padding: 6px;
	display: flex;
	gap: 6px;
}

.vs-pill-item {
	padding: 12px 28px;
	border-radius: 40px;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	color: var(--yd-text-sub);
}

.vs-pill-item.active.old {
	background: rgba(239, 68, 68, 0.2);
	color: #FCA5A5;
	border: 1px solid rgba(239, 68, 68, 0.4);
}

.vs-pill-item.active.new {
	background: rgba(34, 197, 94, 0.2);
	color: #86EFAC;
	border: 1px solid rgba(34, 197, 94, 0.4);
}

.vs-cards-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

@media (max-width: 768px) {
	.vs-cards-row { grid-template-columns: 1fr; }
}

.vs-card-box {
	padding: 34px;
	border-radius: 20px;
	transition: all 0.4s ease;
}

.vs-card-box.risk {
	background: rgba(239, 68, 68, 0.04);
	border: 1px dashed rgba(239, 68, 68, 0.3);
}

.vs-card-box.safe {
	background: rgba(34, 197, 94, 0.04);
	border: 1px solid rgba(34, 197, 94, 0.35);
	box-shadow: 0 20px 50px rgba(34, 197, 94, 0.1);
}

.vs-card-box h3 {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 700;
	color: #FFFFFF;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.vs-card-box.risk h3 i { color: var(--yd-red); }
.vs-card-box.safe h3 i { color: var(--yd-green); }

.vs-card-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.vs-card-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 0.94rem;
	line-height: 1.5;
}

.vs-card-box.risk .vs-card-list i { color: var(--yd-red); flex-shrink: 0; margin-top: 2px; }
.vs-card-box.safe .vs-card-list i { color: var(--yd-green); flex-shrink: 0; margin-top: 2px; }

/* ==========================================================================
   4. SECTION 3: HYPER-REALISTIC 3D ARCHITECTURAL BUILDING & COMPACT DASHBOARD
   ========================================================================== */
.story-track-grid {
	display: grid;
	grid-template-columns: 1.25fr 0.75fr;
	gap: 36px;
	align-items: center;
}

@media (max-width: 1024px) {
	.story-track-grid { grid-template-columns: 1fr; }
}

.hologram-showcase-card {
	padding: 30px;
	background: radial-gradient(circle at 50% 40%, rgba(14, 165, 233, 0.16) 0%, rgba(10, 13, 20, 0.98) 100%);
	border: 1px solid rgba(56, 189, 248, 0.35);
	box-shadow: 0 0 60px rgba(56, 189, 248, 0.2), inset 0 0 40px rgba(56, 189, 248, 0.08);
	border-radius: 28px;
	overflow: hidden;
	position: relative;
}

/* High-Tech HUD Header */
.hud-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(56, 189, 248, 0.25);
	margin-bottom: 20px;
}

.hud-tag {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--yd-cyan);
	letter-spacing: 0.1em;
	display: flex;
	align-items: center;
	gap: 6px;
}

.hud-stats-bar {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.hud-stat-pill {
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(56, 189, 248, 0.25);
	border-radius: 10px;
	padding: 10px;
	text-align: center;
}

.hud-stat-pill .lbl { font-size: 0.72rem; color: var(--yd-text-sub); display: block; }
.hud-stat-pill .val { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700; color: #FFFFFF; }

/* Expanded Hologram Viewport (480px Height) */
.hologram-viewport {
	position: relative;
	width: 100%;
	height: 480px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

@media (max-width: 640px) {
	.hologram-viewport { height: 380px; }
}

.laser-scanner-line {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, transparent, #38BDF8, #F5A623, #38BDF8, transparent);
	box-shadow: 0 0 20px #38BDF8, 0 0 40px #F5A623;
	z-index: 10;
	animation: laserScanSweep 3.2s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}

@keyframes laserScanSweep {
	0% { top: 5%; opacity: 0.3; }
	50% { opacity: 1; }
	100% { top: 93%; opacity: 0.3; }
}

/* 3D Isometric Architectural SVG Graphic */
.hologram-svg {
	width: 100%;
	max-width: 450px;
	height: 450px;
}

/* Realistic Architectural Element Transitions */
.iso-grid-floor { opacity: 0.7; }
.iso-laser-crane { transition: opacity 0.6s ease; }
.iso-old-rubble { transition: opacity 0.6s ease; }
.iso-foundation-slab { opacity: 0; transition: opacity 0.6s ease; }

.iso-floor-level {
	opacity: 0;
	transition: opacity 0.7s ease;
}

.iso-floor-level.active {
	opacity: 1;
}

.iso-glass-window {
	fill: rgba(56, 189, 248, 0.22);
	stroke: rgba(56, 189, 248, 0.6);
	transition: fill 0.8s ease, stroke 0.8s ease, filter 0.8s ease;
}

.hologram-svg.is-lit .iso-glass-window {
	fill: rgba(245, 166, 35, 0.95);
	stroke: #F5A623;
	filter: drop-shadow(0 0 12px rgba(245, 166, 35, 1));
}

/* Hologram Controls Bar */
.hologram-phase-nav {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 18px;
	flex-wrap: wrap;
}

.holo-phase-btn {
	background: rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 0.76rem;
	font-weight: 700;
	color: var(--yd-text-sub);
	cursor: pointer;
	transition: all 0.3s ease;
}

.holo-phase-btn:hover,
.holo-phase-btn.active {
	background: rgba(56, 189, 248, 0.25);
	border-color: var(--yd-cyan);
	color: #FFFFFF;
	box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.play-pause-btn {
	background: rgba(245, 166, 35, 0.2);
	border: 1px solid var(--yd-gold);
	color: var(--yd-gold);
	font-weight: 900;
}

.play-pause-btn:hover {
	background: var(--yd-gold);
	color: #0E0F10;
}

/* Floating Glass HUD Badges */
.hud-floating-badge {
	position: absolute;
	background: rgba(10, 13, 20, 0.9);
	border: 1px solid rgba(56, 189, 248, 0.4);
	padding: 6px 14px;
	border-radius: 20px;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--yd-cyan);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
	z-index: 12;
	pointer-events: none;
}

.hud-floating-badge.badge-left { top: 20px; left: 16px; }
.hud-floating-badge.badge-right { bottom: 24px; right: 16px; color: var(--yd-gold); border-color: rgba(245,166,35,0.4); }

/* Compact Right Steps Dashboard */
.compact-step-dashboard {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.step-timer-bar-wrap {
	height: 6px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 10px;
}

.step-timer-progress {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--yd-gold), var(--yd-cyan));
	transition: width 0.1s linear;
}

.step-nodes-tracker {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 6px;
}

.step-tracker-pill {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 8px 4px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.step-tracker-pill .num {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--yd-text-sub);
	display: block;
}

.step-tracker-pill.active {
	background: rgba(245, 166, 35, 0.18);
	border-color: var(--yd-gold);
}

.step-tracker-pill.active .num {
	color: var(--yd-gold);
}

.compact-step-card {
	padding: 30px;
	background: rgba(18, 24, 38, 0.9);
	border: 1px solid rgba(245, 166, 35, 0.35);
	border-radius: 20px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
	transition: all 0.4s ease;
}

.compact-step-card .phase-tag {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--yd-gold);
	text-transform: uppercase;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.compact-step-card h3 {
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 700;
	color: #FFFFFF;
	margin-bottom: 12px;
}

.compact-step-card p {
	font-size: 0.95rem;
	color: var(--yd-text-sub);
	line-height: 1.65;
	margin-bottom: 20px;
}

.compact-checklist {
	display: flex;
	flex-direction: column;
	gap: 10px;
	border-top: 1px dashed rgba(255, 255, 255, 0.1);
	padding-top: 16px;
}

.compact-checklist-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.88rem;
	color: #FFFFFF;
}

.compact-checklist-item i { color: var(--yd-green); flex-shrink: 0; }

/* ==========================================================================
   5. SECTION 4: 5 ADIMDA YERİNDE DÖNÜŞÜM YOL HARİTASI
   ========================================================================== */
.process-roadmap-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

@media (max-width: 992px) {
	.process-roadmap-grid { grid-template-columns: 1fr; }
}

.process-roadmap-card {
	padding: 24px 18px;
	text-align: center;
	position: relative;
	transition: all 0.3s ease;
}

.process-roadmap-card:hover {
	border-color: var(--yd-gold);
	transform: translateY(-6px);
}

.process-step-num {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(245, 166, 35, 0.15);
	border: 2px solid var(--yd-gold);
	color: var(--yd-gold);
	font-family: var(--font-mono);
	font-size: 1.1rem;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px auto;
}

.process-roadmap-card h4 {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	color: #FFFFFF;
	margin-bottom: 8px;
}

.process-roadmap-card p {
	font-size: 0.82rem;
	color: var(--yd-text-sub);
	line-height: 1.5;
	margin: 0;
}

/* ==========================================================================
   6. SECTION 5: FAQ ACCORDION
   ========================================================================== */
.faq-grid {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.faq-item {
	padding: 20px 24px;
	cursor: pointer;
}

.faq-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--font-display);
	font-size: 1.1rem;
	font-weight: 700;
	color: #FFFFFF;
}

.faq-header i { color: var(--yd-gold); transition: transform 0.3s ease; }
.faq-item.open .faq-header i { transform: rotate(180deg); }

.faq-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, margin-top 0.4s ease;
	font-size: 0.92rem;
	color: var(--yd-text-sub);
	line-height: 1.6;
}

.faq-item.open .faq-body {
	max-height: 300px;
	margin-top: 14px;
}

/* Call to Action Final Section */
.yd-cta-box {
	background: linear-gradient(135deg, rgba(245, 166, 35, 0.2) 0%, rgba(14, 15, 16, 0.95) 100%);
	border: 1px solid rgba(245, 166, 35, 0.45);
	border-radius: 24px;
	padding: 50px 30px;
	text-align: center;
	box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}
