﻿/* =========================================================
   Gedian Sports - Player Home Content / Articles
========================================================= */

.player-content-section {
    overflow: hidden;
}

.player-article-list {
    display: grid;
    gap: 11px;
}

.player-article-card {
    padding: 16px;
    border: 1px solid #e5e9e3;
    border-radius: 13px;
    background: #fff;
}

.article-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .article-card-heading > div:first-child {
        min-width: 0;
    }

        .article-card-heading > div:first-child > span {
            display: block;
            color: #5b8c3b;
            font-size: .63rem;
            font-weight: 900;
        }

    .article-card-heading h3 {
        margin: 3px 0 0;
        color: #172033;
        font-size: .9rem;
        font-weight: 900;
        line-height: 1.6;
    }

.article-statuses {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.content-status {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .59rem;
    font-weight: 900;
}

    .content-status.approved {
        color: #236236;
        background: #e1f3e4;
    }

    .content-status.pending {
        color: #876513;
        background: #fff3c9;
    }

    .content-status.public {
        color: #235b90;
        background: #e5f0fb;
    }

    .content-status.private {
        color: #66717d;
        background: #eef0f2;
    }

.player-article-card > p {
    margin: 10px 0 0;
    color: #596474;
    font-size: .76rem;
    line-height: 1.8;
    white-space: pre-line;
}

.article-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin-top: 10px;
    color: #8b949e;
    font-size: .64rem;
}

.article-owner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eef0ec;
}

    .article-owner-actions form {
        margin: 0;
    }

    .article-owner-actions .btn {
        min-width: 65px;
        border-radius: 8px;
        font-size: .68rem;
        font-weight: 800;
    }

.article-edit-data {
    display: none !important;
}

.article-modal-note {
    margin-bottom: 16px;
    padding: 11px 13px;
    color: #48613b;
    background: #f1f7ed;
    border: 1px solid #d9e9d0;
    border-radius: 10px;
    font-size: .75rem;
    line-height: 1.7;
}

.article-modal-form .form-label {
    color: #4d5866;
    font-size: .75rem;
    font-weight: 800;
}

.article-modal-form .form-control,
.article-modal-form .form-select {
    border-color: #dfe4de;
    border-radius: 9px;
    font-size: .8rem;
}

    .article-modal-form .form-control:focus,
    .article-modal-form .form-select:focus {
        border-color: #8daf75;
        box-shadow: 0 0 0 .2rem rgba(91,140,59,.12);
    }

/* =========================================================
   Scrollable Add/Edit Article modal
========================================================= */

.article-scrollable-dialog {
    width: calc(100% - 1rem);
    max-width: 850px;
    height: calc(100vh - 1rem);
    height: calc(100dvh - 1rem);
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
    margin: .5rem auto;
}

    .article-scrollable-dialog .article-modal-form {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
        border: 0;
        border-radius: 18px;
    }

    .article-scrollable-dialog .modal-header {
        flex: 0 0 auto;
        border-color: #e5e7eb;
    }

    .article-scrollable-dialog .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding-bottom: 35px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
    }

    .article-scrollable-dialog .modal-footer {
        flex: 0 0 auto;
        position: relative;
        z-index: 2;
        background: #fff;
        border-top: 1px solid #e5e7eb;
    }

    .article-scrollable-dialog .modal-body::-webkit-scrollbar {
        width: 8px;
    }

    .article-scrollable-dialog .modal-body::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

    .article-scrollable-dialog .modal-body::-webkit-scrollbar-thumb {
        background: #b7c3b0;
        border-radius: 999px;
    }

        .article-scrollable-dialog .modal-body::-webkit-scrollbar-thumb:hover {
            background: #8ca47f;
        }

@media (max-width: 767.98px) {
    .article-card-heading {
        flex-direction: column;
    }

    .article-statuses {
        justify-content: flex-start;
    }

    .article-owner-actions {
        justify-content: flex-start;
    }

    .article-scrollable-dialog {
        width: calc(100% - .5rem);
        height: calc(100vh - .5rem);
        height: calc(100dvh - .5rem);
        max-height: calc(100vh - .5rem);
        max-height: calc(100dvh - .5rem);
        margin: .25rem auto;
    }

        .article-scrollable-dialog .article-modal-form {
            border-radius: 14px;
        }

        .article-scrollable-dialog .modal-header {
            padding: 13px 15px;
        }

        .article-scrollable-dialog .modal-body {
            padding: 15px 15px 45px;
        }

        .article-scrollable-dialog .modal-footer {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            padding: 11px 15px;
        }

            .article-scrollable-dialog .modal-footer .btn {
                width: 100%;
                margin: 0;
            }
}
