/* ============================================
   LATEST NEWS - MODERN DESIGN
   Sistema de notícias moderno e responsivo
   ============================================ */

/* === ANIMATIONS === */
@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes shimmer {
	0% { background-position: -1000px 0; }
	100% { background-position: 1000px 0; }
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

@keyframes glow {
	0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 170, 0.3); }
	50% { box-shadow: 0 0 20px rgba(0, 255, 170, 0.6); }
}

/* === CONTAINER === */
.news-container {
	background: linear-gradient(135deg, #0f141a 0%, #1a1f26 100%);
	border-radius: 12px;
	padding: 24px;
	margin: 0px 0;
	animation: fadeInScale 0.5s ease-out;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* === HEADER === */
.news-header {
	background: linear-gradient(135deg, #1a1f26 0%, #0f141a 100%);
	border-radius: 12px;
	padding: 32px;
	margin-bottom: 24px;
	text-align: center;
	position: relative;
	overflow: hidden;
	animation: slideDown 0.6s ease-out;
}

.news-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(0, 255, 170, 0.1), transparent);
	animation: shimmer 3s infinite;
}

.news-title {
	font-size: 32px;
	color: #00ffaa;
	margin: 0 0 8px 0;
	font-weight: 700;
	text-shadow: 0 0 20px rgba(0, 255, 170, 0.5);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.news-title-icon {
	font-size: 40px;
	animation: pulse 2s infinite;
}

.news-subtitle {
	font-size: 16px;
	color: #8899aa;
	margin: 0;
}

/* === TICKER (Admin) === */
.news-ticker-container {
	background: rgba(255, 170, 0, 0.1);
	border: 2px solid rgba(255, 170, 0, 0.3);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 24px;
	animation: slideDown 0.7s ease-out;
}

.news-ticker-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.news-ticker-icon {
	font-size: 28px;
	color: #ffaa00;
}

.news-ticker-title {
	font-size: 20px;
	color: #ffaa00;
	font-weight: 600;
	margin: 0;
}

.news-ticker-content {
	background: rgba(0, 0, 0, 0.3);
	border-radius: 8px;
	padding: 16px;
	color: #c5d1de;
	font-size: 14px;
	line-height: 1.6;
}

.news-ticker-label {
	color: #ffaa00;
	font-weight: 600;
	margin-bottom: 8px;
	display: block;
}

/* === NEWS ARTICLES === */
.news-articles {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.news-article {
	background: linear-gradient(135deg, #1a1f26 0%, #252b35 100%);
	border: 2px solid rgba(0, 255, 170, 0.2);
	border-radius: 12px;
	padding: 0;
	overflow: hidden;
	transition: all 0.3s ease;
	animation: fadeInScale 0.6s ease-out;
}

.news-article:hover {
	border-color: #00ffaa;
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 255, 170, 0.3);
}

.news-article-header {
	background: linear-gradient(135deg, #252b35 0%, #2a3240 100%);
	padding: 24px;
	border-bottom: 2px solid rgba(0, 255, 170, 0.2);
	position: relative;
	overflow: hidden;
}

.news-article-category {
	display: inline-block;
	padding: 6px 12px;
	background: rgba(0, 255, 170, 0.1);
	color: #00ffaa;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 12px;
}

.news-article-title {
	font-size: 24px;
	color: #00ffaa;
	margin: 0 0 12px 0;
	font-weight: 700;
	line-height: 1.3;
	text-shadow: 0 0 10px rgba(0, 255, 170, 0.3);
}

.news-article-meta {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 14px;
	color: #8899aa;
}

.news-article-meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.news-article-meta-icon {
	font-size: 16px;
}

.news-article-body {
	padding: 24px;
	color: #c5d1de;
	line-height: 1.8;
	font-size: 15px;
}

.news-article-body p {
	margin: 0 0 16px 0;
}

.news-article-body p:last-child {
	margin-bottom: 0;
}

.news-article-body h3 {
	color: #00ffaa;
	font-size: 20px;
	margin: 24px 0 12px 0;
	font-weight: 600;
}

.news-article-body ul,
.news-article-body ol {
	margin: 12px 0;
	padding-left: 24px;
}

.news-article-body li {
	margin-bottom: 8px;
}

.news-article-footer {
	padding: 16px 24px;
	background: rgba(0, 0, 0, 0.2);
	border-top: 1px solid rgba(0, 255, 170, 0.1);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.news-article-author {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #8899aa;
	font-size: 14px;
}

.news-article-author-icon {
	font-size: 18px;
}

.news-article-author-name {
	color: #00ffaa;
	font-weight: 600;
}

.news-article-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.news-article-tag {
	padding: 4px 10px;
	background: rgba(0, 255, 170, 0.1);
	color: #00ffaa;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.news-article-tag:hover {
	background: rgba(0, 255, 170, 0.2);
}

/* === EMPTY STATE === */
.news-empty {
	text-align: center;
	padding: 60px 20px;
	background: rgba(26, 31, 38, 0.5);
	border-radius: 12px;
	border: 2px dashed rgba(0, 255, 170, 0.2);
}

.news-empty-icon {
	font-size: 64px;
	margin-bottom: 16px;
	opacity: 0.5;
}

.news-empty-title {
	font-size: 20px;
	color: #8899aa;
	margin: 0 0 8px 0;
	font-weight: 600;
}

.news-empty-text {
	font-size: 14px;
	color: #6a7888;
	margin: 0;
}

/* === PAGINATION === */
.news-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid rgba(0, 255, 170, 0.2);
}

.news-pagination-btn {
	padding: 10px 20px;
	background: linear-gradient(135deg, #1a1f26 0%, #252b35 100%);
	color: #8899aa;
	border: 1px solid rgba(0, 255, 170, 0.2);
	border-radius: 6px;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	cursor: pointer;
}

.news-pagination-btn:hover {
	background: linear-gradient(135deg, #00ffaa 0%, #00cc88 100%);
	color: #0f141a;
	border-color: #00ffaa;
	transform: translateY(-2px);
}

.news-pagination-btn.active {
	background: linear-gradient(135deg, #00ffaa 0%, #00cc88 100%);
	color: #0f141a;
	border-color: #00ffaa;
}

.news-pagination-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.news-pagination-btn:disabled:hover {
	transform: none;
	background: linear-gradient(135deg, #1a1f26 0%, #252b35 100%);
	color: #8899aa;
}

/* === ADMIN CONTROLS === */
.news-admin-controls {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
}

.news-admin-btn {
	padding: 12px 20px;
	background: linear-gradient(135deg, #00ffaa 0%, #00cc88 100%);
	color: #0f141a;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.news-admin-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 255, 170, 0.4);
}

.news-admin-btn-icon {
	font-size: 18px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
	.news-container {
		padding: 16px;
	}

	.news-header {
		padding: 24px 16px;
	}

	.news-title {
		font-size: 24px;
		flex-direction: column;
		gap: 8px;
	}

	.news-title-icon {
		font-size: 32px;
	}

	.news-article-header {
		padding: 20px;
	}

	.news-article-title {
		font-size: 20px;
	}

	.news-article-body {
		padding: 20px;
	}

	.news-article-footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.news-pagination {
		flex-wrap: wrap;
	}

	.news-admin-controls {
		flex-direction: column;
	}
}
