/* Buttons */

.button,
.acao-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-family: var(--font-button);
	font-size: 0.88rem;
	font-weight: 800;
	text-decoration: none;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.acao-button {
	text-transform: uppercase;
}

.button:hover,
.button:focus,
.acao-button:hover,
.acao-button:focus {
	transform: translateY(-1px);
}

.button--primary,
.acao-button--external {
	background: var(--color-primary);
	color: #ffffff;
}

.button--primary:hover,
.button--primary:focus,
.acao-button--external:hover,
.acao-button--external:focus {
	background: var(--color-primary-dark);
}

.button--light {
	background: var(--color-accent);
	color: #111114;
}

.button--light:hover,
.button--light:focus {
	background: #ffd66b;
}

.button--whatsapp {
	gap: 10px;
	background: #25d366;
	color: #07140b;
}

.button--whatsapp:hover,
.button--whatsapp:focus {
	background: #7be6a3;
}

.budo-icon {
	display: inline-block;
	flex: 0 0 auto;
	width: 1.15em;
	height: 1.15em;
}

.acao-button--whatsapp {
	background: #25d366;
	color: #07140b;
}

.acao-button--whatsapp:hover,
.acao-button--whatsapp:focus {
	background: #7be6a3;
}

/* Mobile native share shortcut */

.quick-share-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: var(--color-text);
	cursor: pointer;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.quick-share-button[hidden] {
	display: none !important;
}

.quick-share-button:hover,
.quick-share-button:focus {
	background: var(--color-surface-raised);
	border-color: var(--color-accent);
	color: var(--color-text);
	transform: translateY(-1px);
}

.quick-share-button .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 1;
}

@media (min-width: 561px) {
	.quick-share-button {
		display: none !important;
	}
}

/* Info cards (units, teachers) */

.info-card {
	padding: 24px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.info-card h3 {
	margin-top: 0;
	color: var(--color-text);
	font-size: 1rem;
	font-weight: 800;
}

.info-card p {
	color: var(--color-muted);
}

.info-card__button {
	margin-top: 8px;
}

.info-card--unit {
	position: relative;
	overflow: hidden;
	padding: 0;
}

.info-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--color-surface-raised);
}

.info-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.info-card__body {
	padding: 24px;
}

.info-card__badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 10px;
	background: var(--color-accent);
	border-radius: 999px;
	color: #111114;
	font-family: var(--font-button);
	font-size: 0.74rem;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

.info-card__media .info-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
}

.info-card__badge--static {
	margin: 24px 24px 0;
}

.info-card__badge--hero {
	margin-top: 16px;
}

.info-card__badge--inline {
	margin-bottom: 12px;
}

.info-card__meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.info-card__meta-row--share-only {
	justify-content: flex-end;
	margin-bottom: 0;
}

.info-card__meta-row--share-only .quick-share-button {
	margin-bottom: 12px;
}

.info-card__cover-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.info-card--unit .info-card__body,
.info-card--unit .info-card__media,
.info-card--unit .info-card__badge--static {
	position: relative;
}

.info-card--unit .info-card__button {
	position: relative;
	z-index: 2;
}

.info-card__quick-share {
	position: relative;
	z-index: 2;
}

.info-card--unit:hover,
.info-card--unit:focus-within,
.info-card--professor:hover,
.info-card--professor:focus-within {
	border-color: var(--color-accent);
}

.info-card--professor {
	overflow: hidden;
	position: relative;
	padding: 0;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.info-card__media--profile {
	aspect-ratio: 16 / 10;
}

/* Class schedule grid + filters */

.schedule {
	display: grid;
	gap: 16px;
}

.schedule [hidden] {
	display: none !important;
}

.schedule-filters {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 22px;
}

.schedule-filters label {
	display: grid;
	gap: 6px;
	width: 100%;
	color: var(--color-muted);
	font-family: var(--font-button);
	font-size: 0.76rem;
	font-weight: 900;
	text-transform: uppercase;
}

.schedule-filters select {
	width: 100%;
	min-height: 44px;
	padding: 0 38px 0 12px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	color: var(--color-text);
	font: inherit;
	text-transform: none;
}

.schedule div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--color-border);
}

