/* =========================================
   CSI SUPPORTER
========================================= */

.supporter-view {
    display: none;
    min-height: calc(100vh - 70px);
    padding: 38px 24px 80px;

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(255, 204, 0, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 15%,
            rgba(255, 204, 0, 0.04),
            transparent 28%
        ),
        #090909;
}

.supporter-view.active {
    display: block;
}

.supporter-shell {
    width: min(1180px, calc(100% - 20px));
    margin: 0 auto;
}

/* HERO */

.supporter-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 230px;
    padding: 42px;
    overflow: hidden;

    border: 1px solid rgba(255, 204, 0, 0.20);
    border-radius: 20px;

    background:
        linear-gradient(
            120deg,
            rgba(255, 204, 0, 0.09),
            rgba(20, 20, 20, 0.95) 42%,
            rgba(10, 10, 10, 0.98)
        );

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.35);
}

.supporter-hero::before {
    content: "";
    position: absolute;

    width: 280px;
    height: 280px;

    right: -80px;
    top: -110px;

    border-radius: 50%;
    background: rgba(255, 204, 0, 0.10);
    filter: blur(15px);
}

.supporter-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.supporter-kicker {
    display: inline-block;
    margin-bottom: 12px;

    color: #ffcc00;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.supporter-hero h1 {
    display: flex;
    align-items: center;
    gap: 13px;

    margin: 0 0 13px;

    color: #fff;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
}

.supporter-hero h1 i {
    color: #ffcc00;
    filter:
        drop-shadow(
            0 0 10px
            rgba(255, 204, 0, 0.25)
        );
}

.supporter-hero p {
    max-width: 580px;
    margin: 0;

    color: #a8a8a8;
    font-size: 15px;
    line-height: 1.7;
}

.supporter-hero-logo {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 145px;
    height: 145px;

    margin-right: 25px;
}

.supporter-hero-logo img {
    width: 130px;
    height: 130px;
    object-fit: contain;

    filter:
        drop-shadow(
            0 0 25px
            rgba(255, 204, 0, 0.18)
        );
}

/* AYRAÇ */

.supporter-divider {
    height: 1px;
    margin: 30px 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 204, 0, 0.45),
            transparent
        );
}

/* İSTATİSTİK */

.supporter-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 16px;
    margin-bottom: 42px;
}

.supporter-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 20px;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #151515,
            #0e0e0e
        );

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.supporter-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 204, 0, 0.28);

    box-shadow:
        0 12px 28px
        rgba(0, 0, 0, 0.28);
}

.supporter-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    flex-shrink: 0;

    border-radius: 12px;

    color: #ffcc00;
    background: rgba(255, 204, 0, 0.08);

    border:
        1px solid
        rgba(255, 204, 0, 0.15);

    font-size: 18px;
}

.supporter-stat-card div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.supporter-stat-card small {
    color: #777;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.supporter-stat-card strong {
    color: #fff;
    font-size: 20px;
}

/* BAŞLIK */

.supporter-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
}

.supporter-section-head span {
    color: #ffcc00;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.supporter-section-head h2 {
    margin: 5px 0;
    color: #fff;
    font-size: 28px;
}

.supporter-section-head p {
    margin: 0;
    color: #777;
    font-size: 13px;
}

/* GRID */

.supporter-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(245px, 1fr)
        );

    gap: 18px;
}

/* KART */

.supporter-card {
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #161616,
            #0d0d0d
        );

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.supporter-card::before {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    top: 0;

    height: 2px;
    opacity: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            #ffcc00,
            transparent
        );

    transition: opacity 0.22s ease;
}

.supporter-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 204, 0, 0.32);

    box-shadow:
        0 18px 40px
        rgba(0, 0, 0, 0.35),
        0 0 25px
        rgba(255, 204, 0, 0.04);
}

.supporter-card:hover::before {
    opacity: 1;
}

/* AVATAR */

