/* ============================================
   iCharts - Homepage Category Spotlight
   One full-width section per product category
   (MQL Indicators, MQL Scanners ... )
   Shares tokens with home.css:
   --primary #1a73e8 | --accent #00d4aa | --text-dark #1e293b
   ============================================ */

/* ---- Section shell ---- */
.cat-spotlight {
    position: relative;
    padding: 96px 24px;
    overflow: hidden;
    background:
        radial-gradient(1000px 420px at 8% 0%, rgba(26, 115, 232, 0.12), transparent 62%),
        radial-gradient(760px 380px at 100% 100%, rgba(0, 212, 170, 0.12), transparent 65%),
        linear-gradient(180deg, #eef4fb 0%, #ffffff 48%, #f7fbff 100%);
}

.cat-spotlight--dark {
    color: #e6edf7;
    background:
        radial-gradient(900px 460px at 12% -10%, rgba(26, 115, 232, 0.38), transparent 60%),
        radial-gradient(760px 420px at 100% 110%, rgba(0, 212, 170, 0.22), transparent 62%),
        linear-gradient(140deg, #0f172a 0%, #17233c 55%, #0f172a 100%);
}

.cat-spotlight-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cat-spotlight--flip .cat-spotlight-copy {
    order: 2;
}

.cat-spotlight--flip .cat-spotlight-visual {
    order: 1;
}

/* ---- Copy column ---- */
.cat-spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px 8px 16px;
    border-radius: 999px;
    background: rgba(26, 115, 232, 0.08);
    border: 1px solid rgba(26, 115, 232, 0.16);
    color: #1a73e8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.cat-spotlight-badge i {
    font-size: 12px;
}

.cat-spotlight-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: #1a73e8;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.cat-spotlight--dark .cat-spotlight-badge {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #9ec6ff;
}

.cat-spotlight--dark .cat-spotlight-badge-count {
    background: #00d4aa;
    color: #062033;
}

.cat-spotlight-title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.6px;
    color: #0f172a;
    margin-bottom: 16px;
}

.cat-spotlight--dark .cat-spotlight-title {
    color: #ffffff;
}

.cat-spotlight-title-accent {
    background: linear-gradient(135deg, #1a73e8, #00b894);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.cat-spotlight--dark .cat-spotlight-title-accent {
    background: linear-gradient(135deg, #6db2ff, #00d4aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cat-spotlight-desc {
    font-size: 1.04rem;
    line-height: 1.7;
    color: #516073;
    max-width: 56ch;
}

.cat-spotlight--dark .cat-spotlight-desc {
    color: #b7c4d8;
}

/* ---- Feature list ---- */
.cat-spotlight-features {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 24px 0 30px;
}

.cat-spotlight-features li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 15px;
    line-height: 1.55;
    color: #3d4a5e;
}

.cat-spotlight-features li i {
    color: #00b894;
    font-size: 14px;
    margin-top: 4px;
    flex: none;
}

.cat-spotlight--dark .cat-spotlight-features li {
    color: #cbd6e6;
}

.cat-spotlight--dark .cat-spotlight-features li i {
    color: #00d4aa;
}

/* ---- Actions ---- */
.cat-spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cat-spotlight-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-spotlight-btn i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.cat-spotlight-btn:hover i {
    transform: translateX(4px);
}

.cat-spotlight-btn--primary {
    background: linear-gradient(135deg, #1a73e8, #0ea5e9);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(26, 115, 232, 0.28);
}

.cat-spotlight-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(26, 115, 232, 0.36);
    color: #ffffff;
}

.cat-spotlight-btn--ghost {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.16);
    color: #0f172a;
}

.cat-spotlight-btn--ghost:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.3);
    color: #0f172a;
}

.cat-spotlight--dark .cat-spotlight-btn--ghost {
    border-color: rgba(255, 255, 255, 0.24);
    color: #e6edf7;
}

.cat-spotlight--dark .cat-spotlight-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

/* ---- Visual column ---- */
.cat-spotlight-visual {
    position: relative;
}