.schedule strong {
	color: var(--color-text);
	font-family: var(--font-heading);
	text-transform: uppercase;
}

.schedule span {
	color: var(--color-muted);
	text-align: right;
}

.schedule__empty {
	margin: 10px 0 0;
	color: var(--color-muted);
	font-weight: 700;
}

/*
 * .schedule__time is the "pill" shown per class slot. It started as a
 * simple flex row and was iterated into a centered pill with an inline
 * info tooltip — this is the final, currently rendered shape.
 */
.schedule__time {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 104px;
	padding: 12px 14px;
	background: transparent;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	text-align: center;
}

.schedule__hour {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-button);
	font-weight: 900;
}

.schedule__info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: -7px;
	right: -7px;
	width: 20px;
	height: 20px;
	padding: 0;
	background: var(--color-accent);
	border: 2px solid var(--color-surface);
	border-radius: 999px;
	color: #111114;
	cursor: help;
	font-family: var(--font-button);
	font-size: 0.68rem;
	font-weight: 900;
	line-height: 1;
}

.schedule__info::after {
	content: attr(data-tooltip);
	position: absolute;
	right: -2px;
	bottom: calc(100% + 10px);
	z-index: 4;
	width: max-content;
	max-width: min(260px, 70vw);
	padding: 10px 12px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.35;
	opacity: 0;
	pointer-events: none;
	text-align: left;
	text-transform: none;
	transform: translateY(4px);
	transition: opacity 160ms ease, transform 160ms ease;
}

.schedule__info:hover::after,
.schedule__info:focus::after {
	opacity: 1;
	transform: translateY(0);
}

.schedule__teachers {
	display: none;
}

.schedule__meta {
	max-width: 180px;
	color: var(--color-muted);
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1.25;
	text-transform: uppercase;
}

.schedule__times {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	color: var(--color-muted);
	text-align: right;
}

.schedule__times .schedule__time {
	padding: 4px 0;
}

.professor-profile__schedule-times {
	justify-content: flex-start;
	text-align: left;
}

/* Share widget */

.budo-share {
	display: grid;
	gap: 12px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--color-border);
}

.budo-share__button[hidden] {
	display: none !important;
}

.budo-share__title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.budo-share__actions {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	max-width: 100%;
	position: relative;
}

.budo-share__items {
	display: inline-flex;
	align-items: center;
	flex: 0 1 auto;
	flex-wrap: nowrap;
	gap: 10px;
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	order: 2;
	pointer-events: none;
	transform: translateX(-10px) scale(0.96);
	transition:
		max-width 260ms ease,
		opacity 180ms ease,
		transform 220ms ease,
		visibility 180ms ease;
	visibility: hidden;
	white-space: nowrap;
}

.budo-share.is-open .budo-share__items {
	max-width: 420px;
	opacity: 1;
	pointer-events: auto;
	transform: translateX(0) scale(1);
	visibility: visible;
}

.budo-share__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: var(--color-text);
	cursor: pointer;
	font-family: var(--font-button);
	font-size: 0.78rem;
	font-weight: 900;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.budo-share__button:hover,
.budo-share__button:focus {
	border-color: var(--color-accent);
	transform: translateY(-1px);
}

.budo-share__toggle {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
	order: 1;
}

.budo-share__toggle:hover,
.budo-share__toggle:focus {
	background: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	color: #fff;
}

