:root {
    --primary: #f73e3e; 
    --secondary: #ffffff;
    --accent: #012ef7;
    
    --slide-width: min(25vw, 300px);
	--slide-aspect: 2 / 3;
	--slide-transition-duration: 800ms;
	--slide-transition-easing: ease;
	--font-archivo: "Archivo", sans-serif;
	--font-clash-display: "Clash Display", sans-serif;
}

/* Classes utilitárias para usar --primary */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.hover\:text-primary:hover {
    color: var(--primary) !important;
}

.hover\:bg-primary:hover {
    background-color: var(--primary) !important;
}

.bg-primary-dark {
    background-color: color-mix(in srgb, var(--primary) 90%, black) !important;
}

.hover\:bg-primary-dark:hover {
    background-color: color-mix(in srgb, var(--primary) 80%, black) !important;
}

* {
	box-sizing: border-box;
}

/* Reset apenas para elementos do slider original */
.slider * {
	margin: 0;
	padding: 0;
}

/* Estilos do novo carrossel - apenas dentro de .carousel-container */
#page-home .carousel-container {
    position: relative;
    width: 100%;
    min-height: 60vh;
    height: auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    margin: 2rem 0;
}

#page-home .carousel-container ul.carousel-slider {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
}

#page-home .carousel-container .item {
    width: 200px;
    height: 300px;
    list-style-type: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    box-shadow: 0 20px 30px rgba(255,255,255,0.3) inset;
    transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;
}

#page-home .carousel-container .item:nth-child(1), 
#page-home .carousel-container .item:nth-child(2) {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
}

#page-home .carousel-container .item:nth-child(3) { left: 50%; }
#page-home .carousel-container .item:nth-child(4) { left: calc(50% + 220px); }
#page-home .carousel-container .item:nth-child(5) { left: calc(50% + 440px); }
#page-home .carousel-container .item:nth-child(6) { left: calc(50% + 660px); opacity: 0; }

#page-home .carousel-container .content {
    width: min(30vw,400px);
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    font: 400 0.85rem helvetica,sans-serif;
    color: white;
    text-shadow: 0 3px 8px rgba(0,0,0,0.8);
    opacity: 0;
    display: none;
    z-index: 10;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

#page-home .carousel-container .content .title {
    font-family: 'arial-black';
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 12px rgba(0,0,0,0.9);
    margin-bottom: 0.5rem;
}

#page-home .carousel-container .content .description {
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

#page-home .carousel-container .content button {
    width: fit-content;
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#page-home .carousel-container .content button:hover {
    background-color: var(--primary);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

#page-home .carousel-container .item:nth-of-type(2) .content {
    display: block;
    animation: show 0.75s ease-in-out 0.3s forwards;
}

@keyframes show {
    0% {
        filter: blur(5px);
        transform: translateY(calc(-50% + 75px));
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

#page-home .carousel-container .carousel-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    user-select: none;
}

#page-home .carousel-container .carousel-nav .carousel-btn {
    background-color: rgba(255,255,255,0.5);
    color: rgba(0,0,0,0.7);
    border: 2px solid rgba(0,0,0,0.6);
    margin: 0 0.25rem;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
}

#page-home .carousel-container .carousel-nav .carousel-btn:hover {
    background-color: rgba(255,255,255,0.3);
}

@media (width > 650px) and (width < 900px) {
    #page-home .carousel-container .content {
        width: min(40vw, 350px);
        padding: 1.5rem;
    }
    
    #page-home .carousel-container .content .title { 
        font-size: 1.5rem; 
    }
    
    #page-home .carousel-container .content .description { 
        font-size: 0.85rem; 
    }
    
    #page-home .carousel-container .content button { 
        font-size: 0.8rem; 
        padding: 0.65rem 1.3rem;
    }
    
    #page-home .carousel-container .item {
        width: 160px;
        height: 270px;
    }
    
    #page-home .carousel-container .item:nth-child(3) { left: 50%; }
    #page-home .carousel-container .item:nth-child(4) { left: calc(50% + 170px); }
    #page-home .carousel-container .item:nth-child(5) { left: calc(50% + 340px); }
    #page-home .carousel-container .item:nth-child(6) { left: calc(50% + 510px); opacity: 0; }
}

