/**
 * 100tik Homepage — Light, Mobile-First.
 * Version: 4.2.0
 * نکته: استایل داخلی کارت‌های آگهی عمداً در این فایل تعریف نشده است.
 */

:root {
    --tik-home-blue: #086bdc;
    --tik-home-blue-strong: #0759bc;
    --tik-home-orange: #ff6b00;
    --tik-home-ink: #10233f;
    --tik-home-copy: #516984;
    --tik-home-muted: #71859c;
    --tik-home-line: #e0e8f1;
    --tik-home-surface: #ffffff;
    --tik-home-canvas: #f6f9fc;
    --tik-home-radius: 20px;
}

.tik-homepage-full {
    direction: rtl;
    color: var(--tik-home-ink);
    background: var(--tik-home-canvas);
    padding: 0 0 32px;
    font-family: 'Estedad', 'IRANSans', Tahoma, sans-serif;
}

.tik-homepage-full img {
    max-width: 100%;
}

.tik-home-category-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 8px 14px;
    direction: rtl;
    background: transparent;
}

.tik-home-category-grid {
    display: grid;
    direction: rtl;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.tik-home-category-tile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #e6ebf2;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(30, 65, 103, 0.07);
    text-decoration: none;
    transform: translateZ(0);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tik-home-category-tile img {
    display: block;
    width: calc(100% - 2px);
    height: 67%;
    margin: 1px 1px 0;
    flex: 0 0 67%;
    object-fit: contain;
    object-position: center bottom;
}

.tik-home-category-copy {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1px 3px 5px;
    line-height: 1.25;
    text-align: center;
}

.tik-home-category-copy strong,
.tik-home-category-copy small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tik-home-category-copy strong {
    color: #111d31;
    font-size: clamp(0.7rem, 3.1vw, 0.9rem);
    font-weight: 900;
}

.tik-home-category-copy small {
    margin-top: 3px;
    color: #53647a;
    font-family: Arial, sans-serif;
    font-size: clamp(0.58rem, 2.7vw, 0.74rem);
    font-weight: 500;
}

.tik-home-category-tile:hover,
.tik-home-category-tile:focus-visible {
    border-color: #bad6f6;
    box-shadow: 0 8px 22px rgba(30, 76, 126, 0.13);
    transform: translateY(-2px);
}

.tik-home-category-tile:active {
    transform: scale(0.98);
}

.tik-home-all-ads-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 56px;
    margin-top: 14px;
    padding: 10px 18px;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(135deg, var(--tik-home-blue), #1788f6);
    box-shadow: 0 8px 22px rgba(8, 107, 220, 0.22);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.tik-home-all-ads-button i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.17);
    font-size: 0.82rem;
}

.tik-home-all-ads-button:hover,
.tik-home-all-ads-button:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 11px 28px rgba(8, 107, 220, 0.28);
}

.tik-home-section {
    width: calc(100% - 16px);
    max-width: 1280px;
    margin: 14px auto 0;
    padding: 16px;
    border: 1px solid var(--tik-home-line);
    border-radius: var(--tik-home-radius);
    background: var(--tik-home-surface);
    box-shadow: 0 8px 28px rgba(28, 60, 96, 0.055);
}

.tik-home-section:not(.tik-home-banners):not(.tik-home-featured) {
    content-visibility: auto;
    contain-intrinsic-size: 520px;
}

.tik-home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}

.tik-home-section-heading h2 {
    margin: 3px 0 0;
    color: var(--tik-home-ink);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.65;
}

.tik-home-kicker {
    display: block;
    color: var(--tik-home-blue);
    font-size: 0.68rem;
    font-weight: 700;
}

.tik-home-section-heading > a {
    flex: 0 0 auto;
    color: var(--tik-home-blue);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
}

.tik-home-heading-centered {
    justify-content: center;
    text-align: center;
}

