﻿/* =========================================================
   KEPSAŞ - TARİHÇE
   ========================================================= */

:root {
    --history-primary: #1a4c6b;
    --history-primary-dark: #12394f;
    --history-text: #17232c;
    --history-muted: #687680;
    --history-border: rgba(20, 32, 51, 0.08);
    --history-surface: #ffffff;
    --history-background: #f7f9fc;
    --history-orange: #f4aa3a;
}


/* =========================================================
   SAYFA
   ========================================================= */

.timeline-modern-wrapper {
    padding: 3rem 0;
    background: var(--history-background);
}


.history-container {
    position: relative;
    z-index: 2;
    padding-top: 3rem;
    padding-bottom: 3rem;
}


/* =========================================================
   SAYFA BAŞLIĞI
   ========================================================= */

.history-page-head {
    margin-bottom: 4rem;
    padding-bottom: 1.5rem;
    text-align: center;
}


.history-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    color: var(--history-primary);
    background: rgba(26, 76, 107, 0.10);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}


.history-page-head h1 {
    margin: 0 0 1rem;
    color: var(--history-text);
    font-size: clamp( 2rem, 4vw, 3rem );
    font-weight: 700;
    line-height: 1.15;
}


.history-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--history-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


    .history-breadcrumb span {
        color: var(--history-primary);
    }


/* =========================================================
   ZAMAN TÜNELİ
   ========================================================= */

.timeline-container {
    position: relative;
    padding: 2rem 0;
}


/* =========================================================
   MERKEZ ÇİZGİ
   ========================================================= */

.timeline-center-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient( 180deg, rgba(26, 76, 107, 0) 0%, rgba(26, 76, 107, 0.3) 15%, rgba(26, 76, 107, 0.3) 85%, rgba(26, 76, 107, 0) 100% );
    border-radius: 2px;
    transform: translateX(-50%);
}


/* =========================================================
   YIL NOKTALARI
   ========================================================= */

