/**
 * npocto Pro - Bookmark & Saved Articles System Styles
 * Ultra Modern UI/UX, Responsive, Hardware Accelerated Animations
 */

/* ==========================================================================
   1. Floating Bookmark Button (Cards & Single Post)
   ========================================================================== */
.npocto-bookmark-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.85);
	color: #334155 !important;
	cursor: pointer;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform;
	padding: 0;
	position: relative;
	z-index: 5;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	outline: none;
}

.npocto-bookmark-btn svg {
	width: 17px;
	height: 17px;
	transition: transform 0.25s ease, fill 0.25s ease;
}

.npocto-bookmark-btn:hover {
	transform: scale(1.12);
	background: #ffffff !important;
	color: var(--npocto-primary, #F2891A) !important;
	box-shadow: 0 6px 18px rgba(242, 137, 26, 0.35);
	border-color: rgba(242, 137, 26, 0.4);
}

.npocto-bookmark-btn.is-saved,
.npocto-bookmark-btn.saved,
.npocto-bookmark-btn.bookmarked {
	background: linear-gradient(135deg, #F2891A, #ea580c) !important;
	color: #ffffff !important;
	border-color: #ea580c !important;
	box-shadow: 0 4px 15px rgba(242, 137, 26, 0.45) !important;
}

.npocto-bookmark-btn.is-saved svg,
.npocto-bookmark-btn.saved svg,
.npocto-bookmark-btn.bookmarked svg {
	fill: #ffffff;
	transform: scale(1.1);
}

/* Single Post Hero Meta Bookmark Pill */
.novinmag-meta-bookmark.npocto-bookmark-btn {
	width: auto;
	height: auto;
	border-radius: 999px;
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	padding: 4px 11px;
	box-shadow: none !important;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	color: #334155 !important;
	font-size: 0.82rem;
	font-weight: 600;
	gap: 6px;
	transition: transform 0.2s ease;
	will-change: transform;
}

.novinmag-meta-bookmark.npocto-bookmark-btn:hover {
	background: #fff7ed !important;
	border-color: #F2891A !important;
	color: #ea580c !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 2px 8px rgba(242, 137, 26, 0.15) !important;
}

.novinmag-meta-bookmark.npocto-bookmark-btn.is-saved {
	background: #fff7ed !important;
	border-color: #F2891A !important;
	color: #ea580c !important;
}

.novinmag-meta-bookmark.npocto-bookmark-btn.is-saved svg {
	fill: #ea580c !important;
	color: #ea580c !important;
	transform: none;
}

/* ==========================================================================
   2. Dedicated Saved Page Wrapper & Breadcrumbs
   ========================================================================== */
.npocto-saved-page-wrapper {
	width: 100%;
	background: #f8fafc;
	min-height: calc(100vh - 200px);
	padding-bottom: 3.5rem;
}

.npocto-saved-page-wrapper .npocto-breadcrumbs-container {
	background: #ffffff;
	border-bottom: 1px solid #edf2f7;
	padding: 1rem 0;
	margin-bottom: 2rem;
}

.npocto-saved-page-wrapper .npocto-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.npocto-saved-extra-content {
	margin-top: 2.5rem;
	background: #ffffff;
	padding: 1.5rem 2rem;
	border-radius: 16px;
	border: 1px solid #f1f5f9;
}

/* ==========================================================================
   3. Saved Articles Component Wrap & Header Toolbar
   ========================================================================== */
.npocto-saved-articles-wrap {
	width: 100%;
	margin: 0 auto;
}

.npocto-saved-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.25rem;
	background: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 20px;
	padding: 1.5rem 1.85rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	margin-bottom: 2rem;
	position: relative;
	overflow: hidden;
}

.npocto-saved-header::before {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: linear-gradient(to bottom, #F2891A, #ea580c);
	border-radius: 0 20px 20px 0;
}

.npocto-saved-header-start {
	display: flex;
	align-items: center;
	gap: 1.15rem;
}

.npocto-saved-icon-badge {
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(242, 137, 26, 0.12), rgba(234, 88, 12, 0.22));
	color: #ea580c;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 14px rgba(242, 137, 26, 0.16);
	transition: transform 0.3s ease;
}

.npocto-saved-header:hover .npocto-saved-icon-badge {
	transform: scale(1.06) rotate(3deg);
}

.npocto-saved-title-group {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.npocto-saved-title {
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	line-height: 1.3;
}

.npocto-saved-subtitle {
	font-size: 0.88rem;
	color: #64748b;
	margin: 0;
	line-height: 1.5;
}

.npocto-saved-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.npocto-saved-count-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: #fff7ed;
	color: #ea580c;
	border: 1px solid #ffedd5;
	padding: 0.5rem 0.95rem;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 700;
}

.npocto-saved-count-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ea580c;
	box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
	animation: npoctoPulse 2s infinite;
}

