/* Archive Notícies Styles */

.noticies-wrapper {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
}

.noticies-container {
	width: 100%;
}

.noticies-title {
	font-size: 42px;
	font-weight: 400;
	color: #1f2937;
	margin: 0 0 40px 0;
	line-height: 1.3;
}

/* Filters Bar */
.noticies-filters-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 40px;
	gap: 20px;
	flex-wrap: wrap;
}

.filters-left {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
	flex: 1;
}

.filter-label {
	font-size: 16px;
	color: #1f2937;
	font-weight: 500;
}

.category-filters {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.category-filter {
	padding: 10px 20px;
	border: 1px solid #d1d5db;
	border-radius: 25px;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
	transition: all 0.3s;
	background: white;
	letter-spacing: 0.5px;
}

.category-filter:hover {
	border-color: #2252AC;
	color: #2252AC;
	background: #eff6ff;
}

.category-filter.active {
	background: #2252AC;
	color: white;
	border-color: #2252AC;
}

.filters-right {
	flex-shrink: 0;
}

.noticies-search-form {
	position: relative;
}

.search-input-wrapper {
	position: relative;
}

.noticies-search-input {
	padding: 12px 45px 12px 20px;
	border: 1px solid #d1d5db;
	border-radius: 25px;
	font-size: 14px;
	outline: none;
	transition: all 0.3s;
	width: 280px;
	background: white;
}

.noticies-search-input:focus {
	border-color: #2252AC;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	pointer-events: none;
}

/* Notícies List */
.noticies-list {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-bottom: 50px;
}

.noticia-item {
	display: flex;
	gap: 25px;
	background: white;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	transition: all 0.3s;
}

.noticia-item:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.noticia-image {
	width: 300px;
	flex-shrink: 0;
	overflow: hidden;
}

.noticia-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.noticia-item:hover .noticia-image img {
	transform: scale(1.05);
}

.noticia-placeholder {
	width: 100%;
	height: 100%;
	min-height: 250px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 60px;
}

.noticia-content {
	flex: 1;
	padding: 25px 30px;
	display: flex;
	flex-direction: column;
}

.noticia-category {
	display: inline-block;
	padding: 6px 16px;
	background: white;
	color: #2252AC;
	border: 1px solid #2252AC;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 15px;
	align-self: flex-start;
}

.noticia-title {
	font-size: 22px;
	font-weight: 600;
	color: #111827;
	margin: 0 0 12px 0;
	line-height: 1.4;
}

.noticia-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.noticia-title a:hover {
	color: #2563eb;
}

.noticia-date {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 15px;
}

.noticia-excerpt {
	font-size: 15px;
	color: #4b5563;
	line-height: 1.7;
	margin-bottom: 20px;
	flex-grow: 1;
}

.noticia-footer {
	margin-top: auto;
}

/* Share Button Styles */
.noticia-footer .esb-share-wrapper {
	display: inline-flex;
	align-items: center;
	background: #222;
	border-radius: 40px;
	padding: 6px;
	gap: 6px;
}

.noticia-footer .esb-main-button {
	background: #2252AC;
	color: white;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.25s ease;
	white-space: nowrap;
	padding: 12px 28px;
	border-radius: 40px;
	font-size: 14px;
	letter-spacing: 0.5px;
}

.noticia-footer .esb-main-button:hover {
	background: #2252AC;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.noticia-footer .esb-socials {
	display: flex;
	gap: 12px;
	padding: 0 12px;
}

.noticia-footer .esb-socials a {
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	opacity: 0.8;
	transition: opacity 0.2s ease;
	font-weight: 500;
}

.noticia-footer .esb-socials a:hover {
	opacity: 1;
}

/* Paginació */
.noticies-pagination {
	display: flex;
	justify-content: center;
	margin-top: 50px;
}

.noticies-pagination ul {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 8px;
}

.noticies-pagination li {
	margin: 0;
}

.noticies-pagination a,
.noticies-pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	color: #374151;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	transition: all 0.3s;
	background: white;
}

.noticies-pagination a:hover {
	border-color: #2252AC;
	color: #2252AC;
	background: #eff6ff;
}

.noticies-pagination .current {
	background: #2252AC;
	color: white;
	border-color: #2252AC;
}

.noticies-pagination .prev,
.noticies-pagination .next {
	padding: 0 10px;
}

.noticies-pagination svg {
	width: 20px;
	height: 20px;
}

/* No Results */
.noticies-no-results {
	text-align: center;
	padding: 80px 20px;
	background: #f9fafb;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
}

.noticies-no-results p {
	font-size: 18px;
	color: #6b7280;
	margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
	.noticies-filters-bar {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.filters-left,
	.filters-right {
		width: 100%;
	}
	
	.noticies-search-input {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.noticies-title {
		font-size: 32px;
	}
	
	.noticia-item {
		flex-direction: column;
	}
	
	.noticia-image {
		width: 100%;
		height: 200px;
	}
	
	.noticia-content {
		padding: 20px;
	}
	
	.noticia-title {
		font-size: 20px;
	}
	
	.category-filters {
		width: 100%;
	}
	
	.category-filter {
		font-size: 12px;
		padding: 8px 16px;
	}
}
