/**
 * Minimal Theme - Global Components CSS
 *
 * Reusable components: Cards, Buttons, Badges, Breadcrumbs
 *
 * @package Minimal Theme
 */

/* ========================================
   CARD COMPONENT
   ======================================== */

.scp-card {
	background: var(--white);
	border: 1.5px solid var(--gray-200);
	border-radius: 16px;
	padding: 24px;
	transition: all 280ms var(--ease);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.scp-card:hover {
	box-shadow: var(--shadow-md);
}

.scp-card-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--navy);
	margin-bottom: 8px;
}

.scp-card-content {
	font-size: 16px;
	color: var(--gray-700);
	line-height: 1.7;
	text-align: justify;
}

/* ========================================
   BUTTON COMPONENT
   ======================================== */

.scp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 600;
	border-radius: 9999px;
	padding: 12px 24px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 180ms var(--ease);
	text-decoration: none;
	font-size: 15px;
}

.scp-btn-primary {
	background: var(--teal);
	color: var(--white);
}

.scp-btn-primary:hover {
	background: #147aa0;
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.scp-btn-secondary {
	background: var(--white);
	color: var(--navy);
	border-color: var(--gray-200);
}

.scp-btn-secondary:hover {
	border-color: var(--teal);
	color: var(--teal);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.scp-btn-pill {
	border-radius: 9999px;
}

.scp-btn-sm {
	padding: 8px 16px;
	font-size: 14px;
}

/* ========================================
   BADGE COMPONENT
   ======================================== */

.scp-badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
}

.scp-badge-category {
	background: rgba(27,143,175,0.1);
	color: var(--teal);
}

.scp-badge-difficulty {
	background: rgba(27,143,175,0.1);
	color: var(--teal);
}

/* Difficulty-specific classes (used in template) */
.scp-difficulty-easy {
	background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
	color: #15803d;
	border: 1px solid #86efac;
	font-weight: 700;
}

.scp-difficulty-medium {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	color: #b45309;
	border: 1px solid #fcd34d;
	font-weight: 700;
}

.scp-difficulty-hard {
	background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
	color: #b91c1c;
	border: 1px solid #fca5a5;
	font-weight: 700;
}

/* ========================================
   CATEGORY CARD COMPONENT
   ======================================== */

.scp-category-card {
	background: var(--white);
	border: 1.5px solid var(--gray-200);
	border-radius: 14px;
	padding: 18px;
	transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: relative;
	overflow: hidden;
}

.scp-category-card:hover {
	transform: translateY(-4px);
	border-color: var(--teal);
	box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

.scp-category-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--teal) 0%, var(--navy) 100%);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.scp-category-card:hover::before {
	transform: scaleX(1);
}

.scp-card-header {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.scp-card-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	flex-shrink: 0;
	transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.scp-category-card:hover .scp-card-icon {
	transform: scale(1.1) rotate(3deg);
}

.scp-card-title {
	font-family: 'Sora', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--navy);
	margin: 0;
	line-height: 1.3;
}

