/**
 * npocto Pro - Blog Tabs Widget Styles
 * Matches Reference Design pixel-perfect
 */

.npocto-tabs-wrapper {
	width: 100%;
	position: relative;
	padding: 1rem 0;
}

/* Tabs Navigation Bar */
.npocto-tabs-nav-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 2rem;
	overflow-x: auto;
	padding: 6px 4px 14px 4px;
	scrollbar-width: none;
}

.npocto-tabs-nav-wrap::-webkit-scrollbar {
	display: none;
}

.npocto-tabs-nav {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: nowrap;
}

/* Tab Button Base */
.npocto-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 20px;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform;
	outline: none;
	user-select: none;
	background: #ffffff;
	color: #334155;
	border: 1px solid #f1f5f9;
	border-radius: 10px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.npocto-tab-btn:hover {
	background: #f8fafc;
	border-color: #e2e8f0;
	color: #0f172a;
	transform: translateY(-1px);
}

.npocto-tab-btn.is-active {
	background: #3b82f6;
	background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
	color: #ffffff;
	border: 1px solid #3b82f6;
	box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.npocto-tab-btn .npocto-tab-icon {
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
}

/* Style 2: Flat Glass */
.npocto-tabs-style-flat .npocto-tab-btn {
	background: #f1f5f9;
	color: #475569;
	border: none;
	border-radius: 10px;
}
.npocto-tabs-style-flat .npocto-tab-btn.is-active {
	background: #3b82f6;
	color: #ffffff;
}

/* Style 3: Underline */
.npocto-tabs-style-underline .npocto-tab-btn {
	background: transparent;
	color: #334155;
	border: none;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	padding-bottom: 8px;
}
.npocto-tabs-style-underline .npocto-tab-btn.is-active {
	color: #3b82f6;
	border-bottom-color: #3b82f6;
}

/* Content Container & Grid */
.npocto-tab-panel {
	display: none;
	animation: npocto-fade-in 0.35s ease;
}

.npocto-tab-panel.is-active {
	display: block;
}

@keyframes npocto-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.npocto-tab-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	width: 100%;
}

/* Cards */
.npocto-tab-card {
	background: #ffffff;
	border-radius: 18px;
	border: 1px solid #f1f5f9;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: space-between;
	padding: 14px;
	gap: 16px;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform;
	box-sizing: border-box;
}

.npocto-tab-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
	border-color: #e2e8f0;
}

/* Visual Side (Left in RTL - Image 2): Thumbnail + Bookmark + Category Pill */
.npocto-tab-card-visual {
	flex: 0 0 42% !important; width: 42% !important; height: auto !important; min-height: 165px !important; align-self: stretch !important;
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: #f1f5f9;
	flex-shrink: 0;
}

.npocto-tab-thumb-link {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.npocto-tab-card-visual img, .npocto-tab-thumb { width: 100% !important; height: 100% !important; min-height: 100% !important; max-height: 100% !important;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 14px;
	transition: transform 0.4s ease;
}

.npocto-tab-card:hover .npocto-tab-thumb {
	transform: scale(1.08);
}

/* Bookmark Save Button (Top-Left on Thumbnail in Image 2) */
.npocto-tab-bookmark-wrap { position: absolute; top: 10px; right: 10px; left: auto;
	z-index: 5;
}

.npocto-tab-bookmark-wrap .npocto-bookmark-btn {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	min-height: 32px !important;
	background: #3b82f6 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 9px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.45) !important;
	transition: transform 0.22s ease;
	will-change: transform;
	padding: 0 !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

.npocto-tab-bookmark-wrap .npocto-bookmark-btn:hover {
	background: #2563eb !important;
	transform: scale(1.08);
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.55) !important;
}

.npocto-tab-bookmark-wrap .npocto-bookmark-btn.is-saved {
	background: #1d4ed8 !important;
	color: #ffffff !important;
}

.npocto-tab-bookmark-wrap .npocto-bookmark-btn svg {
	width: 15px !important;
	height: 15px !important;
	stroke: #ffffff !important;
	color: #ffffff !important;
	fill: none !important;
	stroke-width: 2.2 !important;
	display: block !important;
}

.npocto-tab-bookmark-wrap .npocto-bookmark-btn.is-saved svg {
	fill: #ffffff !important;
	stroke: #ffffff !important;
}

/* Category Pill (Bottom-Right on Thumbnail in Image 2) */
.npocto-tab-category-pill {
	position: absolute;
	bottom: 10px;
	right: 10px;
	left: auto;
	transform: none;
	background: #ffffff !important;
	color: #334155 !important;
	font-size: 0.74rem;
	font-weight: 700;
	padding: 5px 12px;
	min-height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border-radius: 8px;
	white-space: nowrap;
	text-decoration: none;
	z-index: 4;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	line-height: 1.4;
	transition: transform 0.2s ease;
}

.npocto-tab-category-pill:hover {
	background: #f8fafc !important;
	color: #0f172a !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Content Side (Right in RTL - Image 2) */
.npocto-tab-card-content { flex: 1 1 53% !important;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

.npocto-tab-card-title {
	font-size: 0.93rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.55;
	margin: 0 0 6px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
	max-height: 3.1em;
}

.npocto-tab-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.npocto-tab-card-title a:hover {
	color: #3b82f6;
}

.npocto-tab-card-excerpt {
	font-size: 0.82rem;
	line-height: 1.65;
	color: #334155;
	margin: 0 0 8px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
	max-height: 3.3em;
}

/* Meta Footer: Date on Right, Author on Left (Image 2) */
.npocto-tab-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	font-size: 0.78rem;
	color: #334155;
	padding-top: 4px;
	width: 100%;
}

.npocto-meta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.npocto-tab-meta-date {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 700;
	color: #312e81 !important;
	white-space: nowrap;
}

.npocto-tab-meta-date svg,
.npocto-tab-meta-date i {
	color: #312e81 !important;
	fill: currentColor;
	font-size: 13px;
}

.npocto-tab-meta-author {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 700;
	color: #064e3b !important;
	white-space: nowrap;
}

.npocto-tab-meta-author svg,
.npocto-tab-meta-author i {
	color: #064e3b !important;
	fill: currentColor;
	font-size: 13px;
}

/* Responsive */
@media (max-width: 1100px) {
	.npocto-tab-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.npocto-tab-grid {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
	}
	.npocto-tab-card {
		flex-direction: column !important;
		align-items: stretch !important;
		padding: 14px !important;
	}
	.npocto-tab-card-visual {
		width: 100% !important;
		min-width: 100% !important;
		height: 195px !important;
		min-height: 195px !important;
		max-height: 195px !important;
		flex: 0 0 195px !important;
		border-radius: 14px !important;
		order: -1 !important;
	}
	.npocto-tab-card-content {
		width: 100% !important;
		padding-top: 10px !important;
	}
	.npocto-tab-card-meta {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		flex-wrap: nowrap !important;
		font-size: 0.74rem !important;
		width: 100% !important;
	}
	.npocto-tabs-nav-wrap {
		justify-content: flex-start;
	}
}