/* بنرهای متحرک */
.tik-home-banner-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #d7e4f2;
    border-radius: 10px;
    color: #42617f;
    background: #f7faff;
    font: inherit;
    font-size: 0.68rem;
    cursor: pointer;
}

.tik-home-banner-viewport {
    overflow: hidden;
    border-radius: 15px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.tik-home-banner-track {
    display: flex;
    direction: ltr;
    width: max-content;
    gap: 10px;
    will-change: transform;
    animation: tik-home-banner-flow var(--tik-banner-duration, 42s) linear infinite;
}

.tik-home-banner-set {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.tik-home-banners[data-paused="true"] .tik-home-banner-track,
.tik-home-banner-viewport:hover .tik-home-banner-track,
.tik-home-banner-viewport:focus-within .tik-home-banner-track {
    animation-play-state: paused;
}

.tik-home-banner-card {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: min(72vw, 290px);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 15px;
    background: #edf3f9;
    text-decoration: none;
}

.tik-home-banner-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.tik-home-banner-card::after {
    content: '';
    position: absolute;
    inset: 42% 0 0;
    background: linear-gradient(0deg, rgba(5, 18, 36, 0.78), transparent);
}

.tik-home-banner-card > span {
    position: absolute;
    z-index: 1;
    right: 12px;
    bottom: 10px;
    left: 12px;
    overflow: hidden;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tik-home-banner-card:hover img {
    transform: scale(1.035);
}

@keyframes tik-home-banner-flow {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(-50% - 5px), 0, 0); }
}

/* فقط چیدمان کارت‌ها؛ ظاهر خود کارت‌ها در ماژول کارت باقی می‌ماند. */
.tik-homepage-listing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.tik-homepage-listing-item {
    min-width: 0;
}

/* فضای مفید بیشتر برای کارت‌های اصلی، بدون تغییر استایل خود کارت. */
.tik-home-section.tik-home-featured {
    padding: 5px;
}

.tik-home-featured .tik-home-section-heading {
    margin: 7px 5px 12px;
}

.tik-home-empty {
    margin: 0;
    padding: 28px 12px;
    color: var(--tik-home-muted);
    text-align: center;
    font-size: 0.82rem;
}

/* ویترین رندوم */
.tik-home-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 9px;
}

.tik-home-showcase-item {
    position: relative;
    display: block;
    min-height: 128px;
    overflow: hidden;
    border-radius: 16px;
    background: #e9f1f9;
    text-decoration: none;
    transition: opacity 220ms ease, transform 220ms ease;
}

.tik-home-showcase-item.is-changing {
    opacity: 0.18;
    transform: scale(0.97);
}

.tik-home-showcase-item-1 {
    grid-column: 1 / -1;
    min-height: 200px;
}

.tik-home-showcase-item img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 260ms ease;
}

.tik-home-showcase-shade {
    position: absolute;
    inset: 32% 0 0;
    background: linear-gradient(0deg, rgba(7, 24, 45, 0.86), transparent);
}

.tik-home-showcase-copy {
    position: absolute;
    z-index: 1;
    right: 11px;
    bottom: 10px;
    left: 11px;
    color: #fff;
}

.tik-home-showcase-copy small {
    display: block;
    margin-bottom: 3px;
    color: #dbeafe;
    font-size: 0.6rem;
}

.tik-home-showcase-copy strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tik-home-showcase-item:hover img {
    transform: scale(1.04);
}

/* امکانات */
.tik-home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.tik-home-feature {
    margin: 0;
    padding: 14px 10px;
    border: 1px solid #e4ebf3;
    border-radius: 15px;
    background: #fbfdff;
    text-align: center;
}

.tik-home-feature > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0 auto 9px;
    border-radius: 12px;
    color: var(--tik-home-blue);
    background: #eaf4ff;
    font-size: 0.95rem;
}