.budo-share__button--copy.is-copied {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.budo-share__button .budo-icon {
	width: 20px;
	height: 20px;
}

.budo-share__button--copy .budo-icon--check,
.budo-share__button--copy.is-copied .budo-icon--copy {
	display: none;
}

.budo-share__button--copy.is-copied .budo-icon--check {
	display: inline-block;
}

@media (max-width: 560px) {
	.budo-share__actions {
		width: 100%;
	}

	.budo-share__items {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.budo-share__items::-webkit-scrollbar {
		display: none;
	}

	.budo-share.is-open .budo-share__items {
		max-width: calc(100vw - 96px);
	}
}

@media (max-width: 560px) {
	.budo-share--floating {
		position: fixed;
		left: 16px;
		bottom: 18px;
		z-index: 60;
		display: block;
		width: auto;
		margin: 0;
		padding: 0;
		border: 0;
	}

	.budo-share--floating .budo-share__actions {
		align-items: flex-start;
		flex-direction: column-reverse;
		width: auto;
	}

	.budo-share--floating .budo-share__items {
		flex-direction: column;
		max-width: none;
		max-height: 0;
		overflow: hidden;
		transform: translateY(10px) scale(0.96);
		transition:
			max-height 260ms ease,
			opacity 180ms ease,
			transform 220ms ease,
			visibility 180ms ease;
	}

	.budo-share--floating.is-open .budo-share__items {
		max-height: 360px;
		transform: translateY(0) scale(1);
	}

	.budo-share--floating .budo-share__button {
		background: var(--color-surface);
		box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
	}

	.budo-share--floating .budo-share__toggle {
		background: var(--color-primary);
		box-shadow: 0 12px 30px rgba(230, 0, 0, 0.26);
	}
}

/* Carousel (used by the teachers section) */

.section-heading--with-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.section-heading--with-actions h2 {
	margin-bottom: 0;
}

.carousel-controls {
	display: flex;
	gap: 8px;
}

.carousel-controls--centered {
	justify-content: center;
	margin: -4px 0 18px;
}

.carousel-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: var(--color-text);
	cursor: pointer;
	font-size: 1.5rem;
	line-height: 1;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.carousel-button:hover,
.carousel-button:focus {
	transform: translateY(-1px);
	border-color: var(--color-accent);
}

.carousel-button:disabled {
	cursor: not-allowed;
	opacity: 0.38;
	transform: none;
}

/*
 * The carousel track is JS-driven (translateX via carousel.js), not a
 * native scroll-snap container — overflow stays visible and the track
 * slides via transform.
 */
.professores-carousel {
	position: relative;
	margin: 0 -14px;
	overflow: hidden;
	padding: 24px 14px 30px;
	border-radius: 8px;
	background:
		linear-gradient(90deg, var(--color-background) 0, transparent 9%, transparent 91%, var(--color-background) 100%),
		linear-gradient(180deg, rgba(246, 195, 67, 0.1), transparent 72%),
		var(--color-section-muted);
}

.professores-carousel__track {
	display: flex;
	gap: 20px;
	padding: 4px 2px 10px;
	overflow: visible;
	scroll-behavior: auto;
	scroll-snap-type: none;
	transition: transform 220ms ease;
	will-change: transform;
}

.professores-carousel__track > .info-card {
	flex: 0 0 calc((100% - 40px) / 3);
	scroll-snap-align: none;
}

@media (max-width: 900px) {
	.professores-carousel__track > .info-card {
		flex-basis: calc((100% - 20px) / 2);
	}
}

@media (max-width: 760px) {
	.section-heading--with-actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.professores-carousel__track > .info-card {
		flex-basis: 88%;
	}
}

@media (max-width: 760px) {
	.cta__inner,
	.schedule div {
		align-items: flex-start;
		flex-direction: column;
	}

	.schedule span {
		text-align: left;
	}

	.schedule__time {
		align-items: center;
		min-width: 96px;
	}

	.schedule__meta {
		max-width: 170px;
	}

	.schedule__times {
		justify-content: flex-start;
		text-align: left;
	}

	.schedule__info::after {
		right: auto;
		left: 0;
	}
}

@media (max-width: 640px) {
	.schedule-filters {
		grid-template-columns: 1fr;
	}
}

/* Scroll reveal */

[data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 520ms ease,
		transform 520ms ease;
	will-change: opacity, transform;
}

[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	[data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
		will-change: auto;
	}
}

/* Member components */

.budo-member-area-button {
	gap: 10px;
	background: var(--color-surface);
	border-color: var(--color-border);
	color: var(--color-text);
}

.budo-member-area-button:hover,
.budo-member-area-button:focus {
	background: var(--color-surface-raised);
	border-color: var(--color-accent);
	color: var(--color-text);
}

.budo-member-area-button .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
}

.budo-member-area-button--hero {
	background: rgba(21, 21, 24, 0.76);
	border-color: rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

.budo-member-area-button--hero:hover,
.budo-member-area-button--hero:focus {
	background: rgba(29, 29, 34, 0.94);
	border-color: var(--color-accent);
	color: #ffffff;
}

.budo-member-profile {
	display: flex;
	align-items: center;
	gap: 18px;
	width: min(100%, 760px);
	padding: 18px;
	background: linear-gradient(135deg, var(--color-surface), var(--color-surface-raised));
	border: 1px solid var(--color-border);
	border-radius: 8px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.budo-member-profile__avatar {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	overflow: hidden;
	background: var(--color-background);
	border: 2px solid var(--color-accent);
	border-radius: 999px;
}

.budo-member-profile__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.budo-member-profile__body {
	min-width: 0;
}

.budo-member-profile__eyebrow {
	margin: 0 0 4px !important;
	color: var(--color-accent) !important;
	font-family: var(--font-button);
	font-size: 0.72rem !important;
	font-weight: 800;
	text-transform: uppercase;
}

.budo-member-profile h2 {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.15;
}

.budo-member-profile__role {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	margin-top: 8px;
	padding: 4px 10px;
	background: var(--color-primary-soft);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: var(--color-text);
	font-family: var(--font-button);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
}

.budo-member-profile__logout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	margin-left: auto;
	padding: 8px 12px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: var(--color-muted);
	font-family: var(--font-button);
	font-size: 0.78rem;
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
}

.budo-member-profile__logout:hover,
.budo-member-profile__logout:focus {
	border-color: var(--color-accent);
	color: var(--color-text);
}

.budo-member-profile__logout .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
}

@media (max-width: 560px) {
	.budo-member-profile {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.budo-member-profile__avatar {
		width: 60px;
		height: 60px;
	}

	.budo-member-profile__body {
		flex: 1 1 calc(100% - 78px);
	}

	.budo-member-profile__logout {
		width: 100%;
		margin-left: 0;
	}
}
/* Member entry navbar component */

.budo-member-entry {
	position: relative;
	font-family: var(--font-button);
	font-size: 0.82rem;
	font-weight: 800;
}

.budo-member-entry--logged-out,
.budo-member-entry__summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 42px;
	padding: 8px 13px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: var(--color-text);
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.budo-member-entry--logged-out:hover,
.budo-member-entry--logged-out:focus,
.budo-member-entry__summary:hover,
.budo-member-entry__summary:focus {
	background: var(--color-surface-raised);
	border-color: var(--color-accent);
	transform: translateY(-1px);
}

.budo-member-entry .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
}

.budo-member-entry__dropdown {
	position: relative;
}

.budo-member-entry__dropdown[open] .budo-member-entry__summary {
	border-color: var(--color-accent);
}

.budo-member-entry__summary {
	list-style: none;
}

.budo-member-entry__summary::-webkit-details-marker {
	display: none;
}

.budo-member-entry__avatar {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	overflow: hidden;
	border: 1px solid var(--color-accent);
	border-radius: 999px;
}

.budo-member-entry__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.budo-member-entry__name {
	display: inline-block;
	max-width: 150px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.budo-member-entry__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 20;
	min-width: 150px;
	padding: 6px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.budo-member-entry__menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 8px 10px;
	border-radius: 6px;
	color: var(--color-text);
	text-decoration: none;
	text-transform: uppercase;
}

.budo-member-entry__menu a:hover,
.budo-member-entry__menu a:focus {
	background: var(--color-surface-raised);
	color: var(--color-accent);
}

@media (max-width: 720px) {
	.budo-member-entry--header .budo-member-entry__name {
		max-width: 96px;
	}
}

@media (max-width: 520px) {
	.budo-member-entry--header.budo-member-entry--logged-out span:last-child,
	.budo-member-entry--header .budo-member-entry__name,
	.budo-member-entry--header .dashicons-arrow-down-alt2 {
		display: none;
	}

	.budo-member-entry--logged-out,
	.budo-member-entry__summary {
		width: 42px;
		padding: 0;
	}
}