/* =========================================================
   GERÇEKÇİ KİTAPLIK (3D BOOKSHELF) TASARIMI
   ========================================================= */

/* Kitaplık Duvarı ve Izgara */
.akis-bookshelf {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 100px 0; 
	margin: 40px auto;
	padding: 50px 0;
	background: #fdfdfd; 
	overflow: hidden; 
}

/* Tekil Kitap Alanı ve Kesintisiz Raf Parçası */
.akis-flipbook-card {
	position: relative;
	padding: 0 35px; 
	display: flex;
	justify-content: center;
	align-items: flex-end; 
}

/* 1. Rafın Üst Yüzeyi (Ahşap Üst) */
.akis-flipbook-card::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 30px; 
	background: linear-gradient(to right, #a67c52, #c49a6c, #a67c52); /* Doğal ahşap renk geçişi */
	z-index: 0;
}

/* 2. Rafın Ön Yüzü (Ahşap Kalınlığı ve Kahverengi Gölge) */
.akis-flipbook-card::after {
	content: '';
	position: absolute;
	bottom: -15px; 
	left: 0;
	right: 0;
	height: 15px; 
	background: linear-gradient(to bottom, #8b5a2b, #5c3a21); /* Daha koyu kenar kesimi */
	box-shadow: 0 15px 20px rgba(70, 40, 20, 0.35); /* Duvara vuran kahverengi/sıcak gölge */
	z-index: 1;
}

/* Kitap Butonu / Etkileşim Alanı */
.akis-flipbook-open {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	width: 100%;
	max-width: 170px; 
	cursor: pointer;
	position: relative;
	z-index: 5; 
	transition: transform 0.3s ease;
	outline: none;
}

.akis-flipbook-open:hover {
	transform: translateY(-8px) scale(1.03); 
}

/* Kapak Görseli Çerçevesi */
.akis-flipbook-cover-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1.414; 
	border-radius: 2px 6px 6px 2px;
	box-shadow: 
		-3px 0 8px rgba(0,0,0,0.06), 
		15px 10px 25px rgba(0,0,0,0.3); 
	overflow: hidden;
}

/* Kitap Cilt Parlaması */
.akis-flipbook-cover-wrap::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 8px;
	background: linear-gradient(to right, rgba(255,255,255,0.6) 0%, rgba(0,0,0,0.05) 100%);
	z-index: 2;
}

/* Kapak Görselinin Kendisi */
.akis-flipbook-cover {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	z-index: 1;
}

.akis-flipbook-cover-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eee;
	color: #666;
	font-weight: bold;
	padding: 10px;
}

.akis-flipbook-cta,
.akis-flipbook-meta { display: none; }


/* =========================================================
   AÇILIR PENCERE (MODAL) VE OKUYUCU TASARIMI
   ========================================================= */

.akis-flipbook-no-scroll { overflow: hidden; }
.akis-flipbook-modal[hidden] { display: none !important; }

/* Tema Çakışmalarını Engelleyen Yapı */
.akis-flipbook-modal {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	z-index: 9999999 !important; 
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	background: transparent !important;
	font-family: inherit;
}

.akis-flipbook-modal-overlay {
	position: absolute !important;
	inset: 0 !important;
	background: rgba(245, 245, 245, 0.98) !important;
	backdrop-filter: blur(8px) !important;
}

.akis-flipbook-close {
	position: absolute;
	top: 20px;
	right: 30px;
	z-index: 10;
	background: transparent;
	border: none;
	font-size: 36px;
	color: #333;
	cursor: pointer;
	line-height: 1;
	transition: transform 0.2s ease;
}
.akis-flipbook-close:hover { transform: scale(1.1); color: #000; }

.akis-flipbook-content {
	flex: 1;
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.akis-flipbook-stage {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.akis-flipbook-loading {
	position: absolute;
	font-size: 18px;
	color: #555;
	font-weight: bold;
	z-index: 5;
}

.akis-flipbook-book {
	box-shadow: 0 10px 40px rgba(0,0,0,0.15);
	transition: transform 0.3s ease;
}

/* Sayfalar (IMG) */
.akis-book-page {
	background: #fff;
	position: relative;
	overflow: hidden;
}
.akis-book-page img {
	width: 100% !important;
	height: 100% !important;
	object-fit: fill !important; 
	display: block;
}

.akis-page-loader {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 20px; height: 20px;
	border: 2px solid #ddd;
	border-top-color: #333;
	border-radius: 50%;
	animation: akis-spin 1s linear infinite;
}
@keyframes akis-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Kenar Tıklama Alanları (Edge Navigation) */
.akis-flipbook-edge {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 25%; 
	z-index: 20;
	cursor: pointer;
}
.akis-flipbook-edge--prev { left: 0; }
.akis-flipbook-edge--next { right: 0; }

/* Alt Araç Çubuğu (Toolbar) */
.akis-flipbook-toolbar {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 30;
	display: flex;
	gap: 15px;
	background: #ffffff; 
	padding: 10px 20px;
	border-radius: 40px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15); 
}

.akis-flipbook-btn {
	background: #f0f0f0;
	border: 1px solid #e0e0e0;
	color: #333;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	transition: all 0.2s ease;
}
.akis-flipbook-btn:hover { 
	background: #e4e4e4; 
	transform: scale(1.05);
}

@media (max-width: 768px) {
	.akis-flipbook-content { padding: 20px 0; }
	.akis-flipbook-close { top: 10px; right: 15px; font-size: 30px; }
	.akis-flipbook-toolbar { bottom: 15px; gap: 5px; }
}