/**
 * Sant Chat AI - Classic Theme (Default)
 *
 * @package Sant_Chat_AI
 * @since 1.0.0
 *
 * This file contains visual styles for the Classic design system.
 * Color theme variations are applied through CSS custom properties.
 */

/* ==========================================================================
   Font Import
   ========================================================================== */

/* System font stack — replaces Google Fonts Inter for WordPress.org compliance */

/* ==========================================================================
   Text Size Settings
   ========================================================================== */

#chat-window,
#chat-window *,
#message-area,
#message-area *,
#user-input,
#chat-window p,
#chat-window div,
.sant-message-text,
.sant-message-text p,
#sant-quick-replies button {
	font-family: var(--sant-font-family, 'Inter', sans-serif);
	font-size: var(--sant-font-size, 16px);
	line-height: var(--sant-line-height, 1.6);
}

#sant-quick-replies button {
	font-weight: 500 !important;
}

/* Header title should keep its own size */
#chat-window h3 {
	font-size: 20px !important;
	line-height: 1.2 !important;
}

/* ==========================================================================
   Scrollbar Styling
   ========================================================================== */

#message-area {
	scrollbar-width: thin;
	scrollbar-color: #CBD5E1 #F8FAFC;
}

#message-area::-webkit-scrollbar {
	width: 8px;
}

#message-area::-webkit-scrollbar-track {
	background: transparent;
}

#message-area::-webkit-scrollbar-thumb {
	background-color: #CBD5E1;
	border-radius: 10px;
	border: 2px solid transparent;
	background-clip: padding-box;
}

#message-area::-webkit-scrollbar-thumb:hover {
	background-color: #94A3B8;
}

/* ==========================================================================
   Rating Buttons
   ========================================================================== */

.sant-rating-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 2px 4px;
	margin-left: 4px;
	opacity: 0.5;
	transition: opacity 0.2s, transform 0.2s;
}

.sant-rating-btn:hover {
	opacity: 1;
	transform: scale(1.1);
}

.sant-rating-btn.sant-rated-selected {
	opacity: 1;
	cursor: default;
}

/* ==========================================================================
   Navigation Tabs
   ========================================================================== */

.nav-tab {
	position: relative;
	color: #A0AEC0;
	transition: all 0.3s ease;
}

.nav-tab.active {
	position: relative;
	color: var(--sant-send-btn-color, #6366F1);
	font-weight: 600;
}

.nav-tab.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 32px;
	height: 3px;
	background: var(--sant-send-btn-color, #6366F1);
	border-radius: 3px 3px 0 0;
}

.nav-tab:hover {
	transform: translateY(-1px);
	background: linear-gradient(to bottom, #F7FAFC 0%, transparent 100%);
}

.nav-tab svg {
	stroke: #A0AEC0;
	transition: all 0.3s ease;
}

.nav-tab.active svg {
	stroke: var(--sant-send-btn-color, #6366F1);
}

/* ==========================================================================
   Messages Tab Button
   ========================================================================== */

.messages-cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px var(--sant-light-accent, rgba(99, 102, 241, 0.3)) !important;
}

.messages-cta-btn:active {
	transform: translateY(0);
}

/* ==========================================================================
   Help Tab Cards
   ========================================================================== */

.help-article-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
	border-color: var(--sant-send-btn-color, #6366F1) !important;
}

/* ==========================================================================
   Session Cards in Messages Tab
   ========================================================================== */

.session-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
	border-color: var(--sant-send-btn-color, #6366F1) !important;
}

/* ==========================================================================
   Help Search Input
   ========================================================================== */

#help-search:focus {
	outline: none;
	border-color: var(--sant-send-btn-color, #6366F1);
	box-shadow: 0 0 0 3px var(--sant-light-accent, rgba(99, 102, 241, 0.3)), 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

/* ==========================================================================
   News/Blog Cards
   ========================================================================== */

.news-card {
	background: #F8FAFC;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 12px;
	transition: all 0.2s ease;
	cursor: pointer;
	border: 1px solid #E2E8F0;
}

.news-card:hover {
	background: #F1F5F9;
	border-color: var(--sant-send-btn-color, #6366F1);
}

/* Featured card with image */
.news-card.news-featured {
	background: white;
	border: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	margin-bottom: 16px;
}

.news-card.news-featured:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.news-card-image {
	width: 100%;
	height: 160px;
	object-fit: cover;
	background: #E2E8F0;
}

.news-card-content {
	padding: 16px;
}

.news-card-title {
	font-size: 15px;
	font-weight: 600;
	color: #1A202C;
	margin: 0;
	line-height: 1.4;
}

/* Compact list cards */
.news-card.news-compact {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	gap: 12px;
}

.news-card.news-compact .news-card-title {
	font-size: 14px;
	font-weight: 500;
}