/* ===== BASE CARD STYLES ===== */

.cyber-card {
	background: rgba(12, 17, 43, 0.75);
	border: var(--cyber-border);
	border-radius: var(--cyber-radius-md);
	box-shadow: var(--cyber-shadow-soft);
	padding: 1.5rem;
	position: relative;
	overflow: hidden;
	transition: all var(--cyber-transition);
}

.cyber-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at top right, rgba(102, 126, 234, 0.18), transparent 55%);
	opacity: 0.7;
	pointer-events: none;
}

.cyber-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
	position: relative;
	z-index: 1;
	gap: 0.75rem;
}

.cyber-card-title {
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.cyber-card-body {
	position: relative;
	z-index: 1;
}

.cyber-card-footer {
	position: relative;
	z-index: 1;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cyber-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--cyber-shadow);
	border-color: rgba(102, 126, 234, 0.3);
}

/* ===== CARD VARIANTS ===== */

.cyber-card--glass {
	background: var(--cyber-glass-bg);
	backdrop-filter: blur(var(--cyber-glass-blur));
	border: 1px solid var(--cyber-glass-border);
}

.cyber-card--success {
	border-left: 4px solid var(--cyber-success);
}

.cyber-card--warning {
	border-left: 4px solid var(--cyber-warning);
}

.cyber-card--danger {
	border-left: 4px solid var(--cyber-danger);
}

.cyber-card--info {
	border-left: 4px solid var(--cyber-accent-secondary);
}

.cyber-card--primary {
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
	border-color: var(--cyber-accent-primary);
}

.cyber-card--compact {
	padding: 1rem;
}

.cyber-card--flat {
	box-shadow: none;
}

.cyber-card--no-hover:hover {
	transform: none;
	box-shadow: var(--cyber-shadow-soft);
	border-color: var(--cyber-border);
}

/* ===== CARD GRID LAYOUT ===== */

.cyber-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

.cyber-card-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

.cyber-card-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.cyber-card-grid--4 {
	grid-template-columns: repeat(4, 1fr);
}

/* ===== RESPONSIVE - TABLET ===== */

@media (max-width: 768px) {
	.cyber-card {
		padding: 1.25rem;
	}

	.cyber-card-title {
		font-size: 1rem;
	}

	.cyber-card-header {
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.cyber-card-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.cyber-card-grid--2,
	.cyber-card-grid--3,
	.cyber-card-grid--4 {
		grid-template-columns: 1fr;
	}

	/* On tablet, disable hover lift effect */
	.cyber-card:hover {
		transform: none;
	}
}

/* ===== RESPONSIVE - MOBILE ===== */

@media (max-width: 480px) {
	.cyber-card {
		padding: 1rem;
		border-radius: var(--cyber-radius-sm);
	}

	.cyber-card--compact {
		padding: 0.75rem;
	}

	.cyber-card-title {
		font-size: 0.95rem;
	}

	.cyber-card-header {
		margin-bottom: 0.85rem;
	}

	.cyber-card-footer {
		margin-top: 0.85rem;
		padding-top: 0.85rem;
	}

	.cyber-card-grid {
		gap: 1rem;
	}

	/* Disable hover effects on mobile (touch devices) */
	.cyber-card:hover {
		transform: none;
		box-shadow: var(--cyber-shadow-soft);
		border-color: var(--cyber-border);
	}

	/* Add tap highlight for better mobile feedback */
	.cyber-card:active {
		opacity: 0.95;
		transform: scale(0.99);
		transition-duration: 100ms;
	}
}
