@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: #f8fafc;
}

/* Gradiente de texto */
.gradient-text {
    background-image: linear-gradient(90deg, rgb(150, 145, 145) 33.654%, rgb(92, 92, 92) 59.135%, rgb(150, 145, 145) 87.981%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Line clamp */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Esconder scrollbars */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE e Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none; /* Chrome, Safari e Opera */
}

/* Animações de página */
.page-enter {
    opacity: 0;
    transform: translateY(10px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms, transform 300ms;
}

.page-exit {
    opacity: 1;
}

.page-exit-active {
    opacity: 0;
    transition: opacity 300ms;
}

/* Paginação */
.pagination-dot {
    height: 8px;
    width: 8px;
    border-radius: 9999px;
    background-color: #d9d9d9;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-dot.active {
    width: 24px;
    background-color: #000;
    animation: pagination-dot-pop 0.3s ease;
}

.pagination-dot:hover:not(.active) {
    background-color: #b3b3b3;
    transform: scale(1.2);
}

@keyframes pagination-dot-pop {
    0% {
        width: 8px;
        transform: scaleY(0.6);
    }
    60% {
        width: 28px;
    }
    100% {
        width: 24px;
        transform: scaleY(1);
    }
}

@media (min-width: 640px) {
    .pagination-dot {
        height: 10px;
        width: 10px;
    }

    .pagination-dot.active {
        width: 32px;
    }

    @keyframes pagination-dot-pop {
        0% {
            width: 10px;
            transform: scaleY(0.6);
        }
        60% {
            width: 36px;
        }
        100% {
            width: 32px;
            transform: scaleY(1);
        }
    }
}

/* Efeitos de hover nos cards */
.product-card {
    transition: all 0.3s ease;
    box-shadow: 0px 2px 6px 0px rgba(0,0,0,0.2);
}

.product-card__media {
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
}

.product-card__media--empty {
    background: #f3f4f6;
}

.product-card__media-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    .product-card__media {
        width: 140px;
        aspect-ratio: auto;
        align-self: stretch;
        border-radius: 12px 0 0 12px;
    }
}

@media (min-width: 1024px) {
    .product-card__media {
        width: 160px;
    }
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 6px 12px rgba(0,0,0,0.12);
}

.related-product__media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem;
}

.related-product__media--empty {
    background: #f3f4f6;
}

.related-product__media-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Containers de conteúdo */
#content-container {
    min-height: 500px;
}

/* Esconder elementos durante a navegação */
.hidden-transition {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.visible-transition {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Screenshots — galeria clicável (lightbox) */
.produto-screenshots-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    align-items: flex-end;
}

.produto-screenshot-tile {
    flex: 0 0 auto;
    display: block;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.2s ease, opacity 0.2s ease;
    /* Tamanho padrão até o JS classificar (paisagem) */
    width: 280px;
    height: 158px;
}

.produto-screenshot-tile:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.produto-screenshot-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
}

/* Quadradas — tamanho maior */
.produto-screenshot-tile--square {
    width: 220px;
    height: 220px;
}

/* Paisagem (banners) — mais baixas, sem caixa cinza */
.produto-screenshot-tile--landscape {
    width: 280px;
    height: 158px;
}

@media (min-width: 640px) {
    .produto-screenshot-tile--square {
        width: 280px;
        height: 280px;
    }

    .produto-screenshot-tile--landscape {
        width: 340px;
        height: 191px;
    }
}

@media (min-width: 768px) {
    .produto-screenshot-tile--square {
        width: 320px;
        height: 320px;
    }

    .produto-screenshot-tile--landscape {
        width: 400px;
        height: 225px;
    }
}

/* Lightbox */
.produto-screenshot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.produto-screenshot-lightbox[hidden] {
    display: none !important;
}

.produto-screenshot-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.produto-screenshot-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.produto-screenshot-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.produto-screenshot-lightbox__img {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1280px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Padding para não sobrepor o header fixo */
body {
    padding-top: 67px;
}

/* Centralizar header-content */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
}

/* Botões de download Windows/Linux — estado de carregamento */
.produto-download-btn {
    position: relative;
    cursor: pointer;
}

.produto-download-btn__spinner {
    display: none;
}

.produto-download-btn.is-loading {
    opacity: 0.88;
    cursor: wait;
    pointer-events: none;
}

.produto-download-btn.is-loading .produto-download-btn__icon {
    display: none;
}