.scp-card-desc {
	font-size: 13px;
	color: var(--gray-500);
	line-height: 1.5;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.scp-card-stats {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.scp-stat-badge {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 5px 12px;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 600;
	background: var(--gray-100);
	color: var(--gray-700);
	transition: all 180ms var(--ease);
}

.scp-stat-badge:hover {
	transform: translateY(-1px);
}

.scp-stat-badge.questions {
	background: rgba(27,143,175,0.12);
	color: var(--teal);
	border: 1px solid rgba(27,143,175,0.2);
}

.scp-stat-badge.exams {
	background: rgba(245,166,35,0.15);
	color: var(--gold-dark);
	border: 1px solid rgba(245,166,35,0.25);
}

.scp-stat-badge svg {
	width: 13px;
	height: 13px;
}

.scp-card-actions {
	display: flex;
	gap: 10px;
	margin-top: auto;
}

.scp-card-actions .scp-btn {
	flex: 1;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	height: 40px;
	border-radius: 10px;
	transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.scp-card-actions .scp-btn:first-child {
	border-right: 1px solid var(--gray-200);
}

.scp-card-actions .scp-btn-outline {
	background: rgba(27,143,175,0.1);
	color: var(--teal);
	border: 1.5px solid rgba(27,143,175,0.3);
}

.scp-card-actions .scp-btn-outline:hover {
	background: var(--teal);
	color: var(--white);
	border-color: var(--teal);
}

.scp-card-actions .scp-btn-solid {
	background: var(--navy);
	color: var(--white);
	border: 1.5px solid var(--navy);
}

.scp-card-actions .scp-btn-solid:hover {
	background: var(--teal);
	border-color: var(--teal);
}

.scp-card-actions .scp-btn:hover {
	transform: translateY(-2px);
}

@media (max-width: 640px) {
	.scp-card-actions {
		flex-direction: column;
		gap: 8px;
	}

	.scp-card-actions .scp-btn {
		width: 100%;
	}

	.scp-card-actions .scp-btn:first-child {
		border-right: none;
		border-bottom: 1px solid var(--gray-200);
	}
}

/* Fallback classes for consistency */
.scp-badge-easy {
	background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
	color: #15803d;
	border: 1px solid #86efac;
	font-weight: 700;
}

.scp-badge-medium {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	color: #b45309;
	border: 1px solid #fcd34d;
	font-weight: 700;
}

.scp-badge-hard {
	background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
	color: #b91c1c;
	border: 1px solid #fca5a5;
	font-weight: 700;
}

/* ========================================
   BREADCRUMB COMPONENT
   ======================================== */

.scp-hero-breadcrumb {
	margin-bottom: 24px;
}

.scp-breadcrumb-list {
	display: flex;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.scp-breadcrumb-list li {
	color: rgba(255,255,255,0.7);
	font-size: 14px;
}

.scp-breadcrumb-list li:not(:last-child)::after {
	content: '›';
	margin-left: 12px;
	color: rgba(255,255,255,0.5);
}

.scp-breadcrumb-list li a {
	color: rgba(255,255,255,0.9);
	text-decoration: none;
	transition: color 180ms var(--ease);
}

.scp-breadcrumb-list li a:hover {
	color: var(--white);
}

.scp-breadcrumb-list li.active {
	color: var(--white);
	font-weight: 600;
}

/* ========================================
   HERO COMPONENT
   ======================================== */

.scp-hero-base {
	background: var(--navy);
	padding: calc(var(--header-height, 80px) + 40px) 0 60px;
	position: relative;
	overflow-x: hidden;
	width: 100%;
	max-width: none;
}

.scp-hero-base-inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	text-align: center;
}

.scp-hero-base h1 {
	font-family: 'Sora', sans-serif;
	font-size: clamp(36px, 5vw, 52px);
	font-weight: 800;
	line-height: 1.1;
	color: var(--white);
	margin: 0 0 16px;
}

.scp-hero-base p {
	font-size: 18px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.65);
	margin: 0 0 32px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* Hero Background Elements */
.scp-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.scp-hero-blob {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.scp-hero-dots {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
	background-size: 32px 32px;
}

/* Full-height Hero (for homepage) */
.scp-hero-full {
	height: 100vh;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	overflow: hidden;
}

/* Compact Hero (for archive/verification pages) */
.scp-hero-compact {
	min-height: auto;
}

/* Responsive Hero */
@media (max-width: 991px) {
	.scp-hero-base {
		padding: calc(var(--header-height, 80px) + 30px) 0 50px;
	}
}

@media (max-width: 700px) {
	.scp-hero-base {
		padding: calc(var(--header-height, 80px) + 20px) 0 30px;
	}

	.scp-hero-base h1 {
		font-size: 32px;
	}

	.scp-hero-base p {
		font-size: 16px;
	}

	.scp-hero-full {
		height: auto;
		min-height: auto;
	}
}

@media (max-width: 575px) {
	.scp-hero-base {
		padding: calc(var(--header-height, 80px) + 20px) 0 30px;
	}
}

