/* ============================================
   WALNUTZ CERTISIGN - KICKOFF NEXT 2026
   Estilos Customizados (complementar Tailwind)
   ============================================ */

/* --- RESET & BASE --- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	height: 100%;
	overflow-x: hidden;
}

body {
	min-height: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* ============================================
   TELAS - SISTEMA DE NAVEGACAO
   ============================================ */
.screen {
	display: none !important;
	position: relative;
	z-index: 10;
	min-height: 100dvh;
}

.screen.active {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	animation: screenIn 0.35s ease forwards;
}

/* Container interno de cada tela */
.screen-inner {
	width: 100%;
	max-width: 600px;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	padding: 1.5rem 1.25rem;
}

/* HOME: centraliza conteudo verticalmente no desktop */
#tela-home > .screen-inner {
	justify-content: center;
}

/* HOME: espacamento adaptativo com viewport height
   Em telas altas = margens grandes, telas baixas = comprime
   Mas NUNCA esconde conteudo, scroll continua permitido */
#tela-home .home-logo {
	/* Logo escala com a altura da tela: min 8rem, ideal 22vh, max 18rem */
	height: clamp(8rem, 10vh, 12rem);
}

#tela-home .home-gap {
	/* Margem inferior adaptativa: min 0.75rem, ideal 2vh, max 1.5rem */
	margin-bottom: clamp(0.75rem, 2vh, 1.5rem);
}

#tela-home .home-gap-sm {
	margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
}

@keyframes screenIn {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================
   ANIMACOES
   ============================================ */
.animate-fadeIn {
	opacity: 0;
	animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================
   SETAS FLUTUANTES
   ============================================ */
@keyframes floatRight {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(110vw);
	}
}

@keyframes arrowFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: var(--arrow-opacity, 0.3);
	}
}

@keyframes arrowFadeOut {
	from {
		opacity: var(--arrow-opacity, 0.3);
	}
	to {
		opacity: 0;
	}
}

.floating-arrow {
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
}

/* ============================================
   GLASS CARD
   ============================================ */
.glass-card {
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: rgba(79, 109, 181, 0.12);
	border: 1px solid rgba(79, 109, 181, 0.2);
	border-radius: 12px;
	padding: 10px 12px;
	min-width: 54px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* ============================================
   BOTOES
   ============================================ */
.btn-primary {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 24px;
	background: linear-gradient(135deg, #4f6db5, #3b5298);
	color: white;
	font-weight: 600;
	font-size: 0.95rem;
	border: none;
	border-radius: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 15px rgba(79, 109, 181, 0.25);
	text-decoration: none;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(79, 109, 181, 0.35);
	background: linear-gradient(135deg, #5b7fc7, #4f6db5);
}

.btn-primary:active {
	transform: translateY(0);
}

/* Botao destaque (Confirme sua presenca) */
.btn-highlight {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 18px 28px;
	background: linear-gradient(135deg, #22c55e, #16a34a);
	color: white;
	font-weight: 700;
	font-size: 1.05rem;
	border: none;
	border-radius: 16px;
	cursor: pointer;
	transition: all 0.25s ease;
	box-shadow:
		0 4px 20px rgba(34, 197, 94, 0.3),
		0 0 40px rgba(34, 197, 94, 0.08);
	position: relative;
	overflow: hidden;
}

.btn-highlight::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.15),
		transparent
	);
	animation: shimmer 3s infinite;
}

@keyframes shimmer {
	0% {
		left: -100%;
	}
	100% {
		left: 100%;
	}
}

.btn-highlight:hover {
	transform: translateY(-2px);
	box-shadow:
		0 8px 30px rgba(34, 197, 94, 0.4),
		0 0 60px rgba(34, 197, 94, 0.12);
}

.btn-highlight:active {
	transform: translateY(0);
}

/* Botao adicionar na agenda */
.btn-calendar {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	font-size: 0.7rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.btn-calendar:hover {
	color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.15);
}

.btn-back {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	color: white;
	cursor: pointer;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.btn-back:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.2);
}

.btn-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 16px 24px;
	background: linear-gradient(135deg, #22c55e, #16a34a);
	color: white;
	font-weight: 700;
	font-size: 1rem;
	border: none;
	border-radius: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 15px rgba(34, 197, 94, 0.25);
}

