/*!
Theme Name: raysanplatform.com
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Bootstrap 5, güzel tipografi ve duyarlı tasarımla modern WordPress teması
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: raysanplatform-com
Tags: custom-background, custom-logo, custom-menu, featured-images, translation-ready, responsive, bootstrap, turkiye

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

raysanplatform.com is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/*--------------------------------------------------------------
# Variables and Custom Properties
--------------------------------------------------------------*/
:root {
	--primary-color: #007bff;
	--secondary-color: #6c757d;
	--success-color: #28a745;
	--info-color: #17a2b8;
	--warning-color: #ffc107;
	--danger-color: #dc3545;
	--light-color: #f8f9fa;
	--dark-color: #343a40;
	
	--font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	
	--border-radius: 0.375rem;
	--box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
	--box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
	
	--transition: all 0.3s ease;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body {
	font-family: var(--font-primary);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	color: #212529;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 1rem;
	letter-spacing: -0.01em;
}

h1 { 
	font-size: 2.5rem; 
	font-weight: 700;
	letter-spacing: -0.02em;
}

h2 { 
	font-size: 2rem; 
	font-weight: 600;
}

h3 { 
	font-size: 1.75rem; 
	font-weight: 600;
}

h4 { 
	font-size: 1.5rem; 
	font-weight: 500;
}

h5 { 
	font-size: 1.25rem; 
	font-weight: 500;
}

h6 { 
	font-size: 1rem; 
	font-weight: 500;
}

/* Улучшенная читаемость */
p {
	font-weight: 400;
	line-height: 1.7;
}

.lead {
	font-size: 1.125rem;
	font-weight: 300;
	line-height: 1.6;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.navbar-brand .brand-text {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
	text-decoration: none;
	letter-spacing: -0.01em;
}

.navbar-nav .nav-link {
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 0.95rem;
	transition: var(--transition);
	position: relative;
	letter-spacing: 0.01em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
	color: var(--primary-color);
}

.navbar-nav .nav-link::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 50%;
	background-color: var(--primary-color);
	transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
	width: 100%;
	left: 0;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.site-content {
	min-height: calc(100vh - 160px);
}

.main-content {
	padding: 2rem 1rem;
}

.sidebar-sticky {
	position: sticky;
	top: 100px;
}

/* Content typography improvements */
.entry-content {
	line-height: 1.8;
}

.entry-content p {
	margin-bottom: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child,
.entry-content h5:first-child,
.entry-content h6:first-child {
	margin-top: 0;
}

.entry-content ul,
.entry-content ol {
	margin-bottom: 1.5rem;
	padding-left: 2rem;
}

.entry-content li {
	margin-bottom: 0.5rem;
}

.entry-content blockquote {
	background-color: var(--light-color);
	border-left: 4px solid var(--primary-color);
	padding: 1rem 1.5rem;
	margin: 2rem 0;
	font-style: italic;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	margin: 1rem 0;
}

.entry-content pre {
	background-color: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: var(--border-radius);
	padding: 1rem;
	overflow-x: auto;
	margin: 1.5rem 0;
}

.entry-content code {
	background-color: #f8f9fa;
	padding: 0.2rem 0.4rem;
	border-radius: 3px;
	font-size: 0.875em;
}

/*--------------------------------------------------------------
# Cards and Posts
--------------------------------------------------------------*/
.card {
	border: 1px solid rgba(0, 0, 0, 0.125);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	transition: var(--transition);
}

.card:hover {
	box-shadow: var(--box-shadow-lg);
	transform: translateY(-2px);
}

.card-img-top {
	border-radius: var(--border-radius) var(--border-radius) 0 0;
	object-fit: cover;
	height: 200px;
}

.card-title {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.125rem;
	line-height: 1.4;
	margin-bottom: 0.75rem;
}

.card-title a {
	color: inherit;
	transition: var(--transition);
}

.card-title a:hover {
	color: var(--primary-color);
}

.card-text {
	font-family: var(--font-primary);
	font-size: 0.95rem;
	line-height: 1.6;
	color: #6c757d;
}

.card-body {
	padding: 1.25rem;
}

/* Entry content improvements */
.entry-title {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--dark-color);
	margin-bottom: 1.5rem;
}

.entry-meta {
	font-family: var(--font-primary);
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--secondary-color);
	margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn {
	font-family: var(--font-primary);
	border-radius: var(--border-radius);
	font-weight: 500;
	font-size: 0.875rem;
	letter-spacing: 0.01em;
	transition: var(--transition);
	border-width: 1px;
}

.btn-primary {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	font-weight: 500;
}

.btn-primary:hover {
	background-color: #0056b3;
	border-color: #0056b3;
	transform: translateY(-1px);
}

.btn-outline-primary {
	color: var(--primary-color);
	border-color: var(--primary-color);
	font-weight: 500;
}

.btn-outline-primary:hover {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	color: white;
	transform: translateY(-1px);
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.form-control {
	border-radius: var(--border-radius);
	border: 1px solid #ced4da;
	transition: var(--transition);
}

.form-control:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/*--------------------------------------------------------------
# Tables - Responsive Design
--------------------------------------------------------------*/
.table-responsive {
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}

.table {
	margin-bottom: 0;
}

.table thead th {
	border-top: none;
	font-weight: 600;
	background-color: var(--light-color);
}

.table-striped tbody tr:nth-of-type(odd) {
	background-color: rgba(0, 0, 0, 0.025);
}

.table-hover tbody tr:hover {
	background-color: rgba(0, 123, 255, 0.075);
}

/* Mobile-first responsive tables */
@media (max-width: 768px) {
	.table-responsive-stack tr,
	.table-responsive-stack thead,
	.table-responsive-stack tbody,
	.table-responsive-stack th,
	.table-responsive-stack td,
	.table-responsive-stack tr {
		display: block;
	}
	
	.table-responsive-stack thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	.table-responsive-stack tr {
		border: 1px solid #ccc;
		margin-bottom: 10px;
		border-radius: var(--border-radius);
		padding: 10px;
	}
	
	.table-responsive-stack td {
		border: none;
		border-bottom: 1px solid #eee;
		position: relative;
		padding-left: 50% !important;
		padding-top: 10px;
		padding-bottom: 10px;
	}
	
	.table-responsive-stack td:before {
		content: attr(data-label) ": ";
		position: absolute;
		left: 6px;
		width: 45%;
		padding-right: 10px;
		white-space: nowrap;
		font-weight: bold;
		color: var(--dark-color);
	}
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
	margin-top: auto;
}

.footer-links a,
.footer-posts a {
	color: #6c757d;
	text-decoration: none;
	transition: var(--transition);
}

.footer-links a:hover,
.footer-posts a:hover {
	color: var(--primary-color);
}

.social-links .list-inline-item {
	margin-right: 0.5rem;
}

.social-links a {
	display: inline-block;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	border-radius: 50%;
	background-color: var(--light-color);
	color: var(--dark-color);
	transition: var(--transition);
}

.social-links a:hover {
	background-color: var(--primary-color);
	color: white;
}

/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/
.pagination {
	margin-top: 2rem;
}

.page-link {
	color: var(--primary-color);
	border-color: #dee2e6;
	transition: var(--transition);
}

.page-link:hover {
	color: #0056b3;
	background-color: var(--light-color);
	border-color: #dee2e6;
}

.page-item.active .page-link {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

/*--------------------------------------------------------------
# Post Navigation
--------------------------------------------------------------*/
.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
}

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

.post-navigation .nav-next {
	text-align: right;
}

.nav-subtitle {
	font-size: 0.875rem;
	color: var(--secondary-color);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.nav-title {
	font-weight: 600;
	color: var(--dark-color);
}

/*--------------------------------------------------------------
# Entry Meta
--------------------------------------------------------------*/
.entry-meta {
	font-size: 0.875rem;
	color: var(--secondary-color);
}

.entry-meta a {
	color: inherit;
	text-decoration: none;
}

.entry-meta a:hover {
	color: var(--primary-color);
}

/*--------------------------------------------------------------
# Tags
--------------------------------------------------------------*/
.post-tags .tag {
	display: inline-block;
	background-color: var(--light-color);
	color: var(--dark-color);
	padding: 0.25rem 0.5rem;
	margin: 0.125rem;
	border-radius: var(--border-radius);
	font-size: 0.875rem;
	text-decoration: none;
	transition: var(--transition);
}

.post-tags .tag:hover {
	background-color: var(--primary-color);
	color: white;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget.card {
	border: 1px solid rgba(0, 0, 0, 0.125);
}

.widget .card-header {
	background-color: var(--light-color);
	border-bottom: 1px solid rgba(0, 0, 0, 0.125);
	font-weight: 600;
}

.widget .card-body {
	padding: 1rem;
}

.widget ul {
	list-style: none;
	padding: 0;
}

.widget li {
	padding: 0.5rem 0;
	border-bottom: 1px solid #eee;
}

.widget li:last-child {
	border-bottom: none;
}

.widget a {
	color: var(--dark-color);
	text-decoration: none;
	transition: var(--transition);
}

.widget a:hover {
	color: var(--primary-color);
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
	.main-content {
		padding: 1rem;
	}
	
	h1 { 
		font-size: 2rem; 
		font-weight: 700;
	}
	h2 { 
		font-size: 1.75rem; 
		font-weight: 600;
	}
	h3 { 
		font-size: 1.5rem; 
		font-weight: 600;
	}
	
	.navbar-nav .nav-link {
		font-size: 1rem;
	}
}

@media (max-width: 767.98px) {
	.navbar-brand .brand-text {
		font-size: 1.25rem;
		font-weight: 700;
	}
	
	.main-content {
		padding: 0.5rem;
	}
	
	.card-img-top {
		height: 150px;
	}
	
	h1 { 
		font-size: 1.75rem; 
		font-weight: 700;
		line-height: 1.2;
	}
	h2 { 
		font-size: 1.5rem; 
		font-weight: 600;
	}
	h3 { 
		font-size: 1.25rem; 
		font-weight: 600;
	}
	
	body {
		font-size: 0.95rem;
	}
	
	.btn {
		font-size: 0.8rem;
		padding: 0.5rem 1rem;
	}
}

/*--------------------------------------------------------------
# Related Articles Section
--------------------------------------------------------------*/
.related-articles {
	background-color: #fafafa;
	padding: 2rem 1.5rem;
	border-radius: var(--border-radius);
	margin: 2rem 0;
}

.related-articles h3 {
	color: var(--dark-color);
	font-weight: 600;
	position: relative;
}

.related-articles h3::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, var(--primary-color), var(--info-color));
	border-radius: 2px;
}

.related-articles .card {
	transition: var(--transition);
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.related-articles .card:hover {
	transform: translateY(-3px);
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.related-articles .card-title a {
	color: var(--dark-color);
	transition: var(--transition);
}

.related-articles .card-title a:hover {
	color: var(--primary-color);
}

.related-articles .object-cover {
	object-fit: cover;
	height: 150px;
}

/* Responsive adjustments for related articles */
@media (max-width: 767.98px) {
	.related-articles {
		padding: 1.5rem 1rem;
		margin: 1.5rem 0;
	}
	
	.related-articles .object-cover {
		height: 120px;
	}
	
	.related-articles .card-body {
		padding: 1rem;
	}
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--light-color);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	clip: auto !important;
	color: var(--dark-color);
	display: block;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/*--------------------------------------------------------------
# Print Styles
--------------------------------------------------------------*/
@media print {
	.navbar,
	.sidebar,
	.site-footer,
	.post-navigation {
		display: none !important;
	}
	
	.main-content {
		width: 100% !important;
		padding: 0 !important;
	}
	
	a {
		text-decoration: underline !important;
	}
	
	.card {
		border: 1px solid #000 !important;
		box-shadow: none !important;
	}
}

/*--------------------------------------------------------------
# Admin Bar Styles
--------------------------------------------------------------*/
/* Отступ для админ-бара когда пользователь залогинен */
body.admin-bar .navbar.fixed-top {
	top: 32px !important; /* Высота админ-бара */
}

body.admin-bar .site-content {
	padding-top: 112px !important; /* 80px навбар + 32px админ-бар */
}

/* Дополнительная поддержка для случаев когда класс admin-bar не добавляется автоматически */
.admin-bar .navbar.fixed-top,
body.logged-in .navbar.fixed-top {
	top: 32px !important;
}

.admin-bar .site-content,
body.logged-in .site-content {
	padding-top: 112px !important;
}

/* Мобильные устройства */
@media screen and (max-width: 782px) {
	body.admin-bar .navbar.fixed-top,
	.admin-bar .navbar.fixed-top,
	body.logged-in .navbar.fixed-top {
		top: 46px !important; /* Высота мобильного админ-бара */
	}
	
	body.admin-bar .site-content,
	.admin-bar .site-content,
	body.logged-in .site-content {
		padding-top: 126px !important; /* 80px навбар + 46px админ-бар */
	}
}

/* Отладочное сообщение для админов */
.alert {
	padding: 0.75rem 1.25rem;
	margin-bottom: 1rem;
	border: 1px solid transparent;
	border-radius: var(--border-radius);
}

.alert-info {
	color: #0c5460;
	background-color: #d1ecf1;
	border-color: #bee5eb;
}