.supporter-avatar {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    height: 175px;

    background:
        radial-gradient(
            circle,
            rgba(255, 204, 0, 0.07),
            transparent 65%
        );
}

.supporter-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 90px;
    height: 90px;

    border-radius: 50%;

    color: #ffcc00;

    border:
        2px solid
        rgba(255, 204, 0, 0.25);

    background: #101010;
    font-size: 35px;

    box-shadow:
        0 0 30px
        rgba(255, 204, 0, 0.07);
}

.supporter-online {
    position: absolute;

    right: 18px;
    top: 18px;

    width: 9px;
    height: 9px;

    border-radius: 50%;
    background: #ffcc00;

    box-shadow:
        0 0 10px
        rgba(255, 204, 0, 0.6);
}

/* KART İÇERİĞİ */

.supporter-card-content {
    padding: 18px 20px 20px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.05);
}

.supporter-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 5px 8px;
    margin-bottom: 10px;

    border-radius: 6px;

    color: #ffcc00;
    background: rgba(255, 204, 0, 0.07);

    border:
        1px solid
        rgba(255, 204, 0, 0.12);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.supporter-card h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 18px;
}

.supporter-card p {
    margin: 0;
    color: #777;
    font-size: 12px;
}

.supporter-card-footer {
    margin-top: 16px;
    padding-top: 13px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.05);
}

.supporter-card-footer span {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #aaa;
    font-size: 11px;
}

.supporter-card-footer i {
    color: #ffcc00;
}

/* MOBİL */

@media (max-width: 800px) {

    .supporter-view {
        padding: 22px 14px 60px;
    }

    .supporter-shell {
        width: 100%;
    }

    .supporter-hero {
        min-height: auto;
        padding: 28px 24px;
    }

    .supporter-hero-logo {
        width: 90px;
        height: 90px;
        margin-right: 0;
    }

    .supporter-hero-logo img {
        width: 80px;
        height: 80px;
    }

    .supporter-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {

    .supporter-hero-logo {
        display: none;
    }

    .supporter-hero h1 {
        font-size: 32px;
    }

    .supporter-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   SUPPORTER YÖNETİMİ
   ========================================================= */

.supporter-management {
    margin: 0 0 34px;
    padding: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 204, 0, 0.055),
            rgba(255, 204, 0, 0.01)
        ),
        #101010;

    border: 1px solid rgba(255, 204, 0, 0.22);
    border-radius: 15px;
}

.supporter-management-header {
    margin-bottom: 18px;
}

.supporter-management-header span {
    display: block;
    margin-bottom: 5px;

    color: #ffcc00;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.supporter-management-header h2 {
    margin: 0 0 5px;

    color: #fff;

    font-size: 20px;
    font-weight: 900;
}

.supporter-management-header p {
    margin: 0;

    color: #929292;

    font-size: 12px;
}

.supporter-management-form {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        180px
        190px;

    gap: 12px;

    align-items: end;
}

.supporter-management-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.supporter-management-field label {
    color: #b8b8b8;

    font-size: 11px;
    font-weight: 800;
}

