/* ============================================
   VersionBear — Products Page Styles
   Premium, polished showcase for shipped work
   ============================================ */

/* --- Products Hero Minimal --- */
.products-hero-minimal {
    padding: calc(var(--space-3xl) + 64px) var(--space-md) var(--space-xl);
    text-align: center;
}

.products-hero-title {
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.products-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 350;
    opacity: 0.8;
}

/* --- Products Grid Layout --- */
.products-grid-layout {
    padding: var(--space-xl) 0 var(--space-3xl);
}

.products-asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: var(--space-md);
    max-width: var(--max-width);
    margin: 0 auto;
}

.product-cell {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%), var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.6s var(--ease);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.product-cell::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.product-cell:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(196, 122, 58, 0.1);
}

/* Cell sizing */
.cell-lg {
    grid-column: span 12;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
}

.cell-md {
    grid-column: span 7;
    min-height: 320px;
}

.cell-sm {
    grid-column: span 5;
    background: transparent;
    border-style: dashed;
    border-color: var(--border-light);
    min-height: 320px;
}

.cell-placeholder {
    cursor: default;
}

.cell-placeholder:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-light);
}

/* Visuals */
.product-cell-visual {
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.cell-lg .product-cell-visual {
    border-bottom: none;
    border-right: 1px solid var(--border);
}

.gray-gradient {
    background: linear-gradient(135deg, #0d0d0d 0%, #000000 100%);
}

.dark-gradient {
    background: radial-gradient(circle at center, #111111 0%, #000000 100%);
}

.cell-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.4;
    filter: blur(40px);
}

.cell-label-overlay {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

/* Content */
.product-cell-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
}

.cell-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cell-status {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(196, 122, 58, 0.2);
    border-radius: 4px;
    width: fit-content;
    background: rgba(196, 122, 58, 0.05);
}

.cell-status-dim {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--text-tertiary);
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    width: fit-content;
    background: rgba(255, 255, 255, 0.02);
}

.cell-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-top: 0.5rem;
}

.cell-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 42ch;
}

.cell-actions {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-sm);
}

.btn-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s var(--ease);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-link:hover {
    color: var(--accent);
    transform: translateX(4px);
}

/* Custom visual for Plain */
.plain-preview-minimal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 60%;
}

.plain-line {
    height: 6px;
    border-radius: 99px;
    background: var(--border);
}

.plain-line:first-child { width: 100%; border-color: var(--accent); border-width: 1px; border-style: solid; }
.plain-line:last-child { width: 60%; background: var(--border-light); }

/* Mobile grid */
@media (max-width: 900px) {
    .products-asymmetric-grid {
        grid-template-columns: 1fr;
    }

    .product-cell {
        grid-column: span 1;
    }

    .cell-lg {
        grid-template-columns: 1fr;
    }

    .cell-lg .product-cell-visual {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 640px) {
    .products-hero-minimal {
        padding: calc(var(--space-2xl) + 64px) var(--space-md) var(--space-lg);
    }

    .cell-title {
        font-size: 1.75rem;
    }

    .product-cell-content {
        padding: var(--space-lg);
    }
}
