/* RS Naš Tim - Frontend Styles */

:root {
	--rs-primary-color: #ec6b00;
	--rs-primary-hover: #d35f00;
	--rs-text-dark: #333333;
	--rs-text-light: #666666;
	--rs-border-color: #e0e0e0;
	--rs-bg-light: #f9f9f9;
}

/* Wrapper */
.rs-nas-tim-wrapper {
	margin: 0 auto;
	max-width: 1200px;
	padding: 20px;
}

/* Filters */
.rs-nas-tim-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-bottom: 30px;
}

.rs-filter-btn {
	background: transparent;
	border: 2px solid var(--rs-border-color);
	border-radius: 25px;
	color: var(--rs-text-dark);
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 25px;
	transition: all 0.3s ease;
}

.rs-filter-btn:hover {
	border-color: var(--rs-primary-color);
	color: var(--rs-primary-color);
}

.rs-filter-btn.active {
	background: var(--rs-primary-color);
	border-color: var(--rs-primary-color);
	color: #ffffff;
}

/* Grid */
.rs-nas-tim-grid {
	display: grid;
	grid-template-columns: repeat(var(--columns-desktop, 3), 1fr);
	gap: 30px;
}

@media (max-width: 992px) {
	.rs-nas-tim-grid {
		grid-template-columns: repeat(var(--columns-tablet, 2), 1fr);
		gap: 25px;
	}
}

@media (max-width: 576px) {
	.rs-nas-tim-grid {
		grid-template-columns: repeat(var(--columns-mobile, 1), 1fr);
		gap: 20px;
	}
}

/* Card */
.rs-nas-tim-card {
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	overflow: hidden;
	position: relative;
	transition: all 0.3s ease;
}

.rs-nas-tim-card::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 3px;
	background: var(--rs-primary-color);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	transform: translateX(-50%);
}

.rs-nas-tim-card:hover {
	box-shadow: 0 5px 20px rgba(236, 107, 0, 0.15);
	transform: translateY(-5px);
}

.rs-nas-tim-card:hover::after {
	width: 100%;
}

.rs-nas-tim-card.featured {
	border: 2px solid var(--rs-primary-color);
}

/* Card Image */
.rs-card-image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	position: relative;
}

.rs-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.rs-nas-tim-card:hover .rs-card-image img {
	transform: scale(1.05);
}

/* Card Content */
.rs-card-content {
	padding: 25px 20px 15px;
	text-align: center;
}

.rs-card-name {
	color: var(--rs-text-dark);
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px;
}

.rs-card-position {
	color: var(--rs-text-light);
	font-size: 14px;
	margin: 0 0 15px;
}

/* Social Icons */
.rs-card-social {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 15px;
}

.rs-social-icon {
	align-items: center;
	border: 2px solid var(--rs-border-color);
	border-radius: 50%;
	color: var(--rs-text-light);
	display: flex;
	height: 36px;
	justify-content: center;
	transition: all 0.3s ease;
	width: 36px;
}

.rs-social-icon:hover {
	border-color: var(--rs-primary-color);
	color: var(--rs-primary-color);
	transform: translateY(-3px);
}

.rs-social-icon svg {
	display: block;
}

/* Bio Button */
.rs-card-bio-btn {
	background: var(--rs-bg-light);
	border: none;
	border-top: 1px solid var(--rs-border-color);
	border-radius: 0 0 8px 8px;
	color: var(--rs-primary-color);
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	padding: 15px;
	transition: all 0.3s ease;
	width: 100%;
}

.rs-card-bio-btn:hover {
	background: var(--rs-primary-color);
	color: #ffffff;
}

/* No Results */
.rs-nas-tim-no-results {
	color: var(--rs-text-light);
	font-size: 16px;
	grid-column: 1 / -1;
	padding: 40px 20px;
	text-align: center;
}

/* Bio Overlay */
.rs-nas-tim-bio-overlay {
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.rs-nas-tim-bio-overlay.active {
	opacity: 1;
}

/* Bio Panel */
.rs-nas-tim-bio-panel {
	background: #ffffff;
	border-radius: 8px 0 0 8px;
	box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
	position: fixed;
	top: 0;
	right: -100%;
	bottom: 0;
	width: 80%;
	max-width: 600px;
	z-index: 100000;
	overflow-y: auto;
	transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rs-nas-tim-bio-panel.active {
	right: 0;
}

@media (max-width: 768px) {
	.rs-nas-tim-bio-panel {
		width: 100%;
		max-width: 100%;
		border-radius: 0;
	}
}

/* Bio Close Button */
.rs-bio-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(0, 0, 0, 0.1);
	border: none;
	border-radius: 50%;
	color: var(--rs-text-dark);
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10;
}

.rs-bio-close:hover {
	background: var(--rs-primary-color);
	color: #ffffff;
	transform: rotate(90deg);
}

/* Bio Content */
.rs-bio-content {
	padding: 40px 30px;
}

@media (max-width: 576px) {
	.rs-bio-content {
		padding: 30px 20px;
	}
}

/* Bio Header */
.rs-bio-header {
	border-bottom: 2px solid var(--rs-border-color);
	margin-bottom: 30px;
	padding-bottom: 25px;
	text-align: center;
}

.rs-bio-image {
	border: 4px solid var(--rs-primary-color);
	border-radius: 50%;
	height: 150px;
	width: 150px;
	object-fit: cover;
	margin: 0 auto 20px;
	display: block;
}

@media (max-width: 576px) {
	.rs-bio-image {
		height: 120px;
		width: 120px;
	}
}

.rs-bio-title h2 {
	color: var(--rs-text-dark);
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 8px;
}

@media (max-width: 576px) {
	.rs-bio-title h2 {
		font-size: 24px;
	}
}

.rs-bio-position {
	color: var(--rs-primary-color);
	font-size: 16px;
	font-weight: 600;
	margin: 0;
}

/* Bio Text */
.rs-bio-text {
	color: var(--rs-text-dark);
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 30px;
}

.rs-bio-text p {
	margin-bottom: 15px;
}

.rs-bio-text h3,
.rs-bio-text h4 {
	color: var(--rs-text-dark);
	font-weight: 600;
	margin: 25px 0 15px;
}

.rs-bio-text ul,
.rs-bio-text ol {
	margin: 15px 0;
	padding-left: 25px;
}

.rs-bio-text li {
	margin-bottom: 8px;
}

/* Bio Social Links */
.rs-bio-social {
	border-top: 1px solid var(--rs-border-color);
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 25px;
}

.rs-bio-social-link {
	align-items: center;
	border: 2px solid var(--rs-border-color);
	border-radius: 8px;
	color: var(--rs-text-dark);
	display: flex;
	gap: 12px;
	font-size: 15px;
	font-weight: 500;
	padding: 12px 16px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.rs-bio-social-link:hover {
	border-color: var(--rs-primary-color);
	color: var(--rs-primary-color);
	transform: translateX(5px);
}

.rs-bio-social-link svg {
	flex-shrink: 0;
}

/* Loading State */
.rs-nas-tim-grid.loading {
	opacity: 0.5;
	pointer-events: none;
}

/* Accessibility */
.rs-nas-tim-bio-panel:focus {
	outline: 2px solid var(--rs-primary-color);
	outline-offset: -2px;
}

/* Print Styles */
@media print {
	.rs-nas-tim-filters,
	.rs-card-bio-btn,
	.rs-bio-close,
	.rs-nas-tim-bio-overlay {
		display: none !important;
	}
	
	.rs-nas-tim-bio-panel {
		position: static;
		width: 100%;
		max-width: 100%;
		box-shadow: none;
	}
}
