/**
 * Documentation Module - Admin Styles
 *
 * Styles for the premium, modular-style documentation page.
 * Includes layout for feature cards, headers, safety banners, and promo sections.
 *
 * @package    Kabook_Editor_Tools
 * @subpackage Kabook_Editor_Tools/modules/documentation/assets
 * @author     Kabook
 * @license    GPL-2.0+
 */

/* ==========================================================================
   1. Main Wrapper & Layout
   ========================================================================== */

.kabook-doc-wrapper {
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 40px;
	max-width: 1100px;
	margin: 20px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #2c3338;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.kabook-header-main {
	text-align: center;
	margin-bottom: 50px;
}

.kabook-premium-badge {
	display: inline-block;
	background: #1d2327;
	color: #d4af37;
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 15px;
	border: 1px solid #d4af37;
}

.kabook-header-main h2 {
	font-size: 32px;
	font-weight: 800;
	color: #1d2327;
	margin: 0 0 15px 0;
}

.kabook-header-main p {
	font-size: 18px;
	color: #646970;
	max-width: 700px;
	margin: 0 auto;
}

/* ==========================================================================
   2. Feature Grid & Cards
   ========================================================================== */

.kabook-info-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 25px;
	margin-bottom: 40px;
}

.kabook-feature-card {
	background: #f8f9fa;
	border: 1px solid #dcdcde;
	border-radius: 15px;
	padding: 30px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.kabook-feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
	border-color: #2271b1;
}

.kabook-icon-header {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.kabook-icon-header svg {
	width: 28px;
	height: 28px;
	margin-right: 15px;
	color: #2271b1;
}

.kabook-icon-header span {
	font-size: 18px;
	font-weight: 700;
}

.kabook-feature-card p {
	line-height: 1.8;
	font-size: 14px;
	margin-bottom: 20px;
	text-align: justify;
}

.kabook-tag-pro {
	display: inline-block;
	font-size: 12px;
	font-style: italic;
	color: #2ea043;
	background: rgba(46, 160, 67, 0.1);
	padding: 4px 10px;
	border-radius: 5px;
}

/* ==========================================================================
   3. Special Card Styles (Themes)
   ========================================================================== */

/* Style: Exclusive Patterns (Light Grid) */
.pattern-grid-light {
	background-color: #ffffff;
	background-image:
		linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
	background-size: 15px 15px;
	border: 1px solid #e0e0e0;
}

/* Style: Luxury Cards (Dark Gold) */
.luxury-dark-gold {
	background-color: #1a1a1a;
	background-image: radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 70%);
	color: #ffffff;
	border: 2px solid #d4af37;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.luxury-dark-gold .kabook-icon-header span {
	color: #d4af37;
	text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.luxury-dark-gold .kabook-icon-header svg {
	color: #d4af37;
	filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
}

.luxury-dark-gold p {
	color: #e0e0e0;
}

.luxury-dark-gold .kabook-tag-pro {
	background: rgba(212, 175, 55, 0.15);
	color: #f1d279;
}

.luxury-dark-gold:hover {
	border-color: #f1d279;
	box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

/* ==========================================================================
   4. Banners & Promos
   ========================================================================== */

/* Safety Banner */
.kabook-safety-banner {
	background: #f0fff4;
	border: 1px dashed #2ea043;
	border-radius: 12px;
	padding: 25px;
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 30px;
}

.safety-icon-wrap {
	font-size: 35px;
}

.safety-text-wrap h4 {
	margin: 0 0 5px 0;
	color: #185a2b;
	font-size: 18px;
}

.safety-text-wrap p {
	margin: 0;
	color: #444;
	font-size: 14px;
}

.kabook-status-badge {
	margin-left: auto;
	background: #2ea043;
	color: #fff;
	padding: 6px 15px;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 600;
}

/* Reset Zone */
.kabook-reset-zone {
	text-align: center;
	padding: 15px;
	border-top: 1px solid #eee;
	margin-bottom: 30px;
	font-size: 13px;
	color: #8c8f94;
}

/* Footer Promo */
.kabook-footer-promo {
	background: linear-gradient(135deg, #1d2327 0%, #2c3338 100%);
	border-radius: 15px;
	padding: 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #fff;
}

.kabook-footer-promo h3 {
	margin: 0 0 10px 0;
	font-size: 24px;
	color: #d4af37;
}

.kabook-footer-promo p {
	margin: 0;
	opacity: 0.8;
}

.kabook-btn-premium {
	background: #d4af37;
	color: #1d2327 !important;
	text-decoration: none;
	padding: 15px 35px;
	border-radius: 8px;
	font-weight: 700;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.kabook-btn-premium:hover {
	background: #fff;
	transform: scale(1.05);
}

/* ==========================================================================
   5. Responsive Design
   ========================================================================== */

@media (max-width: 782px) {
	.kabook-info-grid {
		grid-template-columns: 1fr;
	}

	.kabook-footer-promo {
		flex-direction: column;
		text-align: center;
		gap: 25px;
	}
}

/* ==========================================================================
   6. Sub-Navigation (Segmented Control)
   ========================================================================== */

.kabook-sub-nav-wrapper {
	display: flex;
	justify-content: center;
	margin-bottom: 30px;
}

.kabook-segmented-control {
	background: #e8e8ed;
	padding: 4px;
	border-radius: 8px;
	display: inline-flex;
	position: relative;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.kabook-segment-btn {
	border: none;
	background: transparent;
	padding: 8px 25px;
	font-size: 14px;
	font-weight: 600;
	color: #6d6d72;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.2s ease;
	outline: none;
}

.kabook-segment-btn:hover {
	color: #1d1d1f;
}

.kabook-segment-btn.active {
	background: #fff;
	color: #0071e3; /* Blue Harmony Color */
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Hide content by default, JS will handle visibility */
.kabook-sub-tab-content {
	display: none;
	animation: fadeIn 0.3s ease-in-out;
}

.kabook-sub-tab-content.active {
	display: block;
}

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