/*
 * FİYATOMATİK
 * UI-A6.4-E1
 * Desktop-first live intelligence dashboard.
 * Presentation only.
 */

:root {
    --e1-ink: #10182f;
    --e1-muted: #667085;
    --e1-line: #e7eaf2;
    --e1-page: #f7f9ff;
    --e1-blue: #315cff;
    --e1-purple: #7557ff;
    --e1-cyan: #16b8d4;
    --e1-pink: #ed4d82;
    --e1-orange: #f59e0b;
    --e1-green: #10a981;
    --e1-radius: 20px;
}

body {
    background:
        radial-gradient(circle at 15% 0%, rgba(92,112,255,.09), transparent 28rem),
        radial-gradient(circle at 90% 12%, rgba(22,184,212,.07), transparent 25rem),
        var(--e1-page) !important;
    color: var(--e1-ink);
}

.ft-header {
    background: rgba(255,255,255,.94) !important;
    border-bottom: 1px solid rgba(19,31,63,.08);
    box-shadow: 0 6px 24px rgba(22,31,65,.045);
}

.ft-brand-mark {
    background: linear-gradient(145deg,#315cff,#7657ff 55%,#e84d91) !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(72,79,218,.24);
}

.ft-product-link {
    color: #fff !important;
    background: linear-gradient(135deg,#315cff,#7257ff) !important;
    border-radius: 999px !important;
    padding: 8px 15px !important;
    box-shadow: 0 7px 18px rgba(49,92,255,.18);
}

.ft-engine-nav {
    background: rgba(255,255,255,.97) !important;
}

.ft-engine-nav-inner {
    gap: 7px !important;
}

.ft-engine-nav-inner > a:not(.ft-product-link) {
    border-radius: 999px;
    padding: 8px 10px !important;
    transition: background .18s ease, color .18s ease;
}

.ft-engine-nav-inner > a:not(.ft-product-link):hover {
    background: #eef2ff;
    color: #315cff;
}

/* =========================================================
   E1 HERO
   ========================================================= */

.ft-e1-hero {
    width: min(1540px, calc(100% - 48px));
    min-height: 232px;
    margin: 22px auto 18px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at 72% 24%, rgba(255,198,96,.58), transparent 8%),
        radial-gradient(circle at 78% 30%, rgba(237,77,130,.25), transparent 22%),
        radial-gradient(circle at 52% 100%, rgba(39,198,214,.25), transparent 32%),
        linear-gradient(118deg,#07183e 0%,#183f91 42%,#5c4ec9 70%,#167eb7 100%);
    box-shadow: 0 18px 48px rgba(18,39,96,.18);
    color: #fff;
}

.ft-e1-hero::before,
.ft-e1-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.ft-e1-hero::before {
    width: 650px;
    height: 650px;
    right: -140px;
    top: -390px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(255,255,255,.025),
        0 0 0 140px rgba(255,255,255,.018);
}

.ft-e1-hero::after {
    inset: auto 0 0;
    height: 80px;
    background:
        linear-gradient(155deg,transparent 49%,rgba(5,19,58,.62) 50%) 0 0/28% 100%,
        linear-gradient(205deg,transparent 49%,rgba(7,27,67,.58) 50%) 23% 0/31% 100%,
        linear-gradient(160deg,transparent 49%,rgba(8,31,74,.66) 50%) 54% 0/32% 100%,
        linear-gradient(200deg,transparent 49%,rgba(6,25,65,.62) 50%) 80% 0/28% 100%;
    opacity: .8;
}

.ft-e1-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 232px;
    display: grid;
    grid-template-columns: 1.45fr .75fr;
}

.ft-e1-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 35px 44px 50px;
}

.ft-e1-hero-copy h1 {
    margin: 0;
    max-width: 650px;
    color: #fff;
    font-size: clamp(36px,3.1vw,58px);
    line-height: .98;
    letter-spacing: -.045em;
}