@media (width < 650px) {
    #page-home .carousel-container {
        min-height: 50vh;
        height: auto;
    }
    
    #page-home .carousel-container ul.carousel-slider {
        height: 50vh;
        min-height: 300px;
    }
    
    #page-home .carousel-container .content {
        width: 85%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 1.5rem;
        background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 100%);
    }
    
    #page-home .carousel-container .content .title { 
        font-size: 1.5rem; 
        margin-bottom: 0.5rem;
    }
    
    #page-home .carousel-container .content .description { 
        font-size: 0.8rem; 
        margin: 0.75rem 0 1rem;
    }
    
    #page-home .carousel-container .content button { 
        font-size: 0.75rem; 
        padding: 0.6rem 1.2rem;
    }
    
    #page-home .carousel-container .item {
        width: 130px;
        height: 220px;
    }
    
    #page-home .carousel-container .item:nth-child(3) { left: 50%; }
    #page-home .carousel-container .item:nth-child(4) { left: calc(50% + 140px); }
    #page-home .carousel-container .item:nth-child(5) { left: calc(50% + 280px); }
    #page-home .carousel-container .item:nth-child(6) { left: calc(50% + 420px); opacity: 0; }
}  

/* Reset apenas para elementos do slider */
.slider * {
	margin: 0;
	padding: 0;
}

body { 
    font-family: 'Inter', sans-serif; 
    scroll-behavior: smooth; 
}

/* Estilos específicos para a página home com slider */
#page-home .slider {
	background: rgba(0, 0, 0, 0.787);
	width: 100%;
	max-width: 100vw;
	margin: 0;
	padding: 0;
	position: relative;
}

#page-home .slides__wrapper {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

/* Versão Mobile para slides_wrapper */
@media (max-width: 768px) {
	#page-home .slider {
		min-height: 50vh;
		height: auto;
		padding: 1rem 0;
	}
	
	#page-home .slides__wrapper {
		padding: 0 1rem;
	}
	
	#page-home .slide {
		--slide-width: min(70vw, 400px);
		--slide-aspect: 4 / 3;
	}
	
	#page-home .slide[data-next] {
		--slide-tx: calc(0.8 * var(--slide-width));
		--slide-rotY: -30deg;
	}
	
	#page-home .slide[data-previous] {
		--slide-tx: calc(-0.8 * var(--slide-width));
		--slide-rotY: 30deg;
	}
	
	#page-home .slide-info {
		padding: 1rem;
	}
	
	#page-home .slide-info--text {
		font-size: 0.9rem;
	}
	
	#page-home .slide-info--text[data-title] {
		font-size: 1.5rem;
	}
	
	#page-home .slide-info--text[data-subtitle] {
		font-size: 1.1rem;
	}
	
	#page-home .slider--btn {
		--size: 32px;
	}
	
	#page-home .slider--btn__prev {
		left: 10px;
	}
	
	#page-home .slider--btn__next {
		right: 10px;
	}
}

@media (max-width: 480px) {
	#page-home .slider {
		min-height: 40vh;
		padding: 0.5rem 0;
	}
	
	#page-home .slide {
		--slide-width: min(85vw, 350px);
		--slide-aspect: 3 / 2;
	}
	
	#page-home .slide[data-next] {
		--slide-tx: calc(0.6 * var(--slide-width));
		--slide-rotY: -20deg;
	}
	
	#page-home .slide[data-previous] {
		--slide-tx: calc(-0.6 * var(--slide-width));
		--slide-rotY: 20deg;
	}
	
	#page-home .slide-info {
		padding: 0.75rem;
	}
	
	#page-home .slide-info--text {
		font-size: 0.8rem;
	}
	
	#page-home .slide-info--text[data-title] {
		font-size: 1.2rem;
	}
	
	#page-home .slide-info--text[data-subtitle] {
		font-size: 1rem;
	}
	
	#page-home .slider--btn {
		--size: 28px;
	}
}

/* Esconder slider quando não estiver na página home ativa */
.tab-content:not(.active) .slider {
	display: none;
}

.tab-content:not(.active) .slide__bg {
	display: none;
}

/* Esconder carrossel quando não estiver na página home ativa */
.tab-content:not(.active) .carousel-container {
	display: none;
}

.glass-header {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
}

.hero-gradient {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
}

.tab-content { 
    display: none; 
}

.tab-content.active { 
    display: block; 
}

.admin-sidebar-item.active { 
    background-color: var(--primary); 
    color: #fff; 
}

/* Mensagens de login */
#login-error.text-green-600 {
    color: #16a34a !important;
}

#login-error:not(.text-green-600) {
    color: var(--primary) !important;
}

/* Área de Blog */
#blog-grid .bg-white {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#blog-grid .bg-white:hover {
    transform: translateY(-5px);
}

/* Rodapé */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary);
}

/* Carrossel de Blog */
#blog-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

#blog-carousel {
    display: flex;
    gap: 1.5rem;
    will-change: transform;
    animation: none;
}

.blog-card {
    flex-shrink: 0;
    width: calc((100vw - 12rem) / 5); /* 5 colunas visíveis */
    min-width: 280px;
    max-width: 320px;
}