.cat-spotlight-panel {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.cat-spotlight--dark .cat-spotlight-panel {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.cat-spotlight-watermark {
    position: absolute;
    top: -26px;
    right: 4px;
    font-size: 132px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -6px;
    color: rgba(26, 115, 232, 0.07);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.cat-spotlight--dark .cat-spotlight-watermark {
    color: rgba(255, 255, 255, 0.07);
}

.cat-spotlight-panel-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.cat-spotlight-panel-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #64748b;
}

.cat-spotlight--dark .cat-spotlight-panel-label {
    color: #93a3bd;
}

.cat-spotlight-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #1a73e8;
    white-space: nowrap;
}

.cat-spotlight-panel-link i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.cat-spotlight-panel-link:hover {
    color: #1557b0;
}

.cat-spotlight-panel-link:hover i {
    transform: translateX(4px);
}

.cat-spotlight--dark .cat-spotlight-panel-link {
    color: #6ee7c8;
}

.cat-spotlight--dark .cat-spotlight-panel-link:hover {
    color: #ffffff;
}

/* ---- Product rows ---- */
.cat-spotlight-products {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.cat-spotlight-product {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 16px;
    background: #fbfdff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease,
        border-color 0.3s ease, background-color 0.3s ease;
}

.cat-spotlight-product:hover {
    transform: translateX(5px);
    border-color: rgba(26, 115, 232, 0.35);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
    color: inherit;
}

.cat-spotlight--dark .cat-spotlight-product {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.cat-spotlight--dark .cat-spotlight-product:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 170, 0.45);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.cat-spotlight-thumb {
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 12px;
    overflow: hidden;
    background: #eef4fb;
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cat-spotlight--dark .cat-spotlight-thumb {
    background: rgba(255, 255, 255, 0.1);
    color: #9ec6ff;
}

.cat-spotlight-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cat-spotlight-product-body {
    min-width: 0;
}

.cat-spotlight-product-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-spotlight--dark .cat-spotlight-product-title {
    color: #ffffff;
}

.cat-spotlight-product-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

.cat-spotlight--dark .cat-spotlight-product-desc {
    color: #a9b7cc;
}

.cat-spotlight-product-arrow {
    color: #94a3b8;
    font-size: 13px;
    padding-right: 4px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.cat-spotlight-product:hover .cat-spotlight-product-arrow {
    transform: translateX(4px);
    color: #1a73e8;
}

.cat-spotlight--dark .cat-spotlight-product-arrow {
    color: #7d8ca6;
}

.cat-spotlight--dark .cat-spotlight-product:hover .cat-spotlight-product-arrow {
    color: #00d4aa;
}

/* ---- Panel footer ---- */
.cat-spotlight-panel-foot {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 14px;
    padding: 13px 16px;
    border-radius: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1a73e8;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.08), rgba(0, 212, 170, 0.12));
    border: 1px solid rgba(26, 115, 232, 0.12);
    transition: all 0.3s ease;
}

.cat-spotlight-panel-foot:hover {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.14), rgba(0, 212, 170, 0.18));
    color: #1557b0;
}

.cat-spotlight--dark .cat-spotlight-panel-foot {
    color: #7ee8cd;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}

.cat-spotlight--dark .cat-spotlight-panel-foot:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
}

/* ---- Scroll reveal (armed by JS only) ---- */
.cat-spotlight.is-armed {
    opacity: 0;
    transform: translateY(26px);
}

.cat-spotlight.is-armed.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .cat-spotlight {
        padding: 76px 24px;
    }

    .cat-spotlight-inner {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .cat-spotlight--flip .cat-spotlight-copy {
        order: 1;
    }

    .cat-spotlight--flip .cat-spotlight-visual {
        order: 2;
    }

    .cat-spotlight-desc {
        max-width: 720px;
    }
}

@media (max-width: 640px) {
    .cat-spotlight {
        padding: 60px 18px;
    }

    .cat-spotlight-inner {
        gap: 32px;
    }

    .cat-spotlight-panel {
        padding: 16px;
        border-radius: 20px;
    }

    .cat-spotlight-watermark {
        font-size: 88px;
        top: -16px;
        letter-spacing: -4px;
    }

    .cat-spotlight-product {
        grid-template-columns: 52px 1fr;
        gap: 12px;
        padding: 9px;
    }

    .cat-spotlight-thumb {
        width: 52px;
        height: 52px;
        font-size: 16px;
    }

    .cat-spotlight-product-arrow {
        display: none;
    }

    .cat-spotlight-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cat-spotlight-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cat-spotlight.is-armed {
        opacity: 1;
        transform: none;
    }

    .cat-spotlight-product:hover,
    .cat-spotlight-btn--primary:hover {
        transform: none;
    }
}