.btn-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35);
}

.btn-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
}

.hub-card {
	display: block;
	width: 100%;
	padding: 16px 18px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	text-decoration: none;
	transition: all 0.2s ease;
	color: #fff;
}

.hub-card:hover {
	background: rgba(255, 255, 255, 0.09);
	border-color: rgba(255, 255, 255, 0.22);
	transform: translateY(-1px);
}

.hub-card h3 {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 6px;
}

.hub-card p {
	font-size: 0.85rem;
	color: #9ca3af;
	line-height: 1.5;
}

.hub-card .hub-meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-size: 0.72rem;
	color: #93c5fd;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
}

.hub-card.locked {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

/* ============================================
   FORMULARIOS
   ============================================ */
.form-group {
	display: flex;
	flex-direction: column;
}

.form-label {
	font-size: 0.85rem;
	font-weight: 500;
	color: #d1d5db;
	margin-bottom: 6px;
}

.form-input {
	width: 100%;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.05);
	border: 1.5px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	color: #fff;
	font-size: 0.95rem;
	font-family: inherit;
	transition: all 0.2s ease;
	outline: none;
}

.form-input::placeholder {
	color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
	border-color: #4f6db5;
	background: rgba(79, 109, 181, 0.06);
	box-shadow: 0 0 0 3px rgba(79, 109, 181, 0.12);
}

.form-input.error {
	border-color: #ef4444;
	background: rgba(239, 68, 68, 0.05);
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.form-error {
	font-size: 0.75rem;
	color: #ef4444;
	margin-top: 4px;
	height: 0;
	overflow: hidden;
	opacity: 0;
	transition: all 0.2s ease;
}

.form-error.visible {
	opacity: 1;
	height: auto;
	min-height: 18px;
}

/* ============================================
   RADIO OPTIONS
   ============================================ */
.radio-option {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.04);
	border: 1.5px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 0.9rem;
	color: #d1d5db;
}

.radio-option:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.18);
}

.radio-option input[type="radio"] {
	accent-color: #4f6db5;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.radio-option:has(input:checked) {
	background: rgba(79, 109, 181, 0.12);
	border-color: #4f6db5;
	color: white;
}

/* ============================================
   AGENDA
   ============================================ */
.agenda-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	font-size: 0.9rem;
	color: #e5e7eb;
}

.agenda-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4f6db5;
	flex-shrink: 0;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
	width: 4px;
}
::-webkit-scrollbar-track {
	background: transparent;
}
::-webkit-scrollbar-thumb {
	background: rgba(79, 109, 181, 0.2);
	border-radius: 4px;
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
	background: rgba(79, 109, 181, 0.4);
	color: white;
}

/* ============================================
   RESPONSIVO - TABLET (>=768px)
   ============================================ */
@media (min-width: 768px) {
	.screen-inner {
		max-width: 680px;
		padding: 2rem 2rem;
	}

	.countdown-box {
		padding: 14px 18px;
		min-width: 72px;
	}

	.btn-primary {
		padding: 16px 28px;
		font-size: 1rem;
	}

	.form-input {
		padding: 14px 18px;
	}
}

/* ============================================
   RESPONSIVO - DESKTOP (>=1024px)
   ============================================ */
@media (min-width: 1024px) {
	.screen-inner {
		max-width: 800px;
		padding: 2rem 2.5rem;
	}

	.countdown-box {
		padding: 14px 20px;
		min-width: 80px;
	}

	.btn-highlight {
		padding: 16px 28px;
		font-size: 1.1rem;
	}
}

/* ============================================
   RESPONSIVO - DESKTOP LARGE (>=1280px)
   ============================================ */
@media (min-width: 1280px) {
	.screen-inner {
		max-width: 880px;
		padding: 2.5rem 3rem;
	}

	.countdown-box {
		padding: 16px 24px;
		min-width: 88px;
	}
}

/* ============================================
   RESPONSIVO - ULTRAWIDE (>=1536px)
   ============================================ */
@media (min-width: 1536px) {
	.screen-inner {
		max-width: 960px;
	}
}
