/* assets/css/styles.css */

/* Estilos base */
body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Hero pattern */
.hero-pattern {
    background-color: #130f23;
    background-image: radial-gradient(circle at 10% 20%, rgba(115, 81, 251, 0.2) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(79, 70, 229, 0.1) 0%, transparent 20%);
}

/* Animações personalizadas */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Estilização da mockup do celular */
.mockup-phone {
    position: relative;
    border-radius: 2.5rem;
    border: 14px solid #1f2937;
    background: #1f2937;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.mockup-phone::before {
    content: "";
    position: absolute;
    width: 3px;
    height: 32px;
    background: #1f2937;
    left: -17px;
    top: 72px;
    border-radius: 4px 0 0 4px;
}

.mockup-phone::after {
    content: "";
    position: absolute;
    width: 3px;
    height: 46px;
    background: #1f2937;
    right: -17px;
    top: 142px;
    border-radius: 0 4px 4px 0;
}

/* Melhorias para os cards */
.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradientes personalizados */
.bg-gradient-primary {
    background: linear-gradient(135deg, #7351fb 0%, #4f46e5 100%);
}

.bg-gradient-gold {
    background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
}

/* Efeitos de brilho */
.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

/* Responsividade para mobile */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .hero-pattern {
        background-size: 200% 200%;
    }
}

/* Loading animation para imagens */
img {
    transition: opacity 0.3s ease;
}

img.loading {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Botão de toggle do tema */
.theme-toggle {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    color: inherit;
}

.theme-toggle:hover {
    background-color: rgba(115, 81, 251, 0.1);
    transform: rotate(15deg);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle .material-icons-round {
    font-size: 28px;
    transition: all 0.3s ease;
}

/* Animação de rotação para o ícone */
.rotate-icon {
    animation: rotate 0.5s ease;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Dark mode específico para o toggle */
.dark .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Padrão visual antes aplicado inline no HTML. */
.download-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Ícones locais em SVG, sem Google Material Icons CDN. */
.material-icons-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
    vertical-align: -0.125em;
}

.bb-icon-svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.animate-spin .bb-icon-svg,
.bb-icon-svg.animate-spin {
    animation: spin 1s linear infinite;
}
