/* =========================================================
   CSI - DISCORD CANLI DUYURULAR V2
   SABIT PANEL + IC SCROLL
   ========================================================= */

.discord-announcements-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;

    padding:
        55px 24px
        65px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(88, 101, 242, 0.09),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            #11131d 0%,
            #101116 100%
        );

    border-top:
        3px solid
        rgba(255, 198, 0, 0.95);
}


/* =========================================================
   BASLIK
   ========================================================= */

.discord-announcements-header {
    width: 100%;
    max-width: 1100px;

    margin:
        0 auto
        30px;

    text-align: center;
}

.discord-announcements-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-bottom: 13px;

    padding:
        7px
        15px;

    border:
        1px solid
        rgba(88, 101, 242, 0.55);

    border-radius: 999px;

    background:
        rgba(88, 101, 242, 0.13);

    color: #9ca6ff;

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

    letter-spacing: 1.3px;
}

.discord-announcements-header h2 {
    margin: 0;

    color: #ffffff;

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

    letter-spacing: -0.7px;
}

.discord-announcements-header p {
    margin:
        9px 0
        0;

    color:
        rgba(
            255,
            255,
            255,
            0.58
        );

    font-size: 14px;
}


/* =========================================================
   ANA DISCORD KUTUSU
   ========================================================= */

.discord-announcements-shell {
    width: 100%;
    max-width: 1180px;

    /*
        EN ONEMLI KISIM:
        Discord duyuruları artık sayfayı uzatmıyor.
    */
    height: 650px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.13
        );

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #101116,
            #0b0c10
        );

    box-shadow:
        0 24px 70px
        rgba(
            0,
            0,
            0,
            0.35
        );
}


/* =========================================================
   KANAL BASLIGI
   ========================================================= */

.discord-announcements-toolbar {
    position: relative;
    z-index: 4;

    flex: 0 0 auto;

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

    gap: 15px;

    padding:
        17px
        21px;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.09
        );

    background:
        rgba(
            15,
            16,
            20,
            0.97
        );

    box-shadow:
        0 8px 20px
        rgba(
            0,
            0,
            0,
            0.12
        );
}

.discord-announcements-channel {
    display: flex;
    align-items: center;

    gap: 12px;
}

.discord-channel-icon {
    flex: 0 0 43px;

    width: 43px;
    height: 43px;

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

    border-radius: 12px;

    background:
        rgba(
            88,
            101,
            242,
            0.14
        );

    color: #8995ff;

    font-size: 18px;
}

.discord-announcements-channel strong,
.discord-announcements-channel small {
    display: block;
}

.discord-announcements-channel strong {
    color: #ffffff;

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

.discord-announcements-channel small {
    margin-top: 3px;

    color:
        rgba(
            255,
            255,
            255,
            0.42
        );

    font-size: 11px;
}


/* =========================================================
   CANLI BADGE
   ========================================================= */

.discord-live-badge {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding:
        7px
        12px;

    border:
        1px solid
        rgba(
            35,
            199,
            105,
            0.35
        );

    border-radius: 999px;

    background:
        rgba(
            35,
            199,
            105,
            0.10
        );

    color: #46df88;

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

    letter-spacing: 0.7px;
}

.discord-live-badge span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        currentColor;

    box-shadow:
        0 0 10px
        currentColor;
}


/* =========================================================
   MESAJ LISTESI
   BURASI SCROLL OLACAK
   ========================================================= */

.discord-announcements-list {
    position: relative;

    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    scroll-behavior: smooth;

    padding:
        12px
        12px
        14px
        12px;

    scrollbar-width: thin;
    scrollbar-color:
        #e6b800
        rgba(
            255,
            255,
            255,
            0.045
        );
}


/* CHROME / OPERA / EDGE SCROLLBAR */

.discord-announcements-list::-webkit-scrollbar {
    width: 10px;
}

.discord-announcements-list::-webkit-scrollbar-track {
    margin:
        8px
        0;

    border-radius: 999px;

    background:
        rgba(
            255,
            255,
            255,
            0.035
        );
}

.discord-announcements-list::-webkit-scrollbar-thumb {
    min-height: 50px;

    border:
        2px solid
        transparent;

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            #ffd43b,
            #d8a900
        );

    background-clip:
        padding-box;
}

.discord-announcements-list::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            180deg,
            #ffe066,
            #f1c40f
        );

    background-clip:
        padding-box;
}


/* =========================================================
   TEK MESAJ KARTI
   ========================================================= */

.discord-announcement-card {
    position: relative;

    box-sizing: border-box;

    width: 100%;

    margin-bottom: 12px;

    padding:
        17px
        20px
        18px
        21px;

    overflow: hidden;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.10
        );

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            rgba(
                255,
                255,
                255,
                0.025
            ),
            rgba(
                255,
                255,
                255,
                0.012
            )
        );

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

