/* Portfolio card components - used across multiple portfolio pages */
.container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 30px;
	justify-content: center;
	align-items: start;
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px 40px;
}

/* Tablet responsive */
@media (max-width: 1200px) {
	.container {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		gap: 25px;
		max-width: 900px;
		padding: 20px 30px;
	}
}

/* Mobile responsive - stack cards on smaller screens */
@media (max-width: 768px) {
	.container {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 15px 25px;
		max-width: 100%;
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.container {
		padding: 10px 20px;
		gap: 15px;
	}
}

.card {
	background-color: #1e1e1e;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	width: 100%;
	max-width: 450px;
	justify-self: center;
	overflow: hidden;
	transform: translateY(0) scale(1);
	will-change: transform, box-shadow, background;
}

.card:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 12px 30px rgba(0, 123, 255, 0.25), 
		0 8px 20px rgba(255, 255, 255, 0.1),
		0 0 25px rgba(0, 123, 255, 0.15);
}

.card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 10px 10px 0 0;
}

.card-content {
	padding: 20px 30px;
}

/* Mobile image adjustments */
@media (max-width: 768px) {
	.card img {
		height: 180px;
	}
	
	.card-content {
		padding: 15px 20px;
	}
}

.card-title a {
	font-size: 1.4em;
	margin-bottom: 10px;
	text-decoration: none;
	color: white;
	background: linear-gradient(to right, #ff5f5f, #f5d830);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	display: block;
	line-height: 1.3;
}

/* Mobile typography adjustments */
@media (max-width: 768px) {
	.card-title a {
		font-size: 1.2em;
	}
}

.card-description {
	max-height: 100%;
	position: relative;
	padding-top: 10px;
	line-height: 1.5;
	margin-bottom: 15px;
	font-size: 0.95em;
}

/* Mobile description adjustments */
@media (max-width: 768px) {
	.card-description {
		font-size: 0.9em;
		line-height: 1.4;
	}
}

.card-description a {
	background: linear-gradient(to right, #4700ec, #dd03ff);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-decoration: none;
}

.card-description .more-text {
	display: none;
}

.card-description.expanded .more-text {
	display: inline;
}

.card-description.expanded .short-text {
	display: none;
}

.card-stars {
	display: flex;
	align-items: center;
}

.card-stars img {
	width: 70px;
	height: auto;
	margin-right: 5px;
}

.tags {
	padding-top: 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.tags img {
	width: auto;
	height: 18px;
	margin-right: 2px;
}

/* Mobile tags adjustments */
@media (max-width: 768px) {
	.tags {
		padding-top: 15px;
		gap: 3px;
	}
	
	.tags img {
		height: 16px;
		margin-right: 1px;
	}
}

.read-more-btn {
	background: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 4px 10px;
	cursor: pointer;
	margin-top: 8px;
	font-size: 0.95em;
	font-family: inherit;
	transition: color 0.3s ease;
}

.read-more-btn:hover {
	background: #0056b3;
}

.read-more-btn:focus {
	outline: none;
}