.ft-e1-hero-copy h1 span {
    background: linear-gradient(90deg,#5ee6ff,#b494ff,#ff6fb3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ft-e1-hero-copy p {
    max-width: 620px;
    margin: 16px 0 0;
    color: rgba(255,255,255,.83);
    font-size: 16px;
}

.ft-e1-hero-panel {
    margin: 18px;
    padding: 9px 0;
    align-self: stretch;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    background: rgba(7,27,75,.30);
    backdrop-filter: blur(12px);
}

.ft-e1-system-row {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 11px;
    align-items: center;
    padding: 14px 18px;
}

.ft-e1-system-row + .ft-e1-system-row {
    border-top: 1px solid rgba(255,255,255,.12);
}

.ft-e1-system-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.14);
    color: #fff;
}

.ft-e1-system-row strong,
.ft-e1-system-row span {
    display: block;
}

.ft-e1-system-row strong {
    font-size: 13px;
}

.ft-e1-system-row span {
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255,255,255,.68);
}

/* =========================================================
   SECTION
   ========================================================= */

.ft-engine-section {
    padding: 12px 0 34px !important;
}

.ft-engine-section > .ft-shell {
    width: min(1540px, calc(100% - 48px)) !important;
    max-width: none !important;
}

.ft-section-heading {
    align-items: end !important;
    margin: 0 0 17px !important;
}

.ft-section-heading .ft-kicker {
    display: none !important;
}

.ft-section-heading h2 {
    font-size: 24px !important;
    letter-spacing: -.025em !important;
    margin: 0 !important;
}

.ft-section-heading h2 span {
    color: inherit !important;
}

.ft-section-heading p {
    display: none !important;
}

.ft-engine-summary {
    min-width: 200px !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid var(--e1-line) !important;
    box-shadow: none !important;
}

.ft-engine-summary strong {
    color: #315cff !important;
}

/* =========================================================
   2 x 5 ENGINE NEWS CARDS
   ========================================================= */

.ft-engine-grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 16px !important;
}

.ft-engine-card {
    --accent: #315cff;
    --accent-soft: #eef2ff;

    min-height: 188px !important;
    padding: 0 !important;
    overflow: hidden;
    display: grid !important;
    grid-template-columns: 46% 54% !important;
    grid-template-rows: 1fr !important;
    border: 1px solid var(--e1-line) !important;
    border-radius: var(--e1-radius) !important;
    background: rgba(255,255,255,.92) !important;
    box-shadow: 0 10px 32px rgba(22,35,74,.055) !important;
    text-decoration: none !important;
    position: relative;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease !important;
}

.ft-engine-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb,var(--accent) 32%,white) !important;
    box-shadow: 0 16px 36px rgba(25,38,78,.10) !important;
}

.ft-engine-card[data-engine="katip"] {
    --accent:#16a7c9;
    --accent-soft:#eafaff;
}

.ft-engine-card[data-engine="oduncu"] {
    --accent:#e08a22;
    --accent-soft:#fff5e8;
}

.ft-engine-card[data-engine="kasif"] {
    --accent:#7357f4;
    --accent-soft:#f1eeff;
}

.ft-engine-card[data-engine="tazi"] {
    --accent:#08a77f;
    --accent-soft:#e9fbf5;
}

.ft-engine-card[data-engine="tilki"] {
    --accent:#ed4d82;
    --accent-soft:#fff0f5;
}

.ft-engine-card[data-engine="altin-rehber"] {
    --accent:#e0a118;
    --accent-soft:#fff8e4;
}

.ft-engine-card[data-engine="aslan"] {
    --accent:#3f78b8;
    --accent-soft:#edf5ff;
}

.ft-engine-card[data-engine="oyuncu"] {
    --accent:#5968ee;
    --accent-soft:#eff1ff;
}

.ft-engine-card[data-engine="bilge"] {
    --accent:#14aaa7;
    --accent-soft:#eafaf9;
}

.ft-engine-card[data-engine="dedektif"] {
    --accent:#596b89;
    --accent-soft:#f0f3f8;
}

/*
 * Existing DOM is preserved.
 * JS adds these presentation wrappers/classes.
 */

