/**
 * Reference Archive & Single Page Styles
 * 
 * Styles for archive-reference.php and single-reference.php templates
 * 
 * @package GRPCMedia
 * @since 1.0.0
 */

/* ===== FORCED LIGHT MODE (No Dark Mode!) ===== */
.reference-archive-page,
.reference-single-page,
.reference-archive-page *,
.reference-single-page *,
body.post-type-archive-reference,
body.single-reference {
	color-scheme: light !important;
}

body.post-type-archive-reference,
body.single-reference {
	background: #f8f9fa !important;
}

.reference-archive-page .site-content,
.reference-single-page .site-content {
	background: #f8f9fa !important;
}

.reference-single {
	background: #ffffff !important;
	border-color: #f0f0f0 !important;
}

.reference-single-title,
.reference-archive-title,
.reference-category-menu-title,
.reference-card-title {
	color: #1a1a1a !important;
}

.reference-single-content-area,
.reference-card-excerpt {
	color: #333333 !important;
}

.reference-category-menu {
	background: #ffffff !important;
}

.reference-category-item a {
	color: #495057 !important;
}

/* ===== LAYOUT (25% + 75%) - Archive & Single ===== */
.reference-archive-page .row,
.reference-single-page .row {
	display: flex;
	flex-wrap: wrap;
}

.reference-sidebar {
	flex: 0 0 25%;
	max-width: 25%;
	padding-right: 30px;
}

.reference-main-content,
.reference-single-content {
	flex: 0 0 75%;
	max-width: 75%;
	padding-left: 30px;
}

/* ===== ARCHIVE HEADER ===== */
.reference-archive-header {
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-bottom: 2px solid #f0f0f0;
}

.reference-archive-title {
	margin: 0 0 15px 0;
	font-size: 32px;
	font-weight: 700;
	color: #333333;
}

.reference-archive-description {
	font-size: 16px;
	color: #666666;
	line-height: 1.6;
}

/* ===== PAGINATION ===== */
.reference-pagination {
	margin-top: 50px;
	text-align: center;
}

.reference-pagination .nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.reference-pagination a,
.reference-pagination .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: #f5f5f5;
	color: #666666;
	font-weight: 600;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.reference-pagination a:hover {
	background: #007cba;
	color: #ffffff;
}

.reference-pagination .current {
	background: #007cba;
	color: #ffffff;
}

/* ===== SINGLE REFERENCE ===== */
.reference-single {
	background: #ffffff;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	border: 1px solid #f0f0f0;
}

.reference-single-header {
	margin-bottom: 40px;
	padding-bottom: 30px;
	border-bottom: 1px solid #e9ecef;
	position: relative;
	background: linear-gradient(to bottom, rgba(0, 124, 186, 0.02) 0%, transparent 100%);
	padding: 25px;
	border-radius: 12px;
	margin-left: -25px;
	margin-right: -25px;
	margin-top: -15px;
}

.reference-single-header::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 40px;
	width: 100px;
	height: 4px;
	background: linear-gradient(to right, #007cba 0%, #005a8a 50%, transparent 100%);
	border-radius: 2px;
}

.reference-single-title {
	margin: 0 0 25px 0;
	font-size: 42px;
	font-weight: 800;
	color: #1a1a1a;
	line-height: 1.2;
	letter-spacing: -0.5px;
}

.reference-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 14px;
	color: #333333;
	margin-bottom: 28px;
	align-items: center;
}

.reference-meta > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #f8f9fa;
	border: 1px solid #e1e4e8;
	border-radius: 6px;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.2px;
	transition: all 0.2s ease;
	box-shadow: none;
	text-transform: none;
	line-height: 1.4;
}

.reference-meta > span:hover {
	border-color: #cbd3da;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.reference-meta i {
	font-size: 14px;
	opacity: 0.75;
}

/* Kategori Meta */
.reference-meta-categories {
	background: #e8f4f8 !important;
	border-color: #c5e3f0 !important;
	color: #0366d6 !important;
}

.reference-meta-categories i {
	color: #0366d6 !important;
	opacity: 1;
}

.reference-meta-categories a {
	color: #0366d6 !important;
	text-decoration: none;
	font-weight: 600;
}

.reference-meta-categories:hover {
	background: #d1ecf7 !important;
	border-color: #0366d6 !important;
}

/* Etiket Meta */
.reference-meta-tag-single {
	background: #24292e !important;
	border-color: #24292e !important;
	color: #ffffff !important;
	padding: 7px 12px !important;
}

.reference-meta-tag-single i {
	color: #ffffff !important;
	opacity: 0.85;
}

.reference-meta-tag-single:hover {
	background: #1b1f23 !important;
	border-color: #1b1f23 !important;
}

/* Fiyat Meta */
.reference-meta-price {
	background: #d4edda !important;
	border-color: #a7d7b8 !important;
	color: #155724 !important;
	font-weight: 700;
	padding: 8px 16px !important;
}