.supporter-management-field input {
    width: 100%;
    height: 43px;

    padding: 0 13px;

    box-sizing: border-box;

    color: #fff;
    background: #181818;

    border: 1px solid #303030;
    border-radius: 9px;

    outline: none;

    font: inherit;
    font-size: 12px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.supporter-management-field input:focus {
    border-color: #ffcc00;

    box-shadow:
        0 0 0 3px
        rgba(255, 204, 0, 0.08);
}

.supporter-add-btn {
    height: 43px;

    border: 1px solid #ffcc00;
    border-radius: 9px;

    color: #0b0b0b;
    background: #ffcc00;

    font: inherit;
    font-size: 12px;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform .2s ease,
        filter .2s ease;
}

.supporter-add-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.supporter-add-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.supporter-card-management {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 7px;

    margin-top: 12px;
}

.supporter-edit-btn,
.supporter-delete-btn {
    min-height: 31px;

    border-radius: 7px;

    font: inherit;
    font-size: 10px;
    font-weight: 900;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.supporter-edit-btn {
    color: #ffcc00;
    background: rgba(255, 204, 0, 0.06);

    border:
        1px solid
        rgba(255, 204, 0, 0.32);
}

.supporter-edit-btn:hover {
    background:
        rgba(255, 204, 0, 0.12);

    border-color: #ffcc00;

    transform: translateY(-1px);
}

.supporter-delete-btn {
    color: #ff6767;

    background:
        rgba(255, 70, 70, 0.06);

    border:
        1px solid
        rgba(255, 70, 70, 0.25);
}

.supporter-delete-btn:hover {
    background:
        rgba(255, 70, 70, 0.12);

    border-color:
        rgba(255, 70, 70, 0.65);

    transform: translateY(-1px);
}

.supporter-empty,
.supporter-loading {
    grid-column: 1 / -1;

    min-height: 160px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 25px;

    box-sizing: border-box;

    color: #777;

    background: #101010;

    border: 1px dashed #292929;
    border-radius: 13px;

    text-align: center;
}

.supporter-empty i,
.supporter-loading i {
    color: #ffcc00;
    font-size: 24px;
}

.supporter-empty strong {
    color: #d8d8d8;
    font-size: 13px;
}

.supporter-empty span,
.supporter-loading {
    font-size: 11px;
}


@media (max-width: 760px) {

    .supporter-management-form {
        grid-template-columns: 1fr;
    }

    .supporter-add-btn {
        width: 100%;
    }
}


.supporter-avatar > img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center bottom;

    display: block;

    filter:
        drop-shadow(
            0 10px 16px
            rgba(0,0,0,0.28)
        );
}



/* =========================================================
   SUPPORTER RANKING V1
   ========================================================= */

/*
   Masaüstü sıralama:

                1

           2         3

      4      5      6      7

      8      9      10     11
*/

@media (min-width: 1101px) {

    .supporter-grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );

        gap: 18px;
    }

    /*
       1. kart:
       gridde orta iki kolonu kaplar,
       fakat kartın kendisi büyümez.
    */

    .supporter-card.supporter-rank-1 {
        grid-column: 2 / span 2;

        width: calc(
            50% - 9px
        );

        justify-self: center;
    }

    /* 2 ve 3 */

    .supporter-card.supporter-rank-2 {
        grid-column: 2;
    }

    .supporter-card.supporter-rank-3 {
        grid-column: 3;
    }

    /* 4 ile yeni tam sıra başlar */

    .supporter-card.supporter-rank-4 {
        grid-column: 1;
    }

}


/* =========================================================
   DERECE ETİKETLERİ
   ========================================================= */

.supporter-rank-badge {
    position: absolute;

    left: 10px;
    bottom: 7px;

    z-index: 6;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 28px;
    height: 21px;

    padding: 0 7px;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 900;

    line-height: 1;

    pointer-events: none;

    backdrop-filter:
        blur(5px);
}


/* Alt kısımda rank için ufak boşluk */

.supporter-card.supporter-rank-1
.supporter-card-content,

.supporter-card.supporter-rank-2
.supporter-card-content,

.supporter-card.supporter-rank-3
.supporter-card-content,

.supporter-card.supporter-rank-4
.supporter-card-content,

.supporter-card.supporter-rank-5
.supporter-card-content {
    padding-bottom: 34px;
}


/* 1. */

.supporter-rank-badge-1 {
    min-width: 36px;
    height: 25px;

    color: #111;

    background:
        linear-gradient(
            135deg,
            #fff2a8,
            #ffcc00,
            #c99800
        );

    border:
        1px solid
        rgba(255, 225, 90, 0.85);

    font-size: 12px;

    box-shadow:
        0 0 16px
        rgba(255, 204, 0, 0.25);
}