.discord-announcement-card:last-child {
    margin-bottom: 0;
}

.discord-announcement-card:hover {
    border-color:
        rgba(
            255,
            255,
            255,
            0.17
        );

    background:
        rgba(
            255,
            255,
            255,
            0.035
        );
}


/* =========================================================
   SOL SARI CIZGI
   ========================================================= */

.discord-message-accent {
    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 4px;

    background:
        linear-gradient(
            180deg,
            #ffd31a,
            #dcae00
        );
}

.discord-message-body {
    width: 100%;
}


/* =========================================================
   YAZAR
   ========================================================= */

.discord-message-author {
    display: flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 12px;
}

.discord-author-avatar {
    flex:
        0 0
        42px;

    width: 42px;
    height: 42px;

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

    border-radius: 50%;

    object-fit: cover;
}

.discord-author-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(
            88,
            101,
            242,
            0.16
        );

    color: #9ca6ff;
}

.discord-author-info {
    min-width: 0;
}

.discord-author-name {
    color: #ffffff;

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

.discord-message-date {
    margin-top: 3px;

    color:
        rgba(
            255,
            255,
            255,
            0.38
        );

    font-size: 10px;
}


/* =========================================================
   MESAJ
   ========================================================= */

.discord-message-content {
    max-width: 100%;

    color:
        rgba(
            255,
            255,
            255,
            0.88
        );

    font-size: 14px;

    line-height: 1.65;

    overflow-wrap: anywhere;
    word-break: normal;
}

.discord-message-content strong {
    color: #ffffff;

    font-weight: 850;
}

.discord-message-content em {
    color:
        rgba(
            255,
            255,
            255,
            0.88
        );
}


/* =========================================================
   ATTACHMENT
   ========================================================= */

.discord-attachments,
.discord-embeds {
    display: grid;

    gap: 10px;

    margin-top: 14px;
}

.discord-attachment-image-link {
    display: block;

    width: fit-content;
    max-width: 100%;
}

.discord-attachment-image {
    display: block;

    max-width:
        min(
            100%,
            720px
        );

    max-height: 430px;

    border-radius: 10px;

    object-fit: contain;

    background: #070809;
}

.discord-file-attachment {
    display: flex;
    align-items: center;

    gap: 9px;

    width: fit-content;
    max-width: 100%;

    padding:
        11px
        14px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.09
        );

    border-radius: 9px;

    background:
        rgba(
            255,
            255,
            255,
            0.035
        );

    color: #aeb7ff;

    text-decoration: none;
}


/* =========================================================
   EMBED
   ========================================================= */

.discord-embed {
    max-width: 690px;

    box-sizing: border-box;

    padding:
        14px
        16px;

    border-left:
        4px solid
        #5865f2;

    border-radius:
        4px
        9px
        9px
        4px;

    background:
        rgba(
            255,
            255,
            255,
            0.045
        );
}

.discord-embed-title {
    margin-bottom: 7px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 850;
}

.discord-embed-description {
    color:
        rgba(
            255,
            255,
            255,
            0.78
        );

    font-size: 13px;

    line-height: 1.55;
}

.discord-embed-image {
    display: block;

    max-width: 100%;
    max-height: 390px;

    margin-top: 12px;

    border-radius: 8px;

    object-fit: contain;
}


/* =========================================================
   BOS / LOADING / ERROR
   ========================================================= */

.discord-announcements-loading,
.discord-announcements-error,
.discord-announcements-empty {
    min-height: 100%;

    box-sizing: border-box;

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

    flex-direction: column;

    gap: 10px;

    padding: 35px;

    text-align: center;

    color:
        rgba(
            255,
            255,
            255,
            0.45
        );
}

.discord-announcements-empty i {
    margin-bottom: 3px;

    color: #5865f2;

    font-size: 32px;
}

.discord-announcements-empty strong {
    color:
        rgba(
            255,
            255,
            255,
            0.78
        );
}

.discord-announcements-empty span {
    max-width: 420px;

    font-size: 12px;

    line-height: 1.5;
}

.discord-announcements-error {
    color: #e96c74;
}


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

@media (
    max-width: 1000px
) {

    .discord-announcements-shell {
        height: 600px;
    }

}


/* =========================================================
   MOBIL
   ========================================================= */

