@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #f8fbff;
    --card: #ffffff;
    --text: #0d1324;
    --muted: #667085;
    --border: #e6edf6;
    --cyan: #7457ff;
    --blue: #2678ff;
    --purple: #7457ff;
    --shadow: 0 20px 60px rgba(159, 159, 159, 0.17);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Assistant", sans-serif;
    background-size: cover !important;
    background:
            radial-gradient(circle at 20% 10%, rgba(186, 186, 186, 0.15), rgba(184, 184, 184, 0.12) 30%), radial-gradient(circle at 80% 20%, rgba(174, 174, 174, 0.07), transparent 30%), url(../images/lbg.jpg);    letter-spacing: -0.02em;
    line-height: 1.45;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(197, 214, 236, 0.75);
    box-shadow: var(--shadow);

}

.header-inner {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #050816;
}

.logo span {
    color: var(--cyan);
}

.main-nav {
    display: flex;
    gap: 38px;
    font-size: 16px;
    font-weight: 700;
}

.main-nav a {
    color: #111827;
    transition: transform 0.2s;
}

.main-nav a:hover {
    transform: scale(1.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 100%;
    max-width: 150px;
}

.search-btn,
.login-btn,
.build-btn {
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 0 18px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: white;
}

.search-btn {
    width: 44px;
    padding: 0;
    font-size: 26px;
}

.build-btn {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 370px;
    gap: 22px;
    margin-top: 26px;
}

.hero-card {
    min-height: 500px;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(211, 220, 228, 0.76);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-premium {
    background: white;
}

.hero-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            repeating-linear-gradient(
                    135deg,
                    rgba(22, 199, 223, 0.08) 0px,
                    rgba(22, 199, 223, 0.08) 1px,
                    transparent 1px,
                    transparent 18px
            );
    opacity: 0.45;
    mask-image: linear-gradient(90deg, transparent, #000 35%, #000 80%, transparent);
    pointer-events: none;
}

.hero-premium::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: calc(var(--radius) - 6px);
    border: 1px solid rgba(255,255,255,0.7);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 62px 38px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
    color: #5f6f86;
    font-size: 14px;
    font-weight: 700;
}

.hero-meta span:not(:last-child)::after {
    content: "·";
    margin-inline-start: 8px;
    color: #14b9d5;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 13px;
    border: 1px solid rgba(22, 199, 223, 0.28);
    background: rgba(255,255,255,0.72);
    color: #087f99;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(32, 86, 145, 0.06);
}

.hero-image {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.hero-image-glow {
    position: absolute;
    width: 58%;
    height: 58%;
    border-radius: 999px;
    background: rgba(22, 199, 223, 0.22);
    filter: blur(44px);
}

.hero-image img {
    position: relative;
    z-index: 2;
    border-radius: 20px;
}

.tag,
.side-post span,
.deal-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 9px;
    background: rgba(169, 180, 214, 0.48);
    border: 1px solid rgba(9, 49, 184, 0.13);
    color: #4a62c5;
    font-size: 13px;
    font-weight: 800;
}

.hero-content h1 {
    margin: 18px 0 16px;
    font-size: clamp(32px, 3.5vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.hero-content p {
    max-width: 420px;
    color: var(--muted);
    font-size: 18px;
    font-weight: 500;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    padding: 14px 26px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #fff;
    font-weight: 800;
}

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.hero-image img {
    border-radius: 20px;
    height: 100%;
    object-fit: cover;
}

.featured-box {
    padding: 22px;
    border: 1px solid rgba(211, 220, 228, 0.76);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-title-row h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.section-title-row a {
    color: var(--blue);
    font-weight: 800;
    font-size: 15px;
}

.side-post {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: transform 0.2s;
}

.side-post:hover {
    transform: scale(1.05);
}

.side-post:last-child {
    border-bottom: 0;
}

.side-post img {
    height: 92px;
    width: 130px;
    object-fit: cover;
    border-radius: 14px;
}

.side-post h3 {
    margin: 8px 0 4px;
    font-size: 17px;
    line-height: 1.25;
}

.side-post small {
    color: var(--muted);
    font-weight: 600;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 22px 0 34px;
}

.quick-card {
    padding: 26px;
    transition: 0.25s ease;
}

.quick-card:hover {
    transform: translateY(-4px);
    border-color: rgba(22, 199, 223, 0.5);
}

.quick-card span {
    font-size: 32px;
    color: var(--cyan);
}

.quick-card h3 {
    margin: 14px 0 6px;
    font-size: 22px;
}

.quick-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

.hot-products-section {
    margin-top: 28px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-card {
    position: relative;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(211, 220, 228, 0.76);
    border-radius: var(--radius);
    background: white;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.product-card img {
    height: 190px;
    width: 100%;
    object-fit: contain;
    border-radius: 18px;
    margin: 14px 0 18px;
    background: rgba(214, 216, 220, 0.11);
}

.product-card h3 {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.2;
}

.product-card p {
    margin: 0 0 18px;
    color: var(--muted);
    font-weight: 500;
}

.deal-label {
    color: #07977f;
    background: rgba(18, 214, 184, 0.13);
}

.deal-label.blue {
    color: #1b6cff;
    background: rgba(38, 120, 255, 0.11);
}

.deal-label.purple {
    color: #6d48ff;
    background: rgba(116, 87, 255, 0.11);
}

.price-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 16px;
}

.price-row strong {
    font-size: 25px;
    letter-spacing: -0.04em;
}

.price-row small {
    color: var(--muted);
    font-weight: 700;
}

.product-card > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    font-weight: 800;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 24px;
}

.content-box {
    padding: 22px;
    border: 1px solid rgba(211, 220, 228, 0.76);
    border-radius: var(--radius);
    background: white;
}

.mini-post {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 18px;
    font-weight: 700;
}

.mini-post:last-child {
    border-bottom: 0;
}

.newsletter {
    margin: 26px 0;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 24px;
    align-items: center;
    background:
            radial-gradient(circle at 10% 50%, rgba(22, 199, 223, 0.14), transparent 25%),
            rgba(255, 255, 255, 0.9);
}

.newsletter span {
    font-size: 38px;
    color: var(--cyan);
}

.newsletter h2 {
    margin: 8px 0 4px;
    font-size: 28px;
}

.newsletter p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.newsletter form {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 12px;
}

.newsletter input,
.newsletter button {
    height: 50px;
    border-radius: 13px;
    font-family: inherit;
    font-size: 16px;
}

.newsletter input {
    border: 1px solid var(--border);
    padding: 0 18px;
}

.newsletter button {
    border: 0;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.site-footer {
    padding: 34px 0 46px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
}

@media (max-width: 980px) {
    .main-nav {
        display: none;
    }

    .hero-layout,
    .hero-card,
    .newsletter {
        grid-template-columns: 1fr;
    }

    .featured-box {
        order: 2;
    }

    .quick-links,
    .products-grid,
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1220px);
    }

    .header-actions .login-btn {
        display: none;
    }

    .hero-content {
        padding: 38px 24px 12px;
    }

    .hero-image {
        padding: 10px 24px 30px;
    }

    .quick-links,
    .products-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .newsletter form {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
    }
}

/* רקע PCB חי ועדין */
body::before {
    animation: pcbFloat 34s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes pcbFloat {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(-18px, 10px, 0) scale(1.025);
    }
}

/* אור זורם ממש חלש */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(
            120deg,
            transparent 35%,
            rgba(0, 195, 220, 0.055) 48%,
            rgba(65, 120, 255, 0.045) 52%,
            transparent 65%
    );
    animation: lynqLightSweep 13s linear infinite;
}

@keyframes lynqLightSweep {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* כרטיסים */
.hero-card,
.featured-box,
.quick-card,
.product-card,
.content-box,
.newsletter,
.side-post {
    transition:
            transform .24s ease,
            box-shadow .24s ease,
            border-color .24s ease,
            background .24s ease;
}

.hero-card:hover,
.featured-box:hover,
.quick-card:hover,
.product-card:hover,
.content-box:hover,
.newsletter:hover {
    transform: translateY(-4px);
    border-color: rgba(22, 199, 223, 0.32);
    box-shadow: 0 24px 70px rgba(32, 86, 145, 0.13);
}

/* תמונות מקבלות חיים */
.hero-image img,
.product-card img,
.side-post img {
    transition:
            transform .35s ease,
            filter .35s ease;
}

.hero-card:hover .hero-image img {
    transform: scale(1.025) rotate(-1deg);
}

.product-card:hover img,
.side-post:hover img {
    transform: scale(1.04);
}

/* כפתורים */
.primary-btn,
.build-btn,
.newsletter button {
    transition:
            transform .2s ease,
            box-shadow .2s ease,
            filter .2s ease;
}

.primary-btn:hover,
.build-btn:hover,
.newsletter button:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 18px 38px rgba(22, 199, 223, 0.34);
}

/* כניסה רכה כשנטען */
.hero-layout,
.quick-links,
.hot-products-section,
.content-grid,
.newsletter {
    animation: softEnter .55s ease both;
}

@keyframes softEnter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-carousel {
    display: block;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    opacity: 0;
    transform: translateX(-24px) scale(0.985);
    pointer-events: none;
    transition:
            opacity .75s ease,
            transform .75s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-slide.is-active .hero-content {
    animation: heroTextIn .65s ease both;
}

.hero-slide.is-active .hero-image img {
    animation: heroImageIn .85s ease both;
}

@keyframes heroTextIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageIn {
    from {
        opacity: 0;
        transform: scale(0.96) rotate(-1deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.hero-dots {
    position: absolute;
    z-index: 5;
    bottom: 24px;
    right: 38px;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 26px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(117, 132, 170, 0.25);
    cursor: pointer;
    transition: .25s ease;
}

.hero-dots button.is-active {
    width: 42px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

@media (max-width: 980px) {
    .hero-slide {
        grid-template-columns: 1fr;
        position: relative;
        display: none;
    }

    .hero-slide.is-active {
        display: grid;
    }

    .hero-dots {
        right: 24px;
        bottom: 18px;
    }
}

.hero-arrow {
    position: absolute;
    top: 90%;
    transform: translateY(-50%);
    z-index: 6;

    width: 46px;
    height: 46px;

    border-radius: 50%;
    border: 1px solid rgba(120, 140, 180, 0.25);

    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    font-weight: 800;
    color: #3c4b6e;

    cursor: pointer;

    transition: all .25s ease;
}

.hero-prev {
    right: 16px; /* RTL נכון */
}

.hero-next {
    left: 16px;
}

.hero-arrow:hover {
    transform: translateY(-50%) scale(1.08);
    border-color: rgba(22, 199, 223, 0.5);
    color: var(--blue);
    box-shadow: 0 12px 30px rgba(22, 199, 223, 0.25);
}

.hero-card:hover .hero-arrow {
    opacity: 1;
}

.hero-arrow {
    opacity: 0.5;
}

.hero-progress {
    position: absolute;
    bottom: 18px;
    left: 38px;
    width: 120px;
    height: 4px;
    background: rgba(120,140,180,0.2);
    border-radius: 999px;
    overflow: hidden;
}

.hero-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    animation: progressRun 5.5s linear infinite;
}

@keyframes progressRun {
    from { width: 0%; }
    to { width: 100%; }
}

.article-page {
    margin-top: 30px;
}

.article-shell {
    border: 1px solid rgba(211, 220, 228, 0.76);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.94);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.article-hero {
    padding: 30px;
    text-align: center;
    background:
            radial-gradient(circle at 20% 10%, rgba(116, 87, 255, 0.10), transparent 28%),
            radial-gradient(circle at 80% 20%, rgba(38, 120, 255, 0.08), transparent 28%),
            #fff;
}

.article-kicker {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(169, 180, 214, 0.48);
    border: 1px solid rgba(9, 49, 184, 0.13);
    color: #4a62c5;
    font-size: 13px;
    font-weight: 800;
}

.article-hero h1 {
    max-width: 880px;
    margin: 18px auto 14px;
    font-size: clamp(36px, 5vw, 46px);
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.article-excerpt {
    max-width: 720px;
    margin: 0 auto 18px;
    color: var(--muted);
    font-size: 21px;
    font-weight: 500;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #5f6f86;
    font-weight: 700;
}

.article-meta span:not(:last-child)::after {
    content: "·";
    margin-inline-start: 10px;
    color: #14b9d5;
}

.article-cover {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(5, 18, 40, 0.18);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 34px;
    padding: 42px 58px 58px;
}

.article-content {
    max-width: 760px;
    margin-inline: auto;
}

.article-content p {
    color: #243044;
    font-size: 20px;
    line-height: 1.9;
    font-weight: 450;
}

.article-content .lead {
    font-size: 23px;
    color: #101828;
    font-weight: 600;
}

.article-content h2 {
    margin: 44px 0 14px;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.article-note {
    margin: 32px 0;
    padding: 24px 26px;
    border-radius: 20px;
    border: 1px solid rgba(22, 199, 223, 0.22);
    background:
            linear-gradient(135deg, rgba(22,199,223,0.11), rgba(255,255,255,0.92));
    color: #243044;
    font-size: 19px;
    line-height: 1.8;
}

.article-sidebar {
    position: sticky;
    top: 110px;
    align-self: start;
    display: grid;
    gap: 16px;
}

.article-side-card {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 16px 45px rgba(17, 36, 67, 0.08);
}

.article-side-card h3 {
    margin: 0 0 14px;
    font-size: 20px;
}

.article-side-card a {
    display: block;
    padding: 10px 0;
    color: #2678ff;
    font-weight: 800;
    border-bottom: 1px solid var(--border);
}

.article-side-card a:last-child {
    border-bottom: 0;
}

.hot-price span {
    color: #4a62c5;
    font-weight: 800;
}

.hot-price strong {
    display: block;
    margin: 10px 0;
    font-size: 28px;
    letter-spacing: -0.04em;
}

@media (max-width: 980px) {
    .article-layout {
        grid-template-columns: 1fr;
        padding: 30px 24px 42px;
    }

    .article-hero {
        padding: 38px 24px 28px;
    }

    .article-sidebar {
        position: static;
    }

    .article-cover {
        height: 280px;
    }
}

.reading-progress {
    position: fixed;
    top: 81px;
    right: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    z-index: 999;
}

.article-content p,
.article-content h2 {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInText .6s ease forwards;
}

@keyframes fadeInText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-cover {
    transition: transform 1.2s ease;
}

.article-cover:hover {
    transform: scale(1.03);
}

.related-articles {
    padding: 0 58px 58px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.related-card {
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 16px 45px rgba(17, 36, 67, 0.08);
    transition: .25s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(22, 199, 223, 0.32);
    box-shadow: 0 24px 70px rgba(32, 86, 145, 0.13);
}

.related-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 14px;
}

.related-card span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 9px;
    background: rgba(169, 180, 214, 0.48);
    border: 1px solid rgba(9, 49, 184, 0.13);
    color: #4a62c5;
    font-size: 13px;
    font-weight: 800;
}

.related-card h3 {
    margin: 12px 0 8px;
    font-size: 22px;
    line-height: 1.22;
    letter-spacing: -0.04em;
}

.related-card small {
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 980px) {
    .related-articles {
        padding: 0 24px 42px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}