.supporter-card.supporter-rank-1 {
    border-color:
        rgba(
            255,
            204,
            0,
            0.36
        );

    box-shadow:
        0 0 25px
        rgba(
            255,
            204,
            0,
            0.055
        );
}


/* 2. */

.supporter-rank-badge-2 {
    color: #111;

    background:
        linear-gradient(
            135deg,
            #f5f5f5,
            #bdbdbd
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.45
        );
}


/* 3. */

.supporter-rank-badge-3 {
    color: #160d05;

    background:
        linear-gradient(
            135deg,
            #e4a66b,
            #9c6136
        );

    border:
        1px solid
        rgba(
            225,
            154,
            91,
            0.55
        );
}


/* 4 ve 5 daha sade */

.supporter-rank-badge-4,
.supporter-rank-badge-5 {
    min-width: 24px;
    height: 18px;

    padding: 0 6px;

    color: #ffcc00;

    background:
        rgba(
            15,
            15,
            15,
            0.9
        );

    border:
        1px solid
        rgba(
            255,
            204,
            0,
            0.22
        );

    font-size: 9px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (
    min-width: 561px
)
and (
    max-width: 1100px
) {

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

    .supporter-card.supporter-rank-1 {
        grid-column: 1 / -1;

        width: calc(
            50% - 9px
        );

        justify-self: center;
    }

}


/* =========================================================
   TELEFON
   ========================================================= */

@media (max-width: 560px) {

    .supporter-card.supporter-rank-1 {
        width: 100%;
    }

}

/* =========================================================
   SUPPORTER RANK BADGE - ÜST ORTA
   ========================================================= */

.supporter-rank-badge {
    left: 50% !important;
    right: auto !important;
    top: 10px !important;
    bottom: auto !important;

    transform: translateX(-50%);

    min-width: 30px;
    height: 22px;

    padding: 0 8px;

    border-radius: 7px;

    font-size: 10px;
    font-weight: 900;

    z-index: 10;
}

/* 1. daha belirgin */

.supporter-rank-badge-1 {
    min-width: 42px;
    height: 27px;

    font-size: 13px;

    box-shadow:
        0 0 18px rgba(255, 204, 0, 0.38);
}

/* 2 ve 3 */

.supporter-rank-badge-2,
.supporter-rank-badge-3 {
    min-width: 36px;
    height: 24px;

    font-size: 11px;
}

/* 4 ve 5 ufak */

.supporter-rank-badge-4,
.supporter-rank-badge-5 {
    min-width: 28px;
    height: 20px;

    font-size: 9px;
}

/* Altta artık rank olmadığı için eski ekstra boşluğu kaldır */

.supporter-card.supporter-rank-1 .supporter-card-content,
.supporter-card.supporter-rank-2 .supporter-card-content,
.supporter-card.supporter-rank-3 .supporter-card-content,
.supporter-card.supporter-rank-4 .supporter-card-content,
.supporter-card.supporter-rank-5 .supporter-card-content {
    padding-bottom: 20px;
}


/* =========================================================
   SUPPORTER RANK BADGE - SOL ÜST
   ========================================================= */

.supporter-rank-badge {
    left: 10px !important;
    right: auto !important;
    top: 10px !important;
    bottom: auto !important;

    transform: none !important;
}

/* 1. biraz daha belirgin */

.supporter-rank-badge-1 {
    min-width: 42px;
    height: 27px;
    font-size: 13px;
}

/* 2 ve 3 */

.supporter-rank-badge-2,
.supporter-rank-badge-3 {
    min-width: 36px;
    height: 24px;
    font-size: 11px;
}

/* 4 ve 5 daha küçük */

.supporter-rank-badge-4,
.supporter-rank-badge-5 {
    min-width: 28px;
    height: 20px;
    font-size: 9px;
}