/* Container do carrossel */
@media (max-width: 1280px) {
    .blog-card {
        width: calc((100vw - 9rem) / 4); /* 4 colunas */
    }
}

@media (max-width: 1024px) {
    .blog-card {
        width: calc((100vw - 6rem) / 3); /* 3 colunas em tablets */
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .blog-card {
        width: calc((100vw - 3rem) / 2); /* 2 colunas em mobile */
        min-width: 200px;
    }
}

button {
	border: none;
	background: none;
	cursor: pointer;
	&:focus {
		outline: none;
		border: none;
	}
}

/* ------------------------------------------------ */
/* -------------------- SLIDER -------------------- */
/* ------------------------------------------------ */

.slider {
	width: 100%;
	max-width: 100vw;
	height: calc(2 * var(--slide-height));
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0 auto;
}

.slider--btn {
	--size: 40px;

	display: inline-flex;
	justify-content: center;
	align-items: center;
	opacity: 0.7;
	transition: opacity 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
	z-index: 999;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: auto;

	& svg {
		width: var(--size);
		height: var(--size);
		stroke: white;
	}

	&:hover {
		opacity: 1;
	}
}

.slider--btn__prev {
	left: 20px;
}

.slider--btn__next {
	right: 20px;
}

.slides__wrapper {
	width: 100%;
	max-width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	margin: 0 auto;
	position: relative;

	& > * {
		grid-area: 1 / -1;
	}
}

.slides,
.slides--infos {
	width: 100%;
	max-width: 100%;
	height: 100%;

	pointer-events: none;

	display: grid;
	place-items: center;
	justify-content: center;
	& > * {
		grid-area: 1 / -1;
	}
}

/* ------------------------------------------------ */
/* -------------------- SLIDE --------------------- */
/* ------------------------------------------------ */

.slide {
	--slide-tx: 0px;
	--slide-ty: 0vh;
	--padding: 0px;
	--offset: 0;

	width: var(--slide-width);
	height: auto;
	aspect-ratio: var(--slide-aspect);
	user-select: none;
	perspective: 800px;

	transform: perspective(1000px)
		translate3d(var(--slide-tx), var(--slide-ty), var(--slide-tz, 0))
		rotateY(var(--slide-rotY)) scale(var(--slide-scale));
	transition: transform var(--slide-transition-duration)
		var(--slide-transition-easing);
}

.slide[data-current] {
	--slide-scale: 1.2;
	--slide-tz: 0px;
	--slide-tx: 0px;
	--slide-rotY: 0;

	pointer-events: auto;
}

.slide[data-next] {
	--slide-tx: calc(1 * var(--slide-width) * 1.07);
	--slide-rotY: -45deg;
}

.slide[data-previous] {
	--slide-tx: calc(-1 * var(--slide-width) * 1.07);
	--slide-rotY: 45deg;
}

.slide:not([data-current]) {
	--slide-scale: 1;
	--slide-tz: 0;
	/* --slide-tx: calc(var(--offset) * var(--slide-width) * 1.05); */
	/* --slide-rotY: calc(var(--dir) * -45deg); */

	pointer-events: none;
}

.slide[data-current] {
	& .slide--image {
		filter: brightness(0.8);
	}
}

.slide:not([data-current]) {
	& .slide--image {
		filter: brightness(0.5);
	}
}

.slide__inner {
	--rotX: 0;
	--rotY: 0;
	--bgPosX: 0%;
	--bgPosY: 0%;

	position: relative;
	left: calc(var(--padding) / 2);
	top: calc(var(--padding) / 2);
	width: calc(100% - var(--padding));
	height: calc(100% - var(--padding));
	transform-style: preserve-3d;
	transform: rotateX(var(--rotX)) rotateY(var(--rotY));
}

.slide--image__wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.slide--image {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 50%;
	left: 50%;
	object-fit: cover;
	transform: translate(-50%, -50%) scale(1.25)
		translate3d(var(--bgPosX), var(--bgPosY), 0);
	transition: filter var(--slide-transition-duration)
		var(--slide-transition-easing);
}

.slide__bg {
	position: fixed;
	inset: -20%;
	background-image: var(--bg);
	background-size: cover;
	background-position: center center;

	z-index: -1;
	pointer-events: none;

	transition: opacity var(--slide-transition-duration) ease,
		transform var(--slide-transition-duration) ease;

	&::before {
		content: "";
		position: absolute;
		inset: 0;
	}

	&::before {
		background: rgba(0, 0, 0, 0.8);
		backdrop-filter: blur(8px);
	}

	&:not([data-current]) {
		opacity: 0;
	}

	&[data-previous] {
		transform: translateX(-10%);
	}

	&[data-next] {
		transform: translateX(10%);
	}
}

/* ------------ SLIDE INFO ---------------- */

.slide-info {
	--padding: 0px;

	position: relative;
	width: var(--slide-width);
	height: 100%;
	aspect-ratio: var(--slide-aspect);
	user-select: none;
	perspective: 800px;
	z-index: 100;
}

.slide-info[data-current] {
	& .slide-info--text span {
		opacity: 1;
		transform: translate3d(0, 0, 0);
		transition-delay: 250ms;
	}
}

.slide-info:not([data-current]) {
	& .slide-info--text span {
		opacity: 0;
		transform: translate3d(0, 100%, 0);
		transition-delay: 0ms;
	}
}

.slide-info__inner {
	position: relative;
	left: calc(var(--padding) / 2);
	top: calc(var(--padding) / 2);
	width: calc(100% - var(--padding));
	height: calc(100% - var(--padding));
	transform-style: preserve-3d;
	transform: rotateX(var(--rotX)) rotateY(var(--rotY));
}

.slide-info--text__wrapper {
	--z-offset: 45px;

	position: absolute;
	height: fit-content;
	left: -15%;
	bottom: 15%;
	transform: translateZ(var(--z-offset));
	z-index: 2;
	pointer-events: none;
}

.slide-info--text {
	font-family: var(--font-clash-display);
	color: #fff;
	overflow: hidden;

	& span {
		display: block;
		white-space: nowrap;
		transition: var(--slide-transition-duration) var(--slide-transition-easing);
		transition-property: opacity, transform;
	}

	&[data-title],
	&[data-subtitle] {
		font-size: min(3cqw, 2.4rem);
		font-weight: 800;
		letter-spacing: 0.2cqw;
		white-space: nowrap;
		text-transform: uppercase;
	}

	&[data-subtitle] {
		margin-left: 2cqw;
		font-size: min(2.2cqw, 1.8rem);
		font-weight: 600;
	}

	&[data-description] {
		margin-left: 1cqw;
		font-size: min(1.5cqw, 0.95rem);
		font-family: var(--font-archivo);
		font-weight: 300;
	}
}

/* ------------------------------------------------ */
/* -------------------- LOADER --------------------- */
/* ------------------------------------------------ */

/* Loader apenas dentro da página home */
#page-home .loader {
	position: fixed;
	inset: 0;

	display: grid;
	place-items: center;

	background: #000;
	z-index: 1000;

	opacity: 1;
	transition: opacity 0.5s ease-out;
}