.ft-e1-engine-left {
    padding: 20px 20px 17px;
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto 1fr auto;
    column-gap: 14px;
    border-right: 1px solid var(--e1-line);
    background:
        radial-gradient(circle at 0 0,var(--accent-soft),transparent 55%);
}

.ft-e1-engine-left .ft-engine-head {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0 !important;
    display: block !important;
}

.ft-engine-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 15px !important;
    display: grid !important;
    place-items: center !important;
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    font-size: 0 !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--accent) 12%,white);
}

.ft-engine-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ft-engine-status {
    display: none !important;
}

.ft-e1-engine-left > strong {
    grid-column: 2;
    font-size: 18px !important;
    line-height: 1.05;
    margin: 3px 0 0 !important;
    color: var(--e1-ink) !important;
}

.ft-e1-engine-left > small {
    grid-column: 2;
    margin-top: 5px;
    color: var(--accent) !important;
    font-weight: 750 !important;
}

.ft-e1-engine-left > p {
    grid-column: 1 / -1;
    margin: 13px 0 0 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: var(--e1-muted) !important;
}

.ft-e1-engine-left .ft-engine-foot {
    grid-column: 1 / -1;
    margin: 15px 0 0 !important;
    padding: 12px 0 0 !important;
    border-top: 1px solid rgba(18,31,63,.07) !important;
}

.ft-e1-engine-left .ft-engine-foot b {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
}

.ft-e1-engine-left .ft-engine-detail {
    color: var(--e1-muted) !important;
    font-size: 11px !important;
}

.ft-e1-engine-feed {
    min-width: 0;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255,255,255,.72);
}

.ft-e1-feed-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
    color: var(--e1-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ft-e1-feed-title span:first-child {
    color: var(--accent);
}

.ft-e1-feed-row {
    min-height: 37px;
    display: grid;
    grid-template-columns: 8px minmax(0,1fr);
    gap: 10px;
    align-items: center;
    border-top: 1px solid rgba(17,31,65,.065);
}

.ft-e1-feed-row:first-of-type {
    border-top: 0;
}

.ft-e1-feed-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.ft-e1-feed-copy {
    min-width: 0;
    color: #39435b;
    font-size: 11px;
    line-height: 1.35;
}

.ft-e1-feed-empty {
    color: #8991a3;
}

.ft-e1-feed-link {
    margin-top: 7px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
}

/* =========================================================
   LOWER TRUST STRIP
   ========================================================= */

.ft-e1-trust {
    margin-top: 4px;
    background:
        linear-gradient(110deg,#7d174e 0%,#5d2bc7 42%,#173d98 72%,#0c4777 100%);
    color: #fff;
}

.ft-e1-trust-inner {
    width: min(1540px,calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.ft-e1-trust-item {
    padding: 17px 24px;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: center;
}

.ft-e1-trust-item + .ft-e1-trust-item {
    border-left: 1px solid rgba(255,255,255,.13);
}

.ft-e1-trust-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255,255,255,.13);
}

.ft-e1-trust-item strong,
.ft-e1-trust-item span {
    display: block;
}

.ft-e1-trust-item strong {
    font-size: 12px;
}

.ft-e1-trust-item span {
    margin-top: 2px;
    color: rgba(255,255,255,.66);
    font-size: 10px;
}

.ft-footer {
    margin-top: 0 !important;
}

@media (max-width: 1050px) {
    .ft-engine-grid {
        grid-template-columns: 1fr !important;
    }

    .ft-e1-hero-inner {
        grid-template-columns: 1fr;
    }

    .ft-e1-hero-panel {
        display: none;
    }

    .ft-e1-trust-inner {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 720px) {
    .ft-e1-hero,
    .ft-engine-section > .ft-shell,
    .ft-e1-trust-inner {
        width: min(100% - 24px,1540px) !important;
    }

    .ft-engine-card {
        grid-template-columns: 1fr !important;
    }

    .ft-e1-engine-left {
        border-right: 0;
        border-bottom: 1px solid var(--e1-line);
    }

    .ft-e1-trust-inner {
        grid-template-columns: 1fr;
    }

    .ft-e1-trust-item + .ft-e1-trust-item {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.13);
    }
}