@media (
    max-width: 700px
) {

    .discord-announcements-section {
        padding:
            42px
            12px
            50px;
    }

    .discord-announcements-header {
        margin-bottom: 24px;
    }

    .discord-announcements-header h2 {
        font-size: 28px;
    }

    .discord-announcements-header p {
        padding:
            0
            8px;

        font-size: 13px;
    }

    .discord-announcements-shell {
        height: 570px;

        border-radius: 14px;
    }

    .discord-announcements-toolbar {
        padding:
            14px
            15px;
    }

    .discord-channel-icon {
        flex-basis: 39px;

        width: 39px;
        height: 39px;
    }

    .discord-announcements-list {
        padding:
            9px
            8px
            10px;
    }

    .discord-announcement-card {
        margin-bottom: 9px;

        padding:
            15px
            14px
            16px
            17px;

        border-radius: 11px;
    }

    .discord-author-avatar {
        flex-basis: 37px;

        width: 37px;
        height: 37px;
    }

    .discord-message-content {
        font-size: 13px;

        line-height: 1.6;
    }

    .discord-attachment-image {
        max-height: 320px;
    }
}


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

@media (
    max-width: 430px
) {

    .discord-announcements-shell {
        height: 520px;
    }

    .discord-live-badge {
        padding:
            6px
            8px;
    }

}

/* =========================================================
   DISCORD MENTION + MARKDOWN V3
   ========================================================= */

.discord-mention {
    display: inline-flex;
    align-items: center;
    vertical-align: baseline;

    margin:
        1px
        2px;

    padding:
        1px
        5px;

    border-radius: 4px;

    font-weight: 700;

    line-height: 1.35;

    cursor: default;
}

.discord-role-mention,
.discord-user-mention {
    color: #c8cdfd;

    background:
        rgba(
            88,
            101,
            242,
            0.24
        );

    border:
        1px solid
        rgba(
            88,
            101,
            242,
            0.18
        );
}

.discord-role-mention:hover,
.discord-user-mention:hover {
    color: #ffffff;

    background:
        rgba(
            88,
            101,
            242,
            0.72
        );
}

.discord-channel-mention {
    color: #b8c0ff;

    background:
        rgba(
            88,
            101,
            242,
            0.17
        );
}

.discord-everyone-mention {
    color: #cfd3ff;

    background:
        rgba(
            88,
            101,
            242,
            0.24
        );
}

.discord-message-link {
    color: #4da6ff;

    font-weight: 650;

    text-decoration: none;
}

.discord-message-link:hover {
    text-decoration: underline;
}

.discord-md-heading {
    display: block;

    color: #ffffff;

    font-weight: 900;

    line-height: 1.25;
}

.discord-md-h1 {
    margin:
        1px 0
        12px;

    font-size: 20px;
}

.discord-md-h2 {
    margin:
        1px 0
        10px;

    font-size: 18px;
}

.discord-md-h3 {
    margin:
        1px 0
        8px;

    font-size: 16px;
}

.discord-edited-label {
    margin-left: 6px;

    color:
        rgba(
            255,
            255,
            255,
            0.34
        );

    font-size: 9px;
}

/* =========================================================
   DISCORD'A KATIL BUTONU V4
   ========================================================= */

.discord-announcements-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.discord-join-server-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 34px;

    padding:
        7px
        12px;

    border:
        1px solid
        rgba(
            88,
            101,
            242,
            0.58
        );

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            rgba(
                88,
                101,
                242,
                0.24
            ),
            rgba(
                88,
                101,
                242,
                0.11
            )
        );

    color: #cbd0ff;

    text-decoration: none;

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

    transition:
        transform .15s ease,
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

.discord-join-server-btn:hover {
    transform:
        translateY(-1px);

    color: #ffffff;

    border-color:
        rgba(
            113,
            125,
            255,
            0.85
        );

    background:
        linear-gradient(
            135deg,
            rgba(
                88,
                101,
                242,
                0.78
            ),
            rgba(
                71,
                82,
                196,
                0.78
            )
        );

    box-shadow:
        0 8px 22px
        rgba(
            88,
            101,
            242,
            0.20
        );
}

.discord-join-server-btn
.fa-discord {
    font-size: 14px;
}

.discord-join-server-btn
.fa-arrow-up-right-from-square {
    font-size: 9px;
    opacity: .68;
}


/* TABLET */

@media (
    max-width: 800px
) {

    .discord-announcements-toolbar-actions {
        gap: 7px;
    }

    .discord-join-server-btn {
        padding:
            7px
            9px;
    }

}


/* MOBILE */

@media (
    max-width: 600px
) {

    .discord-announcements-toolbar {
        align-items: flex-start;
    }

    .discord-announcements-toolbar-actions {
        flex-direction: column;
        align-items: flex-end;
    }

    .discord-join-server-btn {
        min-height: 31px;

        font-size: 10px;
    }

}


/* KUCUK TELEFON */

@media (
    max-width: 430px
) {

    .discord-join-server-btn span {
        display: none;
    }

    .discord-join-server-btn {
        width: 32px;
        height: 32px;

        padding: 0;
    }

    .discord-join-server-btn
    .fa-arrow-up-right-from-square {
        display: none;
    }

}