.timeline-pulse-dot {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--history-primary);
    border: 6px solid #f8f9fc;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(26, 76, 107, 0.1);
    font-size: 18px;
    font-weight: 700;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}


    .timeline-pulse-dot.active-today {
        background: linear-gradient( 135deg, #f4aa3a 0%, #d88a1e 100% );
        box-shadow: 0 0 0 4px rgba(244, 170, 58, 0.2);
    }


.timeline-today-label {
    font-size: 14px;
}


.timeline-row:hover .timeline-pulse-dot {
    transform: translateY(-2px);
    box-shadow: 0 0 0 6px rgba(26, 76, 107, 0.16);
}


    .timeline-row:hover .timeline-pulse-dot.active-today {
        box-shadow: 0 0 0 6px rgba(244, 170, 58, 0.24);
    }


/* =========================================================
   FOTOĞRAFLAR
   ========================================================= */

.history-timeline-image {
    width: 100%;
    height: auto;
    display: block;
    border: 4px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(20, 32, 51, 0.08);
}


/* =========================================================
   KARTLAR
   ========================================================= */

.timeline-card,
.timeline-icon-card {
    background: var(--history-surface);
    border: 1px solid var(--history-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(20, 32, 51, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}


.timeline-card {
    padding: 1.5rem;
}


    .timeline-card h4 {
        margin: 0 0 0.5rem;
        color: var(--history-primary);
        font-size: 1.25rem;
        font-weight: 700;
    }


    .timeline-card p {
        margin: 0;
        color: var(--history-muted);
        font-size: 14px;
        line-height: 1.75;
    }


.timeline-row:hover .timeline-card,
.timeline-row:hover .timeline-icon-card {
    transform: translateY(-4px);
    border-color: rgba(26, 76, 107, 0.16);
    box-shadow: 0 16px 36px rgba(20, 32, 51, 0.09);
}


/* =========================================================
   İKON KARTI
   ========================================================= */

.timeline-icon-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}


    .timeline-icon-card i {
        line-height: 1;
    }


.timeline-icon-warning {
    color: #ffc107;
    font-size: 2rem;
}


.timeline-icon-muted {
    color: #6c757d;
    font-size: 1.75rem;
}


.timeline-icon-primary {
    color: var(--history-primary);
    font-size: 2rem;
}


/* =========================================================
   BUGÜN KARTI
   ========================================================= */

.timeline-today-stat {
    min-width: 250px;
    display: inline-block;
    color: #ffffff;
    text-align: center;
    background: linear-gradient( 135deg, var(--history-primary-dark), var(--history-primary) );
    border: 0;
    box-shadow: 0 14px 32px rgba(20, 32, 51, 0.14);
}


    .timeline-today-stat h2 {
        margin: 0 0 0.5rem;
        color: #ffffff;
        font-size: clamp( 2.5rem, 4vw, 3.5rem );
        font-weight: 700;
    }


    .timeline-today-stat p {
        max-width: 250px;
        margin: 0 auto;
        color: rgba(255, 255, 255, 0.75);
        font-size: 0.875rem;
    }


/* =========================================================
   TIMELINE HOVER HAREKETİ
   ========================================================= */

.timeline-content-left,
.timeline-content-right {
    transition: transform 0.24s ease;
}


.timeline-row:hover .timeline-content-left {
    transform: translateX(-4px);
}


.timeline-row:hover .timeline-content-right {
    transform: translateX(4px);
}


/* =========================================================
   ABONE SAYILARI
   ========================================================= */

.history-subscriber-section {
    margin-top: 72px;
    padding-top: 54px;
    border-top: 1px solid var(--history-border);
}


/* =========================================================
   ABONE BAŞLIK
   ========================================================= */

.history-subscriber-heading {
    max-width: 680px;
    margin: 0 auto 34px;
    text-align: center;
}


    .history-subscriber-heading h2 {
        margin: 0 0 0.5rem;
        color: var(--history-text);
        font-size: clamp( 28px, 3vw, 40px );
        font-weight: 700;
        letter-spacing: -0.8px;
    }


    .history-subscriber-heading p {
        margin: 0;
        color: var(--history-muted);
        font-size: 14px;
        line-height: 1.65;
    }


/* =========================================================
   GRAFİK KARTI
   ========================================================= */

.history-subscriber-chart {
    position: relative;
    overflow: hidden;
    padding: 38px 40px 32px;
    background: var(--history-surface);
    border: 1px solid var(--history-border);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(20, 32, 51, 0.08);
}


    .history-subscriber-chart::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 4px;
        background: linear-gradient( 90deg, #ec1c24, #f7941d, #a7cf45, #109bd7, #2fb7b8 );
    }


/* =========================================================
   GRAFİK SCROLL
   ========================================================= */

.history-chart-scroll {
    overflow-x: auto;
    padding-top: 8px;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(26, 76, 107, 0.3) transparent;
}


    .history-chart-scroll:focus-visible {
        outline: 3px solid rgba(26, 76, 107, 0.18);
        outline-offset: 4px;
        border-radius: 6px;
    }


/* =========================================================
   BAR CHART
   ========================================================= */

.history-bar-chart {
    width: 100%;
    min-width: 670px;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp( 18px, 4vw, 46px );
    padding: 0 20px;
    border-bottom: 2px solid #e7ecef;
}


.history-bar-group {
    width: 112px;
    flex: 0 0 112px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
}


/* =========================================================
   DEĞER
   ========================================================= */

.history-bar-value {
    margin-bottom: 9px;
    color: var(--history-muted);
    font-size: 14px;
    font-weight: 750;
}


.history-bar-value-current {
    color: var(--history-text);
    font-size: 17px;
}


/* =========================================================
   BAR
   ========================================================= */

.history-bar {
    width: 100%;
    height: var(--bar-height);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 8px 18px rgba(20, 32, 51, 0.11);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.9s cubic-bezier( 0.22, 1, 0.36, 1 ), filter 0.2s ease;
}


    .history-bar.is-visible {
        transform: scaleY(1);
    }


    .history-bar:hover {
        filter: brightness(1.04);
    }


/* =========================================================
   BAR YÜKSEKLİK + RENKLER
   Inline style kaldırıldı.
   ========================================================= */

.history-bar-2020 {
    --bar-height: 120px;
    background: linear-gradient( 180deg, #e60000 0%, #ff4d4d 100% );
}


.history-bar-2021 {
    --bar-height: 160px;
    background: linear-gradient( 180deg, #f58220 0%, #ffb347 100% );
}


.history-bar-2022 {
    --bar-height: 200px;
    background: linear-gradient( 180deg, #169aae 0%, #5bc0de 100% );
}


.history-bar-2023 {
    --bar-height: 250px;
    background: linear-gradient( 180deg, #1478d4 0%, #66b2ff 100% );
}


.history-bar-2024 {
    --bar-height: 310px;
    background: linear-gradient( 180deg, #88af31 0%, #c4df60 100% );
}


/* =========================================================
   YIL ETİKETLERİ
   ========================================================= */

.history-bar-label {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 9px;
    padding: 6px 12px;
    color: #ffffff;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}


.history-bar-label-2020 {
    background: #dc3545;
}


.history-bar-label-2021 {
    background: #f58220;
}


.history-bar-label-2022 {
    background: #169aae;
}


.history-bar-label-2023 {
    background: #1478d4;
}


.history-bar-label-2024 {
    background: #88af31;
    font-size: 14px;
}


/* =========================================================
   TABLET
   Desktop (992px+) kuralları değiştirilmez.
   ========================================================= */

@media (min-width: 768px) and (max-width: 991.98px) {

    .timeline-modern-wrapper {
        padding: 2.5rem 0;
    }

    .history-container {
        padding-top: 2.25rem;
        padding-bottom: 2.25rem;
    }

    .history-page-head {
        margin-bottom: 3rem;
        padding-bottom: 1rem;
    }

    .timeline-container {
        padding: 1.5rem 0;
    }

    .timeline-pulse-dot {
        width: 68px;
        height: 68px;
        border-width: 5px;
        font-size: 15px;
    }

    .timeline-today-label {
        font-size: 12px;
    }

    .timeline-card {
        padding: 1.2rem;
    }

        .timeline-card h4 {
            font-size: 1.08rem;
        }

        .timeline-card p {
            font-size: 13px;
            line-height: 1.65;
        }

    .timeline-icon-card {
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .timeline-icon-warning,
    .timeline-icon-primary {
        font-size: 1.7rem;
    }

    .timeline-icon-muted {
        font-size: 1.5rem;
    }

    .timeline-today-stat {
        width: 100%;
        min-width: 0;
    }

        .timeline-today-stat h2 {
            font-size: 2.35rem;
        }

    .history-subscriber-section {
        margin-top: 56px;
        padding-top: 44px;
    }

    .history-subscriber-heading {
        margin-bottom: 28px;
    }

    .history-subscriber-chart {
        padding: 30px 24px 26px;
    }

    .history-bar-chart {
        min-width: 0;
        min-height: 320px;
        gap: clamp(14px, 2.5vw, 28px);
        padding: 0 10px;
    }

    .history-bar-group {
        width: auto;
        min-width: 0;
        max-width: 100px;
        flex: 1 1 0;
    }

    .history-bar-2020 {
        --bar-height: 105px;
    }

    .history-bar-2021 {
        --bar-height: 140px;
    }

    .history-bar-2022 {
        --bar-height: 175px;
    }

    .history-bar-2023 {
        --bar-height: 220px;
    }

    .history-bar-2024 {
        --bar-height: 275px;
    }
}


/* =========================================================
   MOBİL
   Timeline solda yıl rayı + sağda kompakt içerik akışı.
   ========================================================= */

@media (max-width: 767.98px) {

    .timeline-modern-wrapper {
        padding: clamp(1.25rem, 4vw, 1.75rem) 0;
    }

    .history-container {
        padding-top: 1.25rem;
        padding-bottom: 1.5rem;
    }

    .history-page-head {
        margin-bottom: 2rem;
        padding-bottom: 0.5rem;
    }

    .history-eyebrow {
        margin-bottom: 0.75rem;
        padding: 0.42rem 1rem;
        font-size: 0.68rem;
    }

    .history-page-head h1 {
        margin-bottom: 0.75rem;
        font-size: clamp(1.8rem, 7vw, 2.35rem);
    }

    .history-breadcrumb {
        flex-wrap: wrap;
        gap: 0.35rem 0.45rem;
        font-size: 11px;
        letter-spacing: 1.1px;
    }

    .timeline-container {
        padding: 0.75rem 0;
    }

    .timeline-center-line {
        top: 6px;
        bottom: 6px;
        left: 26px;
        width: 3px;
        background: linear-gradient( 180deg, rgba(26, 76, 107, 0) 0%, rgba(26, 76, 107, 0.28) 8%, rgba(26, 76, 107, 0.28) 92%, rgba(26, 76, 107, 0) 100% );
    }

    .timeline-row {
        --bs-gutter-x: 0;
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        column-gap: 14px;
        row-gap: 12px;
        align-items: start;
        margin-right: 0;
        margin-left: 0;
    }

        .timeline-row.mb-5 {
            margin-bottom: 2rem !important;
        }

        .timeline-row > .col-md-2 {
            grid-column: 1;
            grid-row: 1 / span 2;
            width: 52px;
            max-width: none;
            align-self: start;
            justify-content: center !important;
            margin: 0 !important;
            padding: 0;
            order: 0 !important;
        }

        .timeline-row > .timeline-content-left,
        .timeline-row > .timeline-content-right {
            grid-column: 2;
            width: auto;
            max-width: none;
            margin: 0 !important;
            padding: 0;
            text-align: left !important;
            order: 0 !important;
        }

    .timeline-pulse-dot {
        width: 52px;
        height: 52px;
        margin: 0;
        border-width: 4px;
        box-shadow: 0 0 0 3px rgba(26, 76, 107, 0.1);
        font-size: 12px;
    }

        .timeline-pulse-dot.active-today {
            box-shadow: 0 0 0 3px rgba(244, 170, 58, 0.18);
        }

    .timeline-today-label {
        font-size: 11px;
    }

    .history-timeline-image {
        max-width: 100%;
        border-width: 3px;
        border-radius: 10px;
    }

    .timeline-card {
        padding: clamp(0.9rem, 3.5vw, 1.1rem);
        border-radius: 10px;
    }

        .timeline-card h4 {
            margin-bottom: 0.4rem;
            font-size: clamp(1rem, 4vw, 1.15rem);
            line-height: 1.3;
        }

        .timeline-card p {
            font-size: 13px;
            line-height: 1.6;
        }

    .timeline-icon-card {
        width: fit-content;
        max-width: 100%;
        gap: 0.65rem;
        padding: 0.75rem 0.9rem;
        border-radius: 10px;
    }

    .timeline-icon-warning,
    .timeline-icon-primary {
        font-size: 1.55rem;
    }

    .timeline-icon-muted {
        font-size: 1.35rem;
    }

    .timeline-today-stat {
        width: 100%;
        min-width: 0;
        padding: 1rem 1.1rem;
    }

        .timeline-today-stat h2 {
            margin-bottom: 0.35rem;
            font-size: clamp(1.8rem, 8vw, 2.5rem);
        }

        .timeline-today-stat p {
            max-width: none;
            font-size: 0.8rem;
        }

    .timeline-row:hover .timeline-pulse-dot,
    .timeline-row:hover .timeline-card,
    .timeline-row:hover .timeline-icon-card,
    .timeline-row:hover .timeline-content-left,
    .timeline-row:hover .timeline-content-right {
        transform: none;
    }

    .history-subscriber-section {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    .history-subscriber-heading {
        margin-bottom: 1.25rem;
    }

        .history-subscriber-heading h2 {
            font-size: clamp(1.55rem, 6vw, 2rem);
            letter-spacing: -0.45px;
        }

        .history-subscriber-heading p {
            font-size: 13px;
            line-height: 1.55;
        }

    .history-subscriber-chart {
        padding: 1.5rem 0.75rem 1rem;
        border-radius: 9px;
        box-shadow: 0 10px 28px rgba(20, 32, 51, 0.07);
    }

    .history-chart-scroll {
        overflow-x: hidden;
        padding-top: 6px;
        padding-bottom: 4px;
    }

    .history-bar-chart {
        width: 100%;
        min-width: 0;
        min-height: 270px;
        justify-content: space-between;
        gap: clamp(6px, 2.2vw, 12px);
        padding: 0 2px;
    }

    .history-bar-group {
        width: auto;
        min-width: 0;
        max-width: 82px;
        flex: 1 1 0;
    }

    .history-bar-value {
        margin-bottom: 7px;
        overflow: hidden;
        font-size: clamp(10px, 2.5vw, 12px);
        font-variant-numeric: tabular-nums;
        text-overflow: clip;
        white-space: nowrap;
    }

    .history-bar-value-current {
        font-size: clamp(11px, 2.8vw, 13px);
    }

    .history-bar {
        border-radius: 6px 6px 0 0;
    }

    .history-bar-2020 {
        --bar-height: 85px;
    }

    .history-bar-2021 {
        --bar-height: 115px;
    }

    .history-bar-2022 {
        --bar-height: 145px;
    }

    .history-bar-2023 {
        --bar-height: 180px;
    }

    .history-bar-2024 {
        --bar-height: 220px;
    }

    .history-bar-label {
        min-height: 30px;
        margin-top: 7px;
        padding: 5px 2px;
        border-radius: 6px;
        font-size: 10px;
    }

    .history-bar-label-2024 {
        font-size: 11px;
    }
}


/* =========================================================
   KÜÇÜK MOBİL
   ========================================================= */

@media (max-width: 479.98px) {

    .timeline-modern-wrapper {
        padding: 1rem 0;
    }

    .history-container {
        padding-top: 1rem;
        padding-bottom: 1.25rem;
    }

    .history-page-head {
        margin-bottom: 1.6rem;
    }

    .timeline-row {
        grid-template-columns: 46px minmax(0, 1fr);
        column-gap: 11px;
        row-gap: 10px;
    }

        .timeline-row.mb-5 {
            margin-bottom: 1.6rem !important;
        }

    .timeline-center-line {
        left: 23px;
    }

    .timeline-row > .col-md-2 {
        width: 46px;
    }

    .timeline-pulse-dot {
        width: 46px;
        height: 46px;
        border-width: 3px;
        font-size: 11px;
    }

    .timeline-today-label {
        font-size: 10px;
    }

    .timeline-card {
        padding: 0.82rem;
    }

        .timeline-card h4 {
            font-size: 0.98rem;
        }

        .timeline-card p {
            font-size: 12px;
            line-height: 1.55;
        }

    .timeline-icon-card {
        gap: 0.55rem;
        padding: 0.68rem 0.78rem;
    }

    .timeline-icon-warning,
    .timeline-icon-primary {
        font-size: 1.4rem;
    }

    .timeline-icon-muted {
        font-size: 1.2rem;
    }

    .history-subscriber-section {
        margin-top: 2rem;
        padding-top: 1.65rem;
    }

    .history-subscriber-chart {
        margin-right: -2px;
        margin-left: -2px;
        padding: 1.25rem 0.55rem 0.9rem;
    }

    .history-bar-chart {
        min-height: 235px;
        gap: 5px;
        padding: 0;
    }

    .history-bar-group {
        max-width: 62px;
    }

    .history-bar-value {
        font-size: 9px;
    }

    .history-bar-value-current {
        font-size: 10px;
    }

    .history-bar-2020 {
        --bar-height: 72px;
    }

    .history-bar-2021 {
        --bar-height: 96px;
    }

    .history-bar-2022 {
        --bar-height: 120px;
    }

    .history-bar-2023 {
        --bar-height: 150px;
    }

    .history-bar-2024 {
        --bar-height: 185px;
    }

    .history-bar-label {
        min-height: 27px;
        margin-top: 6px;
        padding: 4px 1px;
        font-size: 9px;
    }

    .history-bar-label-2024 {
        font-size: 10px;
    }
}


/* =========================================================
   HAREKET AZALTMA
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .timeline-pulse-dot,
    .timeline-card,
    .timeline-icon-card,
    .timeline-content-left,
    .timeline-content-right,
    .history-bar {
        transition: none;
    }


    .timeline-row:hover .timeline-pulse-dot,
    .timeline-row:hover .timeline-card,
    .timeline-row:hover .timeline-icon-card,
    .timeline-row:hover .timeline-content-left,
    .timeline-row:hover .timeline-content-right {
        transform: none;
    }


    .history-bar {
        transform: scaleY(1);
    }
}
