/*
 * Custom Homepage Styles
 * Styles for running bar, social icons, hero, blog slider, CTA, and footer
 */

/* ========================================
   CSS Variables for Theme Colors - Green Theme
   ======================================== */
:root {
	--primary-green: #10b981;
	--primary-green-dark: #059669;
	--primary-green-light: #34d399;
	--accent-teal: #14b8a6;
	--accent-emerald: #047857;

	--top-bar-bg: #ffe4e6;
	--top-bar-text: #881337;
	--top-bar-label: #e11d48;
	--top-bar-link: #be123c;
	--top-bar-link-hover: #f43f5e;
	--separator-color: #fecdd3;

	--footer-bg: #ffe4e6;
	--footer-text: #881337;
	--footer-link: #e11d48;
	--footer-link-hover: #f43f5e;
	--footer-border: #fecdd3;

	--body-bg: #ffffff;
	--body-text: #1f2937;
	--card-bg: #ffffff;
	--card-shadow: rgba(16, 185, 129, 0.1);

	--header-bg: #ffffff;
	--header-shadow: rgba(16, 185, 129, 0.15);

	--btn-primary-bg: #10b981;
	--btn-primary-hover: #059669;
	--link-color: #10b981;
	--link-hover: #059669;
}

/* Dark Mode Variables */
[data-theme="dark"] {
	--primary-green: #34d399;
	--primary-green-dark: #6ee7b7;
	--primary-green-light: #a7f3d0;
	--accent-teal: #5eead4;
	--accent-emerald: #6ee7b7;

	--top-bar-bg: #3f1f29;
	--top-bar-text: #fecdd3;
	--top-bar-label: #fb7185;
	--top-bar-link: #fda4af;
	--top-bar-link-hover: #fecdd3;
	--separator-color: #881337;

	--footer-bg: #3f1f29;
	--footer-text: #fecdd3;
	--footer-link: #fb7185;
	--footer-link-hover: #fda4af;
	--footer-border: #881337;

	--body-bg: #0f172a;
	--body-text: #e2e8f0;
	--card-bg: #1e293b;
	--card-shadow: rgba(52, 211, 153, 0.2);

	--header-bg: #1e293b;
	--header-shadow: rgba(52, 211, 153, 0.2);

	--btn-primary-bg: #34d399;
	--btn-primary-hover: #6ee7b7;
	--link-color: #34d399;
	--link-hover: #6ee7b7;
}

/* Apply theme colors to body */
body {
	background-color: var(--body-bg);
	color: var(--body-text);
	transition: background-color 0.3s ease, color 0.3s ease;
}

/* Remove spacing from content wrappers */
#content,
.site-content,
#main,
.site-main {
	margin: 0;
	padding: 0;
}

/* ========================================
   Running Bar Styles
   ======================================== */
.top-bar {
	background: var(--top-bar-bg);
	color: var(--top-bar-text);
	padding: 12px 0;
	overflow: hidden;
	position: relative;
	transition: background-color 0.3s ease;
}

.top-bar-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.running-text {
	display: flex;
	align-items: center;
	white-space: nowrap;
	flex: 1;
	overflow: hidden;
	position: relative;
}

.running-label {
	font-weight: 700;
	margin-right: 15px;
	color: var(--top-bar-label);
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	background: var(--top-bar-bg);
	padding-right: 10px;
}

.running-posts {
	display: inline-block;
	animation: scrollText 30s linear infinite;
	padding-left: 10px;
}

.running-posts a {
	color: var(--top-bar-link);
	text-decoration: none;
	margin: 0 10px;
	transition: color 0.3s ease;
}

.running-posts a:hover {
	color: var(--top-bar-link-hover);
}

.running-posts .separator {
	margin: 0 10px;
	color: var(--separator-color);
}