.npocto-saved-clear-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: #fef2f2;
	color: #ef4444;
	border: 1px solid #fee2e2;
	padding: 0.5rem 1rem;
	border-radius: 10px;
	font-size: 0.84rem;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
	outline: none;
}

.npocto-saved-clear-all-btn svg {
	transition: transform 0.2s ease;
}

.npocto-saved-clear-all-btn:hover {
	background: #ef4444;
	color: #ffffff;
	border-color: #ef4444;
	box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.npocto-saved-clear-all-btn:hover svg {
	transform: scale(1.1);
}

.npocto-saved-explore-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: #f8fafc;
	color: #475569;
	border: 1px solid #e2e8f0;
	padding: 0.5rem 1rem;
	border-radius: 10px;
	font-size: 0.84rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.npocto-saved-explore-link:hover {
	background: #ffffff;
	color: var(--npocto-primary, #F2891A);
	border-color: var(--npocto-primary, #F2891A);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   4. Saved Cards Grid & Item Architecture
   ========================================================================== */
.npocto-saved-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	gap: 1.5rem;
}

.npocto-saved-card {
	background: #ffffff;
	border-radius: 18px;
	border: 1px solid #f1f5f9;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
	position: relative;
}

.npocto-saved-card:hover {
	transform: translateY(-4px);
	border-color: rgba(242, 137, 26, 0.3);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.07);
}

/* Thumbnail Wrap */
.npocto-saved-thumb-wrap {
	width: 100%;
	height: 195px;
	position: relative;
	overflow: hidden;
	background: #f1f5f9;
}

.npocto-saved-thumb-link {
	display: block;
	width: 100%;
	height: 100%;
}

.npocto-saved-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	display: block;
}

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

/* Badges on Thumbnail */
.npocto-saved-badges {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	z-index: 2;
}

.npocto-saved-badge-cat {
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #ffffff;
	font-size: 0.76rem;
	font-weight: 700;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: background 0.2s ease;
}

.npocto-saved-badge-cat:hover {
	background: var(--npocto-primary, #F2891A);
	color: #ffffff;
}

.npocto-saved-badge-readtime {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #334155;
	font-size: 0.74rem;
	font-weight: 600;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Quick Delete Button */
.npocto-saved-remove-btn {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid rgba(239, 68, 68, 0.2);
	color: #ef4444;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 3;
	padding: 0;
	transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	outline: none;
}

.npocto-saved-remove-btn:hover {
	background: #ef4444;
	color: #ffffff !important;
	border-color: #ef4444;
	transform: scale(1.12);
	box-shadow: 0 6px 14px rgba(239, 68, 68, 0.4);
}

/* Card Body */
.npocto-saved-body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.npocto-saved-meta-top {
	display: flex;
	align-items: center;
	margin-bottom: 0.6rem;
}

.npocto-saved-date {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.78rem;
	color: #64748b;
}

.npocto-saved-date svg {
	color: #94a3b8;
}

.npocto-saved-card-title {
	font-size: clamp(0.98rem, 1.2vw, 1.05rem);
	font-weight: 700;
	line-height: 1.6;
	margin: 0 0 0.6rem 0;
	min-height: 3.2em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
}

.npocto-saved-card-title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.npocto-saved-card-title a:hover {
	color: var(--npocto-primary, #F2891A);
}

.npocto-saved-excerpt {
	font-size: 0.86rem;
	color: #64748b;
	line-height: 1.65;
	margin: 0 0 1.25rem 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	flex-grow: 1;
}

/* Card Footer */
.npocto-saved-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 0.85rem;
	border-top: 1px solid #f8fafc;
	margin-top: auto;
}

.npocto-saved-comments {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8rem;
	color: #94a3b8;
}

.npocto-saved-view-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: #fff7ed;
	color: #ea580c !important;
	border: 1px solid #ffedd5;
	padding: 0.35rem 0.85rem;
	border-radius: 8px;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.npocto-saved-view-btn svg {
	transition: transform 0.25s ease;
}

.npocto-saved-card:hover .npocto-saved-view-btn {
	background: linear-gradient(135deg, #F2891A, #ea580c);
	color: #ffffff !important;
	border-color: #ea580c;
	box-shadow: 0 3px 10px rgba(242, 137, 26, 0.3);
}

.npocto-saved-card:hover .npocto-saved-view-btn svg {
	transform: translateX(-3px);
}

/* Card Removal Animation */
.npocto-saved-card.is-removing {
	animation: npoctoCardDismiss 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
	pointer-events: none;
}

@keyframes npoctoCardDismiss {
	0% {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
	100% {
		opacity: 0;
		transform: scale(0.85) translateY(20px);
	}
}

/* ==========================================================================
   5. Deluxe Empty State UI/UX
   ========================================================================== */
.npocto-saved-empty {
	width: 100%;
	display: flex;
	justify-content: center;
	margin-top: 1rem;
	animation: npoctoFadeInUp 0.45s ease-out;
}

.npocto-saved-empty-card {
	background: #ffffff;
	border: 1px dashed #cbd5e1;
	border-radius: 24px;
	padding: 3.5rem 2rem;
	max-width: 680px;
	width: 100%;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
	position: relative;
	overflow: hidden;
}

.npocto-saved-empty-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #F2891A, #ea580c, #3b82f6);
}

.npocto-saved-empty-illustration {
	width: 240px;
	max-width: 100%;
	margin: 0 auto 1.5rem;
	animation: npoctoFloat 4s ease-in-out infinite;
}

.npocto-empty-svg {
	width: 100%;
	height: auto;
	display: block;
}

.npocto-saved-empty-title {
	font-size: clamp(1.2rem, 2vw, 1.45rem);
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 0.75rem 0;
	line-height: 1.4;
}

.npocto-saved-empty-desc {
	font-size: 0.94rem;
	color: #64748b;
	line-height: 1.8;
	max-width: 500px;
	margin: 0 auto 1.75rem auto;
}

.npocto-saved-empty-cta-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 2rem;
}

.npocto-saved-empty-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: linear-gradient(135deg, #F2891A, #ea580c);
	color: #ffffff !important;
	padding: 0.85rem 2rem;
	border-radius: 12px;
	font-size: 0.96rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(242, 137, 26, 0.35);
	transition: transform 0.28s ease, box-shadow 0.28s ease;
	position: relative;
	overflow: hidden;
}

.npocto-saved-empty-btn svg {
	transition: transform 0.25s ease;
}

.npocto-saved-empty-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(242, 137, 26, 0.45);
}

.npocto-saved-empty-btn:hover svg:last-child {
	transform: translateX(-4px);
}

/* Suggested Categories Pills */
.npocto-saved-empty-cats {
	border-top: 1px solid #f1f5f9;
	padding-top: 1.75rem;
	margin-top: 1rem;
}

.npocto-empty-cats-title {
	display: block;
	font-size: 0.85rem;
	font-weight: 700;
	color: #94a3b8;
	margin-bottom: 1rem;
}

.npocto-empty-cats-pills {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.npocto-empty-cat-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 600;
	color: #475569;
	transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.npocto-empty-cat-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #cbd5e1;
	transition: background 0.2s ease;
}

.npocto-empty-cat-count {
	font-size: 0.74rem;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	color: #64748b;
}

.npocto-empty-cat-pill:hover {
	background: #fff7ed;
	border-color: #ffedd5;
	color: #ea580c;
	transform: translateY(-2px);
}

.npocto-empty-cat-pill:hover .npocto-empty-cat-dot {
	background: #ea580c;
}

/* ==========================================================================
   6. Built-in Confirmation Modal
   ========================================================================== */
.npocto-confirm-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.npocto-confirm-modal.is-active {
	opacity: 1;
	visibility: visible;
}

.npocto-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.npocto-modal-dialog {
	position: relative;
	z-index: 2;
	background: #ffffff;
	border-radius: 22px;
	padding: 2.2rem;
	max-width: 440px;
	width: 100%;
	text-align: center;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
	transform: scale(0.92);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.npocto-confirm-modal.is-active .npocto-modal-dialog {
	transform: scale(1);
}

.npocto-modal-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #fef2f2;
	color: #ef4444;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.25rem auto;
	box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2);
}

.npocto-modal-title {
	font-size: 1.25rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 0.5rem 0;
}

.npocto-modal-desc {
	font-size: 0.9rem;
	color: #64748b;
	line-height: 1.7;
	margin: 0 0 1.5rem 0;
}

.npocto-modal-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	justify-content: center;
}

.npocto-modal-btn {
	padding: 0.65rem 1.4rem;
	border-radius: 10px;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	border: none;
	transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
	outline: none;
}

.npocto-modal-btn-confirm {
	background: #ef4444;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.npocto-modal-btn-confirm:hover {
	background: #dc2626;
	transform: translateY(-1px);
}

.npocto-modal-btn-cancel {
	background: #f1f5f9;
	color: #475569;
}

.npocto-modal-btn-cancel:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* ==========================================================================
   7. Keyframes Animations
   ========================================================================== */
@keyframes npoctoFloat {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

@keyframes npoctoPulse {
	0%, 100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.3);
		opacity: 0.7;
	}
}

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

@keyframes npoctoSpin {
	to {
		transform: rotate(360deg);
	}
}

/* ==========================================================================
   8. Responsive Media Queries
   ========================================================================== */
@media (max-width: 768px) {
	.npocto-saved-header {
		padding: 1.25rem;
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.npocto-saved-header-start {
		gap: 0.85rem;
	}

	.npocto-saved-icon-badge {
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}

	.npocto-saved-actions {
		width: 100%;
		justify-content: space-between;
	}

	.npocto-saved-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.npocto-saved-empty-card {
		padding: 2.5rem 1.25rem;
	}
}