.produto-download-btn.is-loading .produto-download-btn__spinner {
    display: inline-block;
}

/* Botão Linux com dropdown (.deb / AppImage) */
.produto-download-menu {
    position: relative;
    display: inline-block;
}

.produto-download-menu__trigger {
    cursor: pointer;
}

.produto-download-menu__spinner {
    display: none;
}

.produto-download-menu__trigger.is-loading {
    opacity: 0.9;
    cursor: wait;
    pointer-events: none;
}

.produto-download-menu__trigger.is-loading .produto-download-menu__trigger-icon,
.produto-download-menu__trigger.is-loading .produto-download-menu__caret {
    display: none;
}

.produto-download-menu__trigger.is-loading .produto-download-menu__spinner {
    display: inline-block;
}

.produto-download-menu__caret {
    font-size: 0.72em;
    margin-left: 0.1rem;
    transition: transform 0.18s ease;
}

.produto-download-menu.is-open .produto-download-menu__caret {
    transform: rotate(180deg);
}

.produto-download-menu__list {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    min-width: 230px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.produto-download-menu__list[hidden] {
    display: none;
}

.produto-download-menu__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    color: #111827;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    transition: background 0.15s ease;
}

.produto-download-menu__item:hover {
    background: #f3f4f6;
}

.produto-download-menu__item-icon {
    width: 1.15rem;
    text-align: center;
    flex-shrink: 0;
}

/* Hero — ícones flutuantes dos produtos */
.produtos-hero-icons {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.produtos-hero-icon {
    position: absolute;
    width: clamp(52px, 7.5vw, 76px);
    height: clamp(52px, 7.5vw, 76px);
    border-radius: 18px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform-origin: center;
    will-change: transform;
}

.produtos-hero-icon__glow {
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
    opacity: 0.7;
    z-index: -1;
}

.produtos-hero-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

@keyframes produtosHeroFloatA {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-7deg); }
    50% { transform: translate3d(0, -16px, 0) rotate(5deg); }
}

@keyframes produtosHeroFloatB {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(6deg); }
    50% { transform: translate3d(0, -12px, 0) rotate(-4deg); }
}

@keyframes produtosHeroFloatC {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(3deg); }
    33% { transform: translate3d(8px, -10px, 0) rotate(-5deg); }
    66% { transform: translate3d(-6px, -14px, 0) rotate(4deg); }
}

@keyframes produtosHeroFloatD {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
    50% { transform: translate3d(-8px, -11px, 0) rotate(6deg); }
}

.produtos-hero-icon--1 { left: 4%; top: 14%; animation: produtosHeroFloatA 7s ease-in-out infinite; }
.produtos-hero-icon--2 { left: 16%; bottom: 10%; animation: produtosHeroFloatB 8.5s ease-in-out infinite 0.6s; }
.produtos-hero-icon--3 { left: 30%; top: 8%; animation: produtosHeroFloatC 7.5s ease-in-out infinite 1.1s; }
.produtos-hero-icon--4 { right: 30%; top: 12%; animation: produtosHeroFloatD 6.8s ease-in-out infinite 0.3s; }
.produtos-hero-icon--5 { right: 14%; bottom: 12%; animation: produtosHeroFloatA 8s ease-in-out infinite 1.4s; }
.produtos-hero-icon--6 { right: 3%; top: 20%; animation: produtosHeroFloatB 7.2s ease-in-out infinite 0.9s; }
.produtos-hero-icon--7 { left: 8%; top: 48%; animation: produtosHeroFloatC 9s ease-in-out infinite 1.8s; opacity: 0.72; }
.produtos-hero-icon--8 { right: 7%; top: 46%; animation: produtosHeroFloatD 8.8s ease-in-out infinite 2.1s; opacity: 0.72; }

@media (max-width: 768px) {
    .produtos-hero-icon {
        width: clamp(44px, 11vw, 58px);
        height: clamp(44px, 11vw, 58px);
        border-radius: 14px;
        padding: 5px;
    }

    .produtos-hero-icon--3,
    .produtos-hero-icon--4,
    .produtos-hero-icon--7,
    .produtos-hero-icon--8 {
        display: none;
    }
}

@media (max-width: 480px) {
    .produtos-hero-icon--2,
    .produtos-hero-icon--5 {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .produtos-hero-icon {
        animation: none !important;
    }
}

#header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

