/*
 * NeonSign Pro — Catalog servicii (bento modern)
 * Se incarca DUPA despre-noi.css (reutilizeaza hero/garantii/CTA generice).
 * Clase proprii: .ns-cat / .ns-filter / .ns-grid / .ns-card / .ns-led
 */

.ns-cat {
    position: relative;
    z-index: 1;
    padding: 30px 0 110px;
}

.ns-cat__head {
    text-align: center;
    margin-bottom: 30px;
}

/* ---- FILTRE (pills) ---- */
.ns-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.ns-pill {
    font-family: var(--aam-font-main);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid rgba(168, 31, 51, 0.2);
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--aam-text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.ns-pill:hover {
    border-color: rgba(168, 31, 51, 0.5);
    color: var(--aam-text-primary);
    transform: translateY(-1px);
}

.ns-pill.is-active {
    background: linear-gradient(135deg, #A81F33, #7E1626);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(168, 31, 51, 0.28);
}

.ns-pill__n {
    font-family: var(--aam-font-mono);
    font-size: 0.72rem;
    padding: 1px 7px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.08);
    opacity: 0.85;
}

.ns-pill.is-active .ns-pill__n {
    background: rgba(255, 255, 255, 0.22);
}

/* ---- GRILA BENTO ---- */
.ns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
    grid-auto-flow: dense;
}

@media (max-width: 1024px) {
    .ns-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .ns-grid { grid-template-columns: 1fr; }
}

/* ---- CARD ---- */
.ns-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 28px 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 31, 51, 0.14);
    box-shadow: 0 4px 20px rgba(42, 32, 28, 0.06);
    opacity: 0;
    transform: translateY(24px);
    animation: nsCardIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: calc(var(--i, 0) * 65ms);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.45s ease, border-color 0.45s ease;
}

@keyframes nsCardIn {
    to { opacity: 1; transform: translateY(0); }
}

/* spotlight care urmareste cursorul */
.ns-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgba(168, 31, 51, 0.13), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.ns-card:hover::before { opacity: 1; }

/* bara de accent sus */
.ns-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #A81F33, #1B9E97);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 2;
}

.ns-card:hover::after { transform: scaleX(1); }

.ns-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 31, 51, 0.4);
    box-shadow: 0 24px 60px rgba(168, 31, 51, 0.2), 0 0 0 1px rgba(27, 158, 151, 0.18);
}

.ns-card > * { position: relative; z-index: 2; }

.ns-card__index {
    position: absolute;
    top: 16px;
    right: 22px;
    z-index: 1;
    font-family: var(--aam-font-mono);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(168, 31, 51, 0.1);
    transition: color 0.4s ease;
}

.ns-card:hover .ns-card__index { color: rgba(168, 31, 51, 0.22); }

.ns-card__badge {
    align-self: flex-start;
    margin-bottom: 16px;
    font-family: var(--aam-font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(168, 31, 51, 0.1);
    color: #A81F33;
}

.ns-card__badge--alt {
    background: rgba(27, 158, 151, 0.14);
    color: #147F79;
}

.ns-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(168, 31, 51, 0.1), rgba(27, 158, 151, 0.1));
    transition: transform 0.4s ease;
}

.ns-card:hover .ns-card__icon { transform: scale(1.08) rotate(-3deg); }

.ns-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--aam-text-primary);
    margin: 0 0 10px;
}

.ns-card__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--aam-text-secondary);
    margin: 0 0 20px;
    flex: 1;
}

.ns-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.ns-card__price {
    font-family: var(--aam-font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    padding: 7px 14px;
    border-radius: 100px;
    background: linear-gradient(135deg, #A81F33, #7E1626);
    white-space: nowrap;
}

.ns-card__arrow {
    font-size: 1.2rem;
    color: rgba(168, 31, 51, 0.5);
    transition: transform 0.3s ease, color 0.3s ease;
}

.ns-card:hover .ns-card__arrow { transform: translateX(4px); color: #A81F33; }

.ns-card__cta {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    color: #7FCFC9;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ns-card__cta span { transition: transform 0.3s ease; }
.ns-card__cta:hover span { transform: translateX(4px); }

/* ---- CARD FEATURED (dark, glow LED) ---- */
.ns-card--featured {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 480px;
    background: linear-gradient(165deg, #5E1019 0%, #2A0E12 60%, #150A0C 100%);
    border-color: rgba(168, 31, 51, 0.5);
    color: #fff;
}

@media (max-width: 600px) {
    .ns-card--featured { grid-column: span 1; grid-row: auto; min-height: auto; }
}

.ns-card--featured .ns-card__body { display: flex; flex-direction: column; flex: 1; }
.ns-card--featured .ns-card__title { color: #fff; font-size: 1.5rem; }
.ns-card--featured .ns-card__desc { color: rgba(252, 245, 234, 0.82); font-size: 0.96rem; }
.ns-card--featured .ns-card__index { color: rgba(255, 255, 255, 0.14); font-size: 3.4rem; }
.ns-card--featured .ns-card__badge { background: rgba(27, 158, 151, 0.22); color: #7FCFC9; }
.ns-card--featured .ns-card__icon { background: rgba(255, 255, 255, 0.08); }
.ns-card--featured::before {
    background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 170, 60, 0.12), transparent 60%);
}
.ns-card--featured:hover {
    box-shadow: 0 28px 70px rgba(94, 16, 25, 0.5), 0 0 0 1px rgba(255, 170, 60, 0.25);
}

/* ---- MINI-PANOU LED (in featured) ---- */
.ns-led {
    position: relative;
    margin: 4px 0 22px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0c0809;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.ns-led__screen {
    display: flex;
    width: max-content;
    padding: 16px 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.4px);
    background-size: 6px 6px;
}

.ns-led__text {
    font-family: var(--aam-font-mono);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 2px;
    white-space: nowrap;
    color: #ffc24a;
    text-shadow: 0 0 8px rgba(255, 170, 40, 0.9), 0 0 20px rgba(255, 130, 20, 0.55);
    animation: nsLedScroll 16s linear infinite;
}

@keyframes nsLedScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* ---- FILTRARE ---- */
.ns-card.is-hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    .ns-card { animation: none; opacity: 1; transform: none; }
    .ns-led__text { animation: none; }
}