@keyframes scrollText {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* Top Bar Right Side */
.top-bar-right {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-shrink: 0;
}

/* ========================================
   Theme Toggle Button Styles
   ======================================== */
.theme-toggle {
	background: rgba(225, 29, 72, 0.15);
	border: 1px solid rgba(225, 29, 72, 0.3);
	border-radius: 50%;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.theme-toggle:hover {
	background: rgba(225, 29, 72, 0.25);
	transform: rotate(20deg);
}

.theme-toggle-icon svg {
	color: var(--top-bar-text);
}

.theme-toggle-icon {
	position: relative;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sun-icon,
.moon-icon {
	position: absolute;
	transition: all 0.3s ease;
}

/* Default light mode - show moon icon */
.sun-icon {
	opacity: 0;
	transform: rotate(-90deg);
}

.moon-icon {
	opacity: 1;
	transform: rotate(0deg);
}

/* Dark mode - show sun icon */
[data-theme="dark"] .sun-icon {
	opacity: 1;
	transform: rotate(0deg);
}

[data-theme="dark"] .moon-icon {
	opacity: 0;
	transform: rotate(90deg);
}

/* ========================================
   Social Media Icons Styles
   ======================================== */
.social-icons {
	display: flex;
	gap: 10px;
	align-items: center;
}

.social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: rgba(225, 29, 72, 0.15);
	border-radius: 50%;
	color: var(--top-bar-text);
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 14px;
	border: 1px solid rgba(225, 29, 72, 0.3);
}

.social-icon:hover {
	transform: translateY(-2px);
	background: rgba(225, 29, 72, 0.25);
}

.social-facebook:hover { background: #3b5998; border-color: #3b5998; }
.social-twitter:hover { background: #1da1f2; border-color: #1da1f2; }
.social-instagram:hover { background: #e4405f; border-color: #e4405f; }
.social-linkedin:hover { background: #0077b5; border-color: #0077b5; }
.social-youtube:hover { background: #ff0000; border-color: #ff0000; }

/* Icon symbols using Unicode */
.icon-facebook::before { content: "f"; }
.icon-twitter::before { content: "t"; }
.icon-instagram::before { content: "i"; }
.icon-linkedin::before { content: "in"; }
.icon-youtube::before { content: "▶"; }

/* ========================================
   Header Styles Enhancement
   ======================================== */
.site-header {
	background: var(--header-bg);
	box-shadow: 0 2px 10px var(--header-shadow);
	padding: 20px 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: background-color 0.3s ease;
}

.site-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Logo and Site Branding */
.custom-logo-link {
	display: inline-block;
	max-width: 200px;
}

.custom-logo {
	max-width: 100%;
	height: auto;
	max-height: 60px;
	width: auto;
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
}

.site-title a {
	color: var(--body-text);
	transition: color 0.3s ease;
}

.site-description {
	color: var(--body-text);
	opacity: 0.8;
	margin: 5px 0 0 0;
	font-size: 0.875rem;
}

/* Navigation Menu Styles */
.main-navigation {
	transition: all 0.3s ease;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 20px;
}

.main-navigation li a {
	color: var(--body-text);
	text-decoration: none;
	padding: 8px 15px;
	transition: all 0.3s ease;
	border-radius: 5px;
	font-weight: 500;
}

.main-navigation li a:hover {
	background: rgba(16, 185, 129, 0.1);
	color: var(--primary-green);
}

.menu-toggle {
	background: transparent;
	border: 2px solid var(--body-text);
	color: var(--body-text);
	padding: 8px 15px;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.menu-toggle:hover {
	background: var(--body-text);
	color: var(--body-bg);
}

/* ========================================
   Hero Section Styles
   ======================================== */
.hero-section {
	position: relative;
	min-height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #059669 100%);
	color: #fff;
	text-align: center;
	padding: 80px 20px;
	overflow: hidden;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
	margin: 0 auto;
}

.hero-title {
	font-size: 3.5rem;
	font-weight: 800;
	margin-bottom: 20px;
	line-height: 1.2;
	animation: fadeInUp 0.8s ease;
}

.hero-description {
	font-size: 1.25rem;
	margin-bottom: 30px;
	line-height: 1.6;
	animation: fadeInUp 1s ease;
}

.hero-buttons {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
	animation: fadeInUp 1.2s ease;
}

.btn {
	display: inline-block;
	padding: 15px 35px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 50px;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.btn-primary {
	background: #fff;
	color: #047857;
	border-color: #fff;
	font-weight: 700;
}

.btn-primary:hover {
	background: transparent;
	color: #fff;
	border-color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
	background: transparent;
	color: #fff;
	border-color: #fff;
}

.btn-secondary:hover {
	background: #fff;
	color: #047857;
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========================================
   Blog Slider Section Styles
   ======================================== */
.blog-slider-section {
	padding: 80px 20px;
	background: #f8f9fa;
}

.section-header {
	text-align: center;
	margin-bottom: 50px;
}

.section-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #333;
	margin-bottom: 10px;
}

.section-description {
	font-size: 1.125rem;
	color: #666;
}

.blog-slider {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 60px;
	overflow: hidden;
}

.slider-wrapper {
	display: flex;
	overflow: visible;
	position: relative;
	transition: transform 0.5s ease;
	width: 100%;
}

.slide {
	min-width: 100%;
	max-width: 100%;
	flex-shrink: 0;
	padding: 0 10px;
	box-sizing: border-box;
}

.blog-card {
	background: var(--card-bg);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px var(--card-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 600px;
	max-width: 100%;
	width: 100%;
}

.blog-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px var(--card-shadow);
}

.blog-card-image {
	width: 100%;
	height: 400px;
	overflow: hidden;
	flex-shrink: 0;
}

.blog-card-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.blog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
	display: block;
}

.blog-card:hover .blog-card-image img {
	transform: scale(1.1);
}

.blog-card-content {
	padding: 30px;
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.blog-card-content * {
	max-width: 100%;
	box-sizing: border-box;
}

.blog-meta {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
	font-size: 0.875rem;
	color: #999;
	flex-wrap: wrap;
	align-items: center;
}

.blog-author {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--body-text);
	opacity: 0.7;
}

.blog-author .author-avatar {
	border-radius: 50%;
	width: 20px;
	height: 20px;
}

.blog-category {
	background: var(--primary-green);
	color: #fff;
	padding: 3px 10px;
	border-radius: 15px;
	font-weight: 600;
}

.blog-card-title {
	font-size: 1.5rem;
	margin-bottom: 15px;
	width: 100%;
	max-width: 100%;
}

.blog-card-title a {
	color: var(--body-text);
	text-decoration: none;
	transition: color 0.3s ease;
	display: block;
	word-wrap: break-word;
}

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

.blog-card-excerpt {
	color: var(--body-text);
	opacity: 0.8;
	line-height: 1.8;
	margin-bottom: 20px;
	min-height: 100px;
	white-space: normal !important;
	word-wrap: break-word !important;
	overflow-wrap: break-word !important;
	word-break: break-word;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	hyphens: auto;
}

.read-more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--primary-green);
	text-decoration: none;
	font-weight: 600;
	transition: gap 0.3s ease;
	margin-top: auto;
}

.read-more:hover {
	gap: 10px;
}

/* Slider Navigation */
.slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: #fff;
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 2rem;
	color: #333;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	z-index: 10;
}

.slider-btn:hover {
	background: var(--primary-green);
	color: #fff;
	transform: translateY(-50%) scale(1.1);
}

.slider-prev {
	left: 0;
}

.slider-next {
	right: 0;
}

.slider-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 30px;
}

.slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ddd;
	cursor: pointer;
	transition: all 0.3s ease;
}

.slider-dot.active {
	background: var(--primary-green);
	width: 30px;
	border-radius: 6px;
}

/* ========================================
   Call to Action Section Styles
   ======================================== */
.cta-section {
	background: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #059669 100%);
	color: #fff;
	padding: 80px 20px;
	text-align: center;
	margin-bottom: 0;
}

.cta-content {
	max-width: 800px;
	margin: 0 auto;
}

.cta-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 20px;
}

.cta-description {
	font-size: 1.25rem;
	margin-bottom: 30px;
	line-height: 1.6;
}

.btn-cta {
	background: #fff;
	color: #047857;
	padding: 18px 40px;
	font-size: 1.125rem;
	font-weight: 700;
}

.btn-cta:hover {
	background: transparent;
	color: #fff;
	border-color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Footer Styles
   ======================================== */
.site-footer {
	background: var(--footer-bg);
	color: var(--footer-text);
	padding: 60px 20px 20px;
	transition: background-color 0.3s ease, color 0.3s ease;
	margin-top: 0;
}

.footer-navigation {
	margin-bottom: 40px;
	text-align: center;
}

.footer-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
}

.footer-menu li a {
	color: var(--footer-text);
	text-decoration: none;
	font-size: 1rem;
	transition: color 0.3s ease;
	font-weight: 500;
}

.footer-menu li a:hover {
	color: var(--footer-link-hover);
}

.footer-social {
	text-align: center;
	margin: 40px 0;
}

.footer-social .social-icons {
	justify-content: center;
}

.footer-social .social-icon {
	background: rgba(225, 29, 72, 0.15);
	border: 1px solid rgba(225, 29, 72, 0.3);
	color: var(--footer-text);
}

.footer-social .social-icon:hover {
	background: rgba(225, 29, 72, 0.25);
}

.site-info {
	text-align: center;
	padding-top: 30px;
	border-top: 1px solid var(--footer-border);
	color: var(--footer-text);
	opacity: 0.8;
	font-size: 0.875rem;
}

.site-info a {
	color: var(--footer-link);
	text-decoration: none;
	font-weight: 500;
}

.site-info a:hover {
	color: var(--footer-link-hover);
	text-decoration: underline;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 768px) {
	.top-bar-content {
		flex-direction: column;
		gap: 10px;
	}

	.top-bar-right {
		width: 100%;
		justify-content: center;
	}

	.running-text {
		justify-content: center;
	}

	.running-posts {
		animation: none;
	}

	.hero-title {
		font-size: 2rem;
	}

	.hero-description {
		font-size: 1rem;
	}

	.section-title {
		font-size: 1.75rem;
	}

	.cta-title {
		font-size: 1.75rem;
	}

	.blog-slider {
		padding: 0 40px;
	}

	.slider-btn {
		width: 40px;
		height: 40px;
		font-size: 1.5rem;
	}

	.slide {
		padding: 0 5px;
	}

	.blog-card {
		min-height: 500px;
	}

	.blog-card-image {
		height: 300px;
	}

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

	.blog-card-title {
		font-size: 1.25rem;
	}

	.blog-card-excerpt {
		font-size: 0.9rem;
		line-height: 1.6;
		min-height: 80px;
	}

	.footer-menu ul {
		flex-direction: column;
		gap: 15px;
	}

	.social-icons {
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.top-bar {
		padding: 10px 0;
	}

	.running-label {
		font-size: 0.875rem;
	}

	.running-posts a {
		font-size: 0.875rem;
	}

	.theme-toggle {
		width: 32px;
		height: 32px;
	}

	.social-icon {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}

	.blog-slider {
		padding: 0 30px;
	}

	.slider-btn {
		width: 35px;
		height: 35px;
		font-size: 1.25rem;
	}

	.slide {
		padding: 0 3px;
	}

	.blog-card {
		min-height: 450px;
	}

	.blog-card-image {
		height: 200px;
	}

	.blog-card-content {
		padding: 15px;
	}

	.blog-card-title {
		font-size: 1.125rem;
		margin-bottom: 10px;
	}

	.blog-card-excerpt {
		font-size: 0.85rem;
		line-height: 1.5;
		min-height: 70px;
	}

	.blog-meta {
		font-size: 0.75rem;
		margin-bottom: 10px;
	}

	.section-title {
		font-size: 1.5rem;
	}

	.hero-buttons {
		flex-direction: column;
		width: 100%;
	}

	.btn {
		width: 100%;
	}
}
