/* Estilos personalizados */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background-color: #f5e6d3;
    font-family: 'Inter', sans-serif;
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-overflow-scrolling: touch;
    color: #1a1a1a;
}

/* Gradiente overlay */
.gradient-overlay {
    position: relative;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, 
        rgba(128, 0, 255, 0.15) 0%,
        rgba(128, 0, 255, 0.1) 30%,
        rgba(128, 0, 255, 0.05) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

/* Ajuste para conteúdo ficar acima do gradiente */
header, main, footer {
    position: relative;
    z-index: 2;
}

/* Esconde a barra de rolagem mas mantém a funcionalidade */
.snap-x {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.snap-x::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classes de utilidade */
.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Indicadores de página */
.page-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 50;
}

.page-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #CBD5E1;
    transition: background-color 0.3s ease;
}

.page-dot.active {
    background-color: #4F46E5;
}

/* Estilização da barra de rolagem */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(26, 26, 26, 0.2);
    border-radius: 4px;
}

/* Efeitos de hover e active */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 26, 26, 0.1);
}

.category-item {
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.1);
}

/* Responsividade */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Estilização do input de pesquisa */
input[type="search"] {
    transition: all 0.3s ease;
}

input[type="search"]:focus {
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.1);
}

/* Efeito de ripple para botões */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #1a1a1a 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.ripple:active:after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

/* Animação de fade in para a logo */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Círculo de carregamento */
.loading-circle {
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid rgba(26, 26, 26, 0.1);
    border-top: 2px solid #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animação de saída da splash screen */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.splash-screen.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

/* Efeito de brilho na logo */
.logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(26, 26, 26, 0.05),
        transparent
    );
    animation: shine 2s infinite;
    z-index: 2;
}

@keyframes shine {
    100% {
        left: 200%;
    }
}

/* Animação de pulso para o texto "Carregando..." */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-text p {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    color: #1a1a1a;
}

/* Efeito de vidro fosco */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 
        0 8px 32px rgba(26, 26, 26, 0.1),
        inset 0 0 0 1px rgba(26, 26, 26, 0.05);
}

/* Responsividade */
@media (max-width: 640px) {
    .splash-screen {
        padding: 0;
    }

    .logo-container {
        width: 100px;
        height: 100px;
    }

    h1, h2 {
        font-size: 1.5rem;
    }
}

/* Prevenir scroll e bounce em iOS */
@supports (-webkit-touch-callout: none) {
    body {
        position: fixed;
        width: 100%;
    }
}

/* Container principal */
.w-full.h-full {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container da logo */
.logo-container {
    position: relative;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Texto de carregamento */
.loading-text {
    width: 100%;
    text-align: center;
    position: relative;
}

/* Estilo do título */
h1, h2 {
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1f2937;
}

h2 {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Container do smartphone */
.smartphone-container {
    position: relative;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Logo container */
img[alt="Logo Lapiel Alianças"] {
    animation: fadeIn 0.8s ease-out;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    margin: 0 auto;
}

/* Texto */
h1 {
    animation: fadeIn 0.8s ease-out;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
}

/* Loading text */
.animate-pulse {
    text-align: center;
    width: 100%;
}

/* Animação de fade out */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
    pointer-events: none;
}

/* Cards de atividade */
.activity-card {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.activity-card:nth-child(1) { animation-delay: 0.1s; }
.activity-card:nth-child(2) { animation-delay: 0.2s; }
.activity-card:nth-child(3) { animation-delay: 0.3s; }
.activity-card:nth-child(4) { animation-delay: 0.4s; }
.activity-card:nth-child(5) { animation-delay: 0.5s; }
.activity-card:nth-child(6) { animation-delay: 0.6s; }
.activity-card:nth-child(7) { animation-delay: 0.7s; }
.activity-card:nth-child(8) { animation-delay: 0.8s; }

.activity-card > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    background-color: rgba(26, 26, 26, 0.05);
}

.activity-card > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(26, 26, 26, 0.1);
    background-color: rgba(26, 26, 26, 0.1);
}

/* Efeitos de hover nos links */
a {
    transition: all 0.2s ease;
}

/* Botão principal */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 26, 26, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    nav {
        display: none;
    }

    .grid-cols-1 {
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1.1rem;
    }
}

/* Efeito de vidro */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Ícones */
.ph {
    transition: transform 0.2s ease;
    color: #1a1a1a;
}

.activity-card:hover .ph {
    transform: scale(1.1);
}

/* Footer links */
footer a {
    opacity: 0.8;
    transition: opacity 0.2s ease;
    color: #1a1a1a;
}

footer a:hover {
    opacity: 1;
} 