#page-home .loader__text {
	font-family: var(--font-clash-display);
	font-size: clamp(2rem, 2vw, 5rem);
	font-weight: 800;
	color: #fff;
}

/* Esconder loader quando não estiver na página home */
.tab-content:not(.active) .loader {
	display: none;
}

/* ------------------------------------------- */

/* Support apenas dentro da página home */
#page-home .support {
	position: fixed;
	right: 10px;
	bottom: 10px;
	padding: 10px;
	display: flex;
	z-index: 999;
}

#page-home .support a {
	margin: 0 10px;
	color: #fff;
	font-size: 1.8rem;
	backface-visibility: hidden;
	transition: all 150ms ease;
}

#page-home .support a:hover {
	transform: scale(1.1);
}

/* Esconder support quando não estiver na página home */
.tab-content:not(.active) .support {
	display: none;
}

/* Esconder rodapé quando não estiver na página home */
.tab-content:not(.active) footer {
	display: none;
}

/* Menu Mobile - Apenas visível em telas menores que 768px */
#mobile-menu-toggle {
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    display: none; /* Oculto por padrão */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

/* Mostrar apenas em mobile (telas menores que 768px) */
@media (max-width: 767px) {
    #mobile-menu-toggle {
        display: flex;
    }
}

#mobile-menu-toggle:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

#mobile-menu-toggle i {
    color: white;
}

/* Menu Mobile - Apenas visível em telas menores que 768px */
#mobile-menu {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Garantir que o menu mobile só apareça em mobile */
@media (min-width: 768px) {
    #mobile-menu {
        display: none !important;
    }
}

#mobile-menu .flex.flex-col.h-full {
    animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Garantir que o menu mobile fique acima de outros elementos */
#mobile-menu {
    z-index: 60;
}

/* Estilos para os botões do menu mobile */
#mobile-menu button,
#mobile-menu a {
    transition: all 0.3s ease;
}

#mobile-menu button:hover,
#mobile-menu a:hover {
    transform: translateX(5px);
}

@import url("https://api.fontshare.com/v2/css?f[]=archivo@100,200,300,400,500,600,700,800,900&f[]=clash-display@200,300,400,500,600,700&display=swap");