.reference-meta-price i {
	color: #28a745 !important;
	opacity: 1;
}

.reference-meta-price:hover {
	background: #c3e6cb !important;
	border-color: #28a745 !important;
}

/* Tarih Meta */
.reference-meta-date {
	background: #ffffff !important;
	border-color: #d1d5da !important;
	color: #586069 !important;
}

.reference-meta-date i {
	color: #586069 !important;
	opacity: 0.75;
}

.reference-meta-date:hover {
	background: #f6f8fa !important;
	border-color: #959da5 !important;
}

.reference-single-image {
	margin-bottom: 45px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
	position: relative;
}

.reference-single-image::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
	pointer-events: none;
}

.reference-single-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.5s ease;
}

.reference-single-image:hover img {
	transform: scale(1.05);
}

.reference-single-content-area {
	margin-bottom: 50px;
	font-size: 17px;
	line-height: 1.9;
	color: #333333;
}

.reference-single-content-area h2,
.reference-single-content-area h3,
.reference-single-content-area h4 {
	margin-top: 30px;
	margin-bottom: 15px;
	color: #1a1a1a;
	font-weight: 700;
}

.reference-single-content-area h2 {
	font-size: 28px;
	border-bottom: 2px solid #007cba;
	padding-bottom: 10px;
}

.reference-single-content-area p {
	margin-bottom: 20px;
}

.reference-single-content-area ul,
.reference-single-content-area ol {
	margin: 20px 0;
	padding-left: 30px;
}

.reference-single-content-area li {
	margin-bottom: 10px;
}

/* ===== NAVIGATION (Prev/Next) ===== */
.reference-navigation {
	margin-top: 50px;
	padding-top: 30px;
	border-top: 3px solid #f0f0f0;
	position: relative;
}

.reference-navigation::before {
	content: '';
	position: absolute;
	top: -3px;
	left: 0;
	width: 80px;
	height: 3px;
	background: linear-gradient(to right, #007cba, #005a8a);
}

.reference-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 25px;
}

.reference-navigation .nav-previous,
.reference-navigation .nav-next {
	flex: 1;
	max-width: 48%;
}

.reference-navigation a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 24px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	color: #333333;
	text-decoration: none;
	border-radius: 10px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid transparent;
	position: relative;
	overflow: hidden;
}

.reference-navigation a::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #007cba 0%, #005a8a 100%);
	transition: left 0.5s ease;
	z-index: 0;
}

.reference-navigation a:hover::before {
	left: 0;
}

.reference-navigation a:hover {
	color: #ffffff;
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 124, 186, 0.3);
	border-color: #007cba;
}

.reference-navigation .nav-next a {
	justify-content: flex-end;
}

.reference-navigation a span {
	font-weight: 700;
	font-size: 15px;
	position: relative;
	z-index: 1;
}

.reference-navigation a i {
	position: relative;
	z-index: 1;
	font-size: 16px;
	transition: transform 0.3s ease;
}

.reference-navigation .nav-previous a:hover i {
	transform: translateX(-4px);
}

.reference-navigation .nav-next a:hover i {
	transform: translateX(4px);
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
	.reference-archive-page .row,
	.reference-single-page .row {
		flex-direction: column;
	}

	.reference-sidebar {
		flex: 0 0 100%;
		max-width: 100%;
		padding-right: 0;
		margin-bottom: 30px;
	}

	.reference-main-content,
	.reference-single-content {
		flex: 0 0 100%;
		max-width: 100%;
		padding-left: 0;
	}

	.reference-single {
		padding: 25px;
		border-radius: 8px;
	}

	.reference-archive-title {
		font-size: 24px;
	}

	.reference-single-title {
		font-size: 28px;
	}

	.reference-navigation .nav-links {
		flex-direction: column;
	}

	.reference-navigation .nav-previous,
	.reference-navigation .nav-next {
		max-width: 100%;
	}

	.reference-meta {
		flex-direction: column;
		gap: 12px;
	}
}

/* ===== RESPONSIVE: TABLET ===== */
@media (min-width: 769px) and (max-width: 1024px) {
	.reference-sidebar {
		flex: 0 0 30%;
		max-width: 30%;
		padding-right: 20px;
	}

	.reference-main-content,
	.reference-single-content {
		flex: 0 0 70%;
		max-width: 70%;
		padding-left: 20px;
	}

	.reference-single {
		padding: 30px;
	}

	.reference-archive-title {
		font-size: 28px;
	}

	.reference-single-title {
		font-size: 32px;
	}
}

/* ===== RESPONSIVE: LARGE DESKTOP ===== */
@media (min-width: 1440px) {
	.reference-sidebar {
		flex: 0 0 22%;
		max-width: 22%;
	}

	.reference-main-content,
	.reference-single-content {
		flex: 0 0 78%;
		max-width: 78%;
	}

	.reference-single {
		padding: 50px;
	}

	.reference-single-title {
		font-size: 48px;
	}
}

