/*
 * Portfolio Detail Page - New Design
 * Inspired by modern React design with gradients and cards
 */

/* ==========================================================================
   Back Button
   ========================================================================== */

.portfolio-back-button {
	padding: 2rem 0 1rem;
}

.portfolio-back-button .container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.back-link {
	display: inline-flex;
	align-items: center;
	color: #6b7280;
	text-decoration: none;
	transition: color 0.3s ease;
	font-size: 15px;
}

.back-link:hover {
	color: #2563eb;
}

.back-link i {
	margin-right: 0.5rem;
	font-size: 14px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.portfolio-hero-section {
	background: linear-gradient(to right, #eff6ff, #dbeafe);
	padding: 4rem 0;
}

.portfolio-hero-section .container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.portfolio-hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

@media (min-width: 768px) {
	.portfolio-hero-grid {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
	}
}

/* Hero Info */
.portfolio-hero-info {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.portfolio-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.portfolio-tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: #2563eb;
	color: #ffffff;
	font-size: 12px;
	font-weight: 500;
	border-radius: 9999px;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.portfolio-hero-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.2;
	margin: 0;
}

@media (min-width: 768px) {
	.portfolio-hero-title {
		font-size: 3rem;
	}
}

.portfolio-hero-description {
	font-size: 1.25rem;
	color: #374151;
	line-height: 1.6;
}

.portfolio-hero-description p {
	margin: 0;
}

/* Info Cards */
.portfolio-info-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.portfolio-info-cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

.portfolio-info-card {
	background: #ffffff;
	border-radius: 0.75rem;
	padding: 1.25rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-info-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.portfolio-info-card i {
	color: #2563eb;
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.info-label {
	font-size: 14px;
	color: #6b7280;
	margin: 0.5rem 0 0.25rem;
}

.info-value {
	font-size: 18px;
	font-weight: 500;
	color: #111827;
	margin: 0;
}

/* Hero Image */
.portfolio-hero-image {
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.portfolio-featured-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */

.portfolio-detail-wrapper {
	padding: 4rem 0;
}

.portfolio-detail-wrapper .container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.portfolio-detail-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4rem;
}

@media (min-width: 1024px) {
	.portfolio-detail-grid {
		grid-template-columns: 2fr 1fr;
		gap: 4rem;
	}
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.portfolio-section {
	margin-bottom: 4rem;
}

.section-title {
	font-size: 2rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
	.section-title {
		font-size: 2.25rem;
	}
}

.section-content {
	color: #374151;
	line-height: 1.75;
	margin-bottom: 1.5rem;
}

.section-content p {
	margin-bottom: 1rem;
}

.section-content p:last-child {
	margin-bottom: 0;
}

/* Bullet Points */
.section-points {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0;
}

.section-points li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	color: #374151;
	line-height: 1.6;
}

.section-points li i {
	color: #2563eb;
	font-size: 1.25rem;
	margin-top: 0.125rem;
	flex-shrink: 0;
}

/* Quote */
.section-quote {
	background: #f9fafb;
	border-radius: 0.75rem;
	padding: 1.5rem;
	margin: 2rem 0;
}

.section-quote blockquote {
	margin: 0;
	padding: 0;
	border: none;
}

.section-quote blockquote p {
	color: #374151;
	font-style: italic;
	font-size: 1.1rem;
	line-height: 1.7;
	margin: 0;
}

.quote-author {
	color: #6b7280;
	margin: 0.75rem 0 0;
	font-size: 14px;
}

/* ==========================================================================
   Solution Section
   ========================================================================== */

.solution-images-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin: 2rem 0;
}

@media (min-width: 768px) {
	.solution-images-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.solution-image {
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.solution-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* ==========================================================================
   Results Section
   ========================================================================== */

.results-metrics-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin: 2rem 0;
}

@media (min-width: 768px) {
	.results-metrics-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.metric-card {
	background: #eff6ff;
	border-radius: 0.75rem;
	padding: 1.5rem;
	text-align: center;
	transition: transform 0.3s ease;
}

.metric-card:hover {
	transform: translateY(-4px);
}

.metric-value {
	font-size: 2.5rem;
	font-weight: 700;
	color: #2563eb;
	margin: 0 0 0.5rem;
}

.metric-label {
	color: #374151;
	font-size: 15px;
	margin: 0;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.portfolio-detail-sidebar {
	position: relative;
}

@media (min-width: 1024px) {
	.portfolio-sidebar-sticky {
		position: sticky;
		top: 2rem;
	}
}

.sidebar-box {
	background: #ffffff;
	border-radius: 1rem;
	padding: 1.5rem;
	margin-bottom: 2rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-box-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 1rem;
}

/* Key Outcomes Box */
.key-outcomes-box {
	background: #eff6ff;
}

.key-outcomes-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.key-outcomes-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 1rem;
	color: #374151;
}

.key-outcomes-list li:last-child {
	margin-bottom: 0;
}

.key-outcomes-list li i {
	color: #2563eb;
	font-size: 1.25rem;
	margin-top: 0.125rem;
	flex-shrink: 0;
}

/* CTA Box */
.cta-box {
	background: #f9fafb;
}

.cta-text {
	color: #374151;
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.btn-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.75rem 1.5rem;
	background: #2563eb;
	color: #ffffff;
	border-radius: 0.5rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.3s ease;
}

.btn-cta:hover {
	background: #1d4ed8;
	color: #ffffff;
}

.btn-cta i {
	font-size: 14px;
	transition: transform 0.3s ease;
}

.btn-cta:hover i {
	transform: translateX(4px);
}

/* ==========================================================================
   Related Projects
   ========================================================================== */

.portfolio-related-section {
	background: #f9fafb;
	padding: 4rem 0;
}

.portfolio-related-section .container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.related-title {
	font-size: 2rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 3rem;
}

@media (min-width: 768px) {
	.related-title {
		font-size: 2.25rem;
	}
}

.related-projects-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.related-projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.related-project-card {
	display: block;
	background: #ffffff;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-decoration: none;
}

.related-project-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.related-project-image {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.related-project-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.related-project-card:hover .related-project-image img {
	transform: scale(1.1);
}

.related-project-content {
	padding: 1.5rem;
}

.related-project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.related-project-tags .tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: #eff6ff;
	color: #2563eb;
	font-size: 12px;
	font-weight: 500;
	border-radius: 9999px;
}

.related-project-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 0.5rem;
	transition: color 0.3s ease;
}

.related-project-card:hover .related-project-title {
	color: #2563eb;
}

.related-project-excerpt {
	color: #6b7280;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.related-project-link {
	display: flex;
	align-items: center;
	color: #2563eb;
	font-weight: 500;
	font-size: 15px;
}

.related-project-link i {
	margin-left: 0.5rem;
	font-size: 14px;
	transition: transform 0.3s ease;
}

.related-project-card:hover .related-project-link i {
	transform: translateX(4px);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 767px) {
	.portfolio-hero-section {
		padding: 2rem 0;
	}
	
	.portfolio-hero-title {
		font-size: 2rem;
	}
	
	.portfolio-hero-description {
		font-size: 1rem;
	}
	
	.portfolio-detail-wrapper {
		padding: 2rem 0;
	}
	
	.portfolio-section {
		margin-bottom: 2rem;
	}
	
	.section-title {
		font-size: 1.5rem;
	}
	
	.metric-value {
		font-size: 2rem;
	}
	
	.portfolio-related-section {
		padding: 2rem 0;
	}
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
	.portfolio-back-button,
	.portfolio-detail-sidebar,
	.portfolio-related-section {
		display: none;
	}
	
	.portfolio-detail-main {
		width: 100% !important;
	}
}

