﻿/* ═══════════════════════════════════════════════════════════
   صفحه‌ی نت‌های یک دستگاه / فرم / آهنگساز / متر
   رنگ‌های برند: سرمه‌ای #184362 — نارنجی #f2971e
   ═══════════════════════════════════════════════════════════ */

/* ── سربرگ سرمه‌ای تمام‌عرض ── */
.nf-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 36px 16px 84px;
    background:
            radial-gradient(900px 380px at 88% -30%, rgba(242, 151, 30, .32), transparent 62%),
            linear-gradient(135deg, #1d4f73 0%, #184362 45%, #0d2638 100%);
}
/* پنج خط حامل نت، کم‌رنگ و کمی مورب */
.nf-hero::before {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    top: 58%;
    height: 74px;
    transform: translateY(-50%) rotate(-3deg);
    background: repeating-linear-gradient(to bottom,
    rgba(255, 255, 255, .09) 0 1px,
    transparent 1px 18px);
    pointer-events: none;
}
/* علامت نت بزرگ و محو */
.nf-hero::after {
    content: "♪";
    position: absolute;
    left: 5%;
    bottom: -40px;
    font-size: 240px;
    line-height: 1;
    color: rgba(255, 255, 255, .05);
    pointer-events: none;
}
.nf-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    text-align: right;
}

.nf-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 22px;
}
.nf-breadcrumb a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .15s; }
.nf-breadcrumb a:hover { color: #f2971e; }

.nf-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 3px 13px;
    border-radius: 999px;
    background: #f2971e;
    color: #184362;
    font-size: 12px;
    font-weight: 900;
}
.nf-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 900;
    letter-spacing: -.5px;
    color: #fff;
}
.nf-desc {
    max-width: 640px;
    margin: 0 0 20px;
    font-size: 14.5px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .72);
}
.nf-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.nf-count {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .09);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 13px;
}
.nf-count strong { font-size: 19px; font-weight: 900; color: #f2971e; }
.nf-all { font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; opacity: .85; transition: color .15s, opacity .15s; }
.nf-all:hover { opacity: 1; color: #f2971e; }

/* ── گرید: ردیف اول روی لبه‌ی سربرگ می‌نشیند ── */
.nf-wrap {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: -52px auto 0;
    padding: 0 16px 64px;
}
.nf-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
@media (max-width: 1024px) { .nf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px)  { .nf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ── کارت ── */
.nf-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, .06);
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(15, 23, 42, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.nf-card-img {
    --crop-top: 0.11;
    --crop-bottom: 0.19;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f9;
}
.nf-card-img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    transform-origin: center top;
}
/* برش سربرگ و نوار پخش اسکرین‌شات — همان روش آرشیو */
.nf-card-img img.ap-img-score {
    position: absolute;
    left: 0;
    width: 100%;
    max-width: none;
    height: calc(100% / (1 - var(--crop-top) - var(--crop-bottom)));
    top: calc(-100% * var(--crop-top) / (1 - var(--crop-top) - var(--crop-bottom)));
    object-position: center top;
    background: #fff;
}
.nf-card-img:has(.ap-img-score)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 24%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 70%, #fff 100%);
    pointer-events: none;
    z-index: 2;
}
.nf-card-img .ap-listen-btn { bottom: 8px; left: 8px; }

.nf-free {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    padding: 4px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-size: 11.5px;
    font-weight: 900;
    box-shadow: 0 3px 10px rgba(5, 150, 105, .35);
    pointer-events: none;
}

.nf-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 16px;
}
.nf-card-name {
    margin: 0;
    min-height: 3.2em;              /* دو خط، تا ردیف‌ها هم‌تراز بمانند */
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;
    color: #184362;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* برچسب‌های زنده: هر کدام به صفحه‌ی خودش می‌رود */
.nf-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.nf-tag {
    padding: 3px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.nf-tag:hover { background: rgba(242, 151, 30, .16); color: #b45309; }
.nf-tag.is-active { background: #184362; color: #fff; cursor: default; }

.nf-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}
.nf-price      { font-size: 15px; font-weight: 900; color: #184362; }
.nf-price small { font-size: 11px; font-weight: 600; color: #94a3b8; }
.nf-price-old  { margin-left: 6px; font-size: 12px; color: #94a3b8; text-decoration: line-through; }
.nf-price-disc { color: #ef4444; }
.nf-price-free { color: #059669; }
.nf-card-cta {
    display: inline-flex;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 800;
    color: #184362;
    white-space: nowrap;
    transition: color .2s, gap .2s;
}

@media (hover: hover) {
    .nf-card:hover {
        transform: translateY(-6px);
        border-color: rgba(242, 151, 30, .45);
        box-shadow: 0 18px 40px rgba(24, 67, 98, .18);
    }
    .nf-card:hover .nf-card-img > img { transform: scale(1.05); }
    .nf-card:hover .nf-card-cta { color: #f2971e; gap: 8px; }
}

/* ── خالی ── */
.nf-empty {
    padding: 64px 16px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    color: #64748b;
    box-shadow: 0 6px 24px rgba(15, 23, 42, .08);
}
.nf-empty a { color: #f2971e; font-weight: 800; text-decoration: none; }

/* ── موبایل ── */
@media (max-width: 768px) {
    .nf-hero { padding: 26px 14px 72px; }
    .nf-hero::after { font-size: 160px; }
    .nf-wrap { padding: 0 12px 48px; margin-top: -44px; }
    .nf-card-body { padding: 11px 12px 13px; gap: 8px; }
    .nf-card-name { font-size: 13.5px; }
    .nf-price { font-size: 13.5px; }
    .nf-card-cta { display: none; }        /* جای کم؛ کل کارت قابل کلیک است */
}

@media (prefers-reduced-motion: reduce) {
    .nf-card, .nf-card-img > img, .nf-card-cta { transition: none !important; }
    .nf-card:hover { transform: none !important; }
    .nf-card:hover .nf-card-img > img { transform: none !important; }
}

.nf-card-body {
    padding: 12px 16px;
}
.nf-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #184362;
    margin-bottom: 6px;
}
.nf-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}
.nf-card-tag {
    font-size: 11px;
    background: #f0f4f8;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 20px;
}
.nf-card-price {
    font-size: 14px;
    font-weight: 700;
    color: #184362;
}
.nf-card-price.discounted {
    color: #059669;
}
.nf-breadcrumb {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
    text-align: right;
}
.nf-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
}
.nf-breadcrumb a:hover {
    color: #184362;
}




/* 🎻 نشان «با تغییر گام» روی کارت، در صفحه‌های هاب ساز (بالا-چپ؛ راست مال «رایگان» است) */
.nf-fit-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(242, 151, 30, .95);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(242, 151, 30, .35);
    pointer-events: none;
}





/* 📝 متن معرفی تأییدشده‌ی صفحه‌های آهنگساز/دستگاه/فرم */
.nf-intro p { margin: 0 0 10px; }
.nf-intro p:last-child { margin-bottom: 0; }
.nf-intro strong { color: #fff; font-weight: 800; }