/**
 * Search History View Styles (Screenshot 1 Reference)
 *
 * @package AL_Muslim_Hindi
 */

.history-page-header {
	margin-bottom: 20px;
}

.history-page-title {
	font-size: 1.65rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--color-text-primary);
	margin-bottom: 4px;
}

.history-page-subtitle {
	font-size: 0.9rem;
	color: var(--color-text-secondary);
	margin-bottom: 16px;
}

.history-delete-menu-wrap {
	position: relative;
	display: inline-block;
	margin-bottom: 20px;
}

.btn-delete-history-dropdown {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: var(--color-surface);
	color: var(--color-danger);
	border: 1px solid rgba(217, 48, 37, 0.3);
	padding: 7px 14px;
	border-radius: var(--radius-full);
	font-size: 0.85rem;
	font-weight: 600;
}

.btn-delete-history-dropdown:hover {
	background-color: var(--color-danger-subtle);
}

.history-dropdown-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 80;
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-elevated);
	min-width: 180px;
	padding: 6px 0;
	display: none;
}

.history-dropdown-menu.is-visible {
	display: block;
}

.history-dropdown-item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 8px 16px;
	font-size: 0.85rem;
	color: var(--color-text-primary);
}

.history-dropdown-item:hover {
	background-color: var(--color-surface-hover);
	color: var(--color-danger);
}

/* History Card */
.almuslim-history-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 14px 16px;
	transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.almuslim-history-card:hover {
	background-color: var(--color-surface-hover);
	border-color: rgba(var(--color-accent-rgb), 0.3);
}

.history-left {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1;
	min-width: 0;
}

.history-clock-icon {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-full);
	background-color: var(--color-bg-alt);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text-muted);
	flex-shrink: 0;
}

.history-text-wrap {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.history-query-link {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--color-text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.history-query-link:hover {
	color: var(--color-accent);
}

.history-time {
	font-size: 0.78rem;
	color: var(--color-text-muted);
}

.history-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 12px;
}

.history-btn-search, .history-btn-delete {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-full);
	color: var(--color-text-secondary);
}

.history-btn-search:hover {
	color: var(--color-accent);
	background-color: var(--color-surface);
}

.history-btn-delete:hover {
	color: var(--color-danger);
	background-color: var(--color-danger-subtle);
}
