﻿/* ============================================ */
/* ESCOLA DE DANÇA - CSS COMPLETO E DEFINITIVO */
/* Cabeçalho + Agenda + Filtros Colapsáveis */
/* ============================================ */

/* Reset e Base */
* {
	box-sizing: border-box;
}

/* ============================================ */
/* CABEÇALHO DA ESCOLA */
/* ============================================ */

.escola-header {
	background: white;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	margin-bottom: 30px;
	overflow: hidden;
}

.escola-header-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 30px;
	padding: 30px;
	align-items: start;
}

/* Informações da escola */
.escola-info {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* Nome da escola - H1 para SEO */
.escola-nome {
	font-size: 28px;
	font-weight: 700;
	color: #133163;
	margin: 0;
	line-height: 1.2;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Endereço */
.escola-endereco {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: #495057;
	font-size: 14px;
}

.escola-endereco-icon {
	color: #133163;
	font-size: 16px;
	margin-top: 2px;
	flex-shrink: 0;
}

.escola-endereco-content {
	display: inline;
	line-height: 1.5;
}

.escola-endereco-texto {
	display: inline;
}

.escola-mapa-link {
	color: #133163;
	text-decoration: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: all 0.2s;
	white-space: nowrap;
	margin-left: 4px;
}

	.escola-mapa-link:hover {
		color: #0d2142;
		text-decoration: underline;
	}

/* Telefone com reveal */
.escola-contato {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #495057;
	font-size: 14px;
}

.escola-contato-icon {
	color: #133163;
	font-size: 16px;
}

.escola-telefone {
	font-weight: 600;
}

.escola-tel-reveal {
	color: #133163;
	text-decoration: none;
	font-weight: 600;
	cursor: pointer;
	border-bottom: 1px dashed #133163;
	transition: all 0.2s;
}

	.escola-tel-reveal:hover {
		color: #0d2142;
		border-bottom-style: solid;
	}

.escola-tel-completo {
	display: none;
}

	.escola-tel-completo.show {
		display: inline;
	}

/* Linha combinada: Telefone + Redes Sociais */
.escola-contato-social {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

/* Redes sociais - Badges com ícones */
.escola-social {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.escola-social-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 12px;
	text-decoration: none;
	color: #495057;
	font-size: 11px;
	font-weight: 500;
	transition: all 0.2s;
}

	.escola-social-link:hover {
		background: #e9ecef;
		border-color: #133163;
		color: #133163;
		transform: translateY(-2px);
	}

	.escola-social-link i {
		font-size: 11px;
	}

	/* Cores específicas das redes sociais */
	.escola-social-link.site:hover {
		background: #e8f1fc;
		border-color: #133163;
		color: #133163;
	}

	.escola-social-link.instagram:hover {
		background: #fce8f3;
		border-color: #e1306c;
		color: #e1306c;
	}

	.escola-social-link.facebook:hover {
		background: #e7f3ff;
		border-color: #1877f2;
		color: #1877f2;
	}

	.escola-social-link.twitter:hover {
		background: #e8f5fd;
		border-color: #1da1f2;
		color: #1da1f2;
	}

	.escola-social-link.email:hover {
		background: #fff3e0;
		border-color: #ff6f00;
		color: #ff6f00;
	}

/* Aulas de (Tags de ritmos) */
.escola-aulas {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

.escola-aulas-label {
	font-size: 12px;
	color: #6c757d;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

	.escola-aulas-label i {
		font-size: 13px;
	}

.escola-aula-tag {
	display: inline-block;
	padding: 4px 10px;
	background: #133163;
	color: white;
	border-radius: 12px;
	text-decoration: none;
	font-size: 11px;
	font-weight: 600;
	transition: all 0.2s;
	border: 2px solid #133163;
}

	.escola-aula-tag:hover {
		background: #0d2142;
		border-color: #0d2142;
		transform: translateY(-2px);
		box-shadow: 0 4px 8px rgba(19, 49, 99, 0.2);
	}

/* Logo da escola */
.escola-logo {
	width: 350px;
	height: 131px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

	.escola-logo img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

/* ============================================ */
/* AGENDA - SEÇÃO PRINCIPAL */
/* ============================================ */

.agenda-section {
	background: white;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	/*margin-bottom: 30px;*/
}

.agenda-section-title {
	font-size: 24px;
	color: #333;
	margin: 0 0 25px 0;
	font-weight: 600;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ============================================ */
/* ABAS INTEGRADAS */
/* ============================================ */

.agenda-tabs-container {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	margin-bottom: 0;
	border-bottom: 3px solid #133163;
	padding-bottom: 0;
}

.agenda-tabs-item {
	position: relative;
	padding: 12px 18px;
	color: #666;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #e9ecef;
	cursor: pointer;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	font-size: 14px;
	border-radius: 8px 8px 0 0;
	border: 2px solid #dee2e6;
	border-bottom: none;
	margin-bottom: -3px;
}

.agenda-tabs-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	background: #6c757d;
	color: white;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	transition: all 0.2s ease;
}

	.agenda-tabs-count.agenda-tabs-empty {
		background: transparent;
		border: 2px solid #adb5bd;
		color: #6c757d;
	}

.agenda-tabs-item:hover {
	background: #dee2e6;
	color: #133163;
	border-color: #133163;
}

	.agenda-tabs-item:hover .agenda-tabs-count {
		transform: scale(1.05);
	}

.agenda-tabs-item.agenda-tabs-active {
	background: white;
	color: #133163;
	font-weight: 600;
	border-color: #133163;
	border-bottom-color: white;
	z-index: 2;
}

	.agenda-tabs-item.agenda-tabs-active .agenda-tabs-count {
		background: #133163;
		color: white;
	}

/* ============================================ */
/* FILTROS COLAPSÁVEIS */
/* ============================================ */

.agenda-filters-toggle {
	background: white;
	border: 2px solid #133163;
	border-top: none;
	padding: 12px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	transition: all 0.2s;
	user-select: none;
}

	.agenda-filters-toggle:hover {
		background: #f8f9fa;
	}

.agenda-filters-toggle-content {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #133163;
}

.agenda-filters-toggle-icon {
	font-size: 18px;
	transition: transform 0.3s;
}

	.agenda-filters-toggle-icon.open {
		transform: rotate(180deg);
	}

.agenda-filters-wrapper {
	background: white;
	border: 2px solid #133163;
	border-top: none;
	border-bottom: none;
	padding: 15px 20px;
	display: none;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

	.agenda-filters-wrapper.show {
		display: flex;
	}

.agenda-filter-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.agenda-filter-label {
	font-size: 13px;
	font-weight: 600;
	color: #495057;
	white-space: nowrap;
}

.agenda-filter-input {
	padding: 8px 12px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	font-size: 14px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	transition: all 0.2s ease;
	min-width: 180px;
}

	.agenda-filter-input:focus {
		outline: none;
		border-color: #133163;
		box-shadow: 0 0 0 3px rgba(19, 49, 99, 0.1);
	}

.agenda-filter-clear {
	background: #f8f9fa;
	border: 1px solid #ced4da;
	color: #495057;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: 500;
	white-space: nowrap;
}

	.agenda-filter-clear:hover {
		background: #e9ecef;
		border-color: #133163;
		color: #133163;
	}

/* ============================================ */
/* TABELA */
/* ============================================ */

.agenda-table-wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 2px solid #133163;
	border-top: none;
	border-radius: 0 0 8px 8px;
}

.agenda-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: white;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

	.agenda-table thead tr {
		background: linear-gradient(135deg, #133163 0%, #1a4277 100%);
	}

	.agenda-table th {
		color: white;
		padding: 16px;
		text-align: left;
		font-weight: 600;
		border: none;
		white-space: nowrap;
		font-size: 13px;
		text-transform: uppercase;
		letter-spacing: 0.5px;
	}

		.agenda-table th:first-child {
			padding-left: 20px;
		}

		.agenda-table th:last-child {
			padding-right: 20px;
		}

	.agenda-table tbody tr {
		transition: background-color 0.15s ease;
	}

		.agenda-table tbody tr:nth-child(odd) {
			background-color: #f8f9fa;
		}

		.agenda-table tbody tr:nth-child(even) {
			background-color: white;
		}

		/* Hover SEM cursor pointer */
		.agenda-table tbody tr:hover {
			background-color: #e8f1fc !important;
			box-shadow: inset 4px 0 0 #133163;
		}

		.agenda-table tbody tr.agenda-hidden {
			display: none;
		}

	.agenda-table td {
		padding: 16px;
		color: #495057;
		vertical-align: middle;
		border-bottom: 1px solid #e9ecef;
	}

		.agenda-table td:first-child {
			padding-left: 20px;
		}

		.agenda-table td:last-child {
			padding-right: 20px;
		}

	.agenda-table tbody td:first-child {
		font-weight: 700;
		color: #133163;
		white-space: nowrap;
		font-size: 15px;
	}

	.agenda-table tbody td:nth-child(2) {
		font-weight: 600;
		color: #333;
	}

	.agenda-table tbody tr:last-child td {
		border-bottom: none;
	}

/* ============================================ */
/* ESTADO VAZIO */
/* ============================================ */

.agenda-empty-state {
	text-align: center;
	padding: 60px 20px;
	background: #f8f9fa;
	color: #999;
	border: 2px solid #133163;
	border-top: none;
	border-radius: 0 0 8px 8px;
}

.agenda-empty-icon {
	font-size: 48px;
	color: #dee2e6;
	margin-bottom: 15px;
}

.agenda-empty-text {
	font-size: 16px;
	margin: 0;
	color: #6c757d;
}

.agenda-no-results {
	text-align: center;
	padding: 40px 20px;
	color: #6c757d;
	display: none;
}

	.agenda-no-results.agenda-show {
		display: block;
	}

.agenda-no-results-icon {
	font-size: 36px;
	margin-bottom: 10px;
}

.agenda-no-results-text {
	font-size: 15px;
	margin: 0;
}

/* ============================================ */
/* BADGES */
/* ============================================ */

.agenda-badge {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.agenda-badge-iniciante {
	background: #d4edda;
	color: #155724;
}

.agenda-badge-intermediario {
	background: #fff3cd;
	color: #856404;
}

.agenda-badge-avancado {
	background: #f8d7da;
	color: #721c24;
}

.agenda-badge-todos {
	background: #d1ecf1;
	color: #0c5460;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */

.agenda-section-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e9ecef;
	font-size: 14px;
	color: #6c757d;
}

.agenda-report-btn {
	background: white;
	border: 1px solid #dee2e6;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 13px;
	color: #495057;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

	.agenda-report-btn:hover {
		background: #f8f9fa;
		border-color: #133163;
		color: #133163;
	}

/* ============================================ */
/* RESPONSIVO */
/* ============================================ */

@media (max-width: 992px) {
	.escola-header-inner {
		grid-template-columns: 1fr;
	}

	.escola-logo {
		width: 100%;
		max-width: 400px;
		margin: 0 auto;
	}
}

@media (max-width: 768px) {
	.escola-header-inner {
		padding: 20px;
		gap: 20px;
	}

	.escola-nome {
		font-size: 22px;
	}

	.escola-endereco,
	.escola-contato {
		font-size: 13px;
	}

	.escola-logo {
		height: 100px;
	}

	.agenda-section {
		padding: 20px;
	}

	.agenda-section-title {
		font-size: 20px;
	}

	.agenda-tabs-item {
		padding: 10px 14px;
		font-size: 13px;
		flex: 1;
		min-width: calc(50% - 2px);
		justify-content: center;
	}

	.agenda-filters-wrapper {
		flex-direction: column;
		align-items: stretch;
	}

	.agenda-filter-group {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}

	.agenda-filter-input {
		min-width: 100%;
	}

	.agenda-table {
		font-size: 13px;
	}

		.agenda-table th,
		.agenda-table td {
			padding: 12px 10px;
		}
}

@media (max-width: 480px) {
	.agenda-tabs-item {
		min-width: 100%;
	}

	.agenda-table th:nth-child(3),
	.agenda-table td:nth-child(3) {
		display: none;
	}
}

/* ============================================ */
/* ANIMAÇÕES */
/* ============================================ */

.agenda-fade-in {
	animation: agendaFadeIn 0.3s ease;
}

@keyframes agendaFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}