.tik-home-feature:nth-child(2) > span { color: #7c3aed; background: #f2ecff; }
.tik-home-feature:nth-child(3) > span { color: #e85d04; background: #fff2e7; }
.tik-home-feature:nth-child(4) > span { color: #0a9b68; background: #e8fbf4; }

.tik-home-feature h3 {
    margin: 0 0 5px;
    color: var(--tik-home-ink);
    font-size: 0.75rem;
    font-weight: 800;
}

.tik-home-feature p {
    margin: 0;
    color: var(--tik-home-copy);
    font-size: 0.66rem;
    line-height: 1.8;
}

/* FAQ */
.tik-home-faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.tik-home-faq-item {
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid #e1e8f1;
    border-radius: 14px;
    background: #fff;
}

.tik-home-faq-question::-webkit-details-marker {
    display: none;
}

.tik-home-faq-question::marker {
    content: '';
}

.tik-home-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 0;
    color: var(--tik-home-ink);
    background: transparent;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    text-align: right;
    cursor: pointer;
}

.tik-home-faq-question i {
    color: var(--tik-home-blue);
    transition: transform 180ms ease;
}

.tik-home-faq-item[open] .tik-home-faq-question i {
    transform: rotate(180deg);
}

.tik-home-faq-answer {
    padding: 0 13px 13px;
}

.tik-home-faq-answer[hidden] {
    display: none !important;
}

.tik-home-faq-answer p {
    margin: 0;
    color: var(--tik-home-copy);
    font-size: 0.72rem;
    line-height: 1.9;
}

/* CTA و مجوزها */
.tik-home-cta {
    display: grid;
    gap: 14px;
    background: linear-gradient(145deg, #eef7ff, #fffaf0);
}

.tik-home-cta-copy {
    text-align: center;
}

.tik-home-cta-copy h2 {
    margin: 5px 0 8px;
    color: var(--tik-home-ink);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.7;
}

.tik-home-cta-copy p {
    margin: 0 auto 14px;
    max-width: 620px;
    color: var(--tik-home-copy);
    font-size: 0.76rem;
    line-height: 1.9;
}

.tik-home-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 13px;
    color: #fff;
    background: var(--tik-home-orange);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.22);
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 800;
}

.tik-home-cta-button:hover,
.tik-home-cta-button:focus-visible {
    color: #fff;
}

.tik-home-trust-panel {
    display: grid;
    grid-template-columns: repeat(2, 84px);
    justify-content: center;
    gap: 10px;
}

.tik-home-trust-panel > a {
    display: grid;
    place-items: center;
    min-height: 84px;
    padding: 8px;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: #fff;
}

.tik-home-trust-panel img {
    display: block;
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.tik-home-trust-panel p {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    color: var(--tik-home-copy);
    font-size: 0.68rem;
    line-height: 1.9;
    text-align: center;
}

.tik-home-trust-panel p a {
    color: var(--tik-home-blue);
}

/* محتوای قابل فهم برای کاربر و موتور جست‌وجو */
.tik-home-seo-intro {
    max-width: 860px;
    margin: 0 auto 16px;
    text-align: center;
}

.tik-home-seo-intro h2 {
    margin: 5px 0 9px;
    color: var(--tik-home-ink);
    font-size: 1.08rem;
    font-weight: 900;
}

.tik-home-seo p {
    margin: 0;
    color: var(--tik-home-copy);
    font-size: 0.75rem;
    line-height: 2;
}

.tik-home-seo-grid {
    display: grid;
    gap: 10px;
}

.tik-home-seo-grid article {
    padding: 14px;
    border: 1px solid #e2eaf2;
    border-radius: 15px;
    background: #fbfdff;
}

.tik-home-seo-grid h3 {
    margin: 0 0 7px;
    color: #173d68;
    font-size: 0.82rem;
    font-weight: 800;
}

.tik-home-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid #e4ebf3;
    color: var(--tik-home-muted);
    font-size: 0.7rem;
}

.tik-home-credit a {
    color: var(--tik-home-blue);
    font-weight: 800;
    text-decoration: none;
}

@media (min-width: 560px) {
    .tik-home-category-nav {
        padding: 14px 16px 18px;
    }

    .tik-home-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .tik-home-section {
        width: calc(100% - 28px);
        padding: 20px;
    }

    .tik-homepage-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .tik-home-showcase-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tik-home-showcase-item-1 {
        grid-column: span 2;
        grid-row: span 2;
    }

    .tik-home-feature-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tik-home-seo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .tik-home-category-nav {
        padding: 18px 22px 22px;
    }

    .tik-home-category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 13px;
    }

    .tik-home-category-tile {
        border-radius: 22px;
    }

    .tik-home-category-copy strong {
        font-size: 1rem;
    }

    .tik-home-category-copy small {
        font-size: 0.8rem;
    }

    .tik-home-all-ads-button {
        width: 260px;
        margin: 16px auto 0;
    }

    .tik-home-section {
        margin-top: 20px;
        padding: 24px;
        border-radius: 24px;
    }

    .tik-home-section-heading h2 {
        font-size: 1.3rem;
    }

    .tik-homepage-listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .tik-home-showcase-grid {
        grid-template-columns: 1.35fr repeat(3, 1fr);
        grid-template-rows: repeat(2, 180px);
    }

    .tik-home-showcase-item {
        min-height: 0;
    }

    .tik-home-showcase-item-1 {
        grid-column: auto;
        grid-row: 1 / 3;
    }

    .tik-home-showcase-item-6,
    .tik-home-showcase-item-7 {
        grid-column: span 1;
    }

    .tik-home-cta {
        grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
        align-items: center;
    }

    .tik-home-cta-copy {
        text-align: right;
    }

    .tik-home-trust-panel {
        grid-template-columns: repeat(2, 100px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tik-home-banner-track {
        animation: none;
    }

    .tik-home-category-tile,
    .tik-home-banner-card img,
    .tik-home-showcase-item img,
    .tik-home-showcase-item,
    .tik-home-faq-question i {
        transition: none;
    }
}

/* ویترین زنده نسخه ۵؛ بنر نسخه ۷ استایل مستقل دارد. */

.tik-live-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 9px;
}

.tik-live-showcase-item {
    position: relative;
    display: block;
    min-height: 128px;
    overflow: hidden;
    border-radius: 16px;
    background: #e9f1f9;
    text-decoration: none;
    transition: opacity 240ms ease, transform 240ms ease, filter 240ms ease;
}

.tik-live-showcase-item-1 {
    grid-column: 1 / -1;
    min-height: 200px;
}

.tik-live-showcase-item.is-switching {
    opacity: 0.12;
    filter: blur(3px);
    transform: scale(0.965);
}

.tik-live-showcase-item img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 260ms ease;
}

.tik-live-showcase-shade {
    position: absolute;
    inset: 32% 0 0;
    background: linear-gradient(0deg, rgba(7, 24, 45, 0.86), transparent);
}

.tik-live-showcase-copy {
    position: absolute;
    z-index: 1;
    right: 11px;
    bottom: 10px;
    left: 11px;
    color: #fff;
}

.tik-live-showcase-copy small {
    display: block;
    margin-bottom: 3px;
    color: #dbeafe;
    font-size: 0.6rem;
}

.tik-live-showcase-copy strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tik-live-showcase-item:hover img {
    transform: scale(1.04);
}

@media (min-width: 560px) {
    .tik-live-showcase-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tik-live-showcase-item-1 {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (min-width: 960px) {
    .tik-live-marquee-viewport {
        min-height: 181px;
    }

    .tik-live-showcase-grid {
        grid-template-columns: 1.35fr repeat(3, 1fr);
        grid-template-rows: repeat(2, 180px);
    }

    .tik-live-showcase-item {
        min-height: 0;
    }

    .tik-live-showcase-item-1 {
        grid-column: auto;
        grid-row: 1 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tik-live-banner-card img,
    .tik-live-showcase-item,
    .tik-live-showcase-item img {
        transition: none;
    }
}
