/* V3.7.3 - Calendar and community layout hotfix */

/* Açılış takvimi özet rozetleri */
.calendar-summary {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
}

.calendar-summary > span {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.calendar-summary > span strong {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 28px !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 16px !important;
    vertical-align: middle !important;
    position: static !important;
}

/* Topluluk kartları - konu listesi */
.community-hub-page .community-hub-feed {
    gap: 16px !important;
}

.community-hub-page .community-topic-row {
    grid-template-columns: 126px minmax(0, 1fr) 118px !important;
    grid-template-rows: minmax(104px, auto) auto !important;
    grid-template-areas: "thumb content metrics" "thumb footer metrics" !important;
    gap: 0 18px !important;
    min-height: 156px !important;
    padding: 14px 16px 14px 14px !important;
    align-items: stretch !important;
}

.community-hub-page .community-topic-row__content {
    min-width: 0 !important;
    padding-bottom: 10px !important;
}

.community-hub-page .community-topic-row__content > p {
    -webkit-line-clamp: 2 !important;
}

.community-hub-page .community-topic-row__metrics {
    grid-area: metrics !important;
    display: grid !important;
    align-content: center !important;
    gap: 0 !important;
    min-width: 0 !important;
    padding: 5px 0 5px 18px !important;
    border-left: 1px solid rgba(255,255,255,.06) !important;
}

.community-hub-page .community-topic-row__metrics span {
    display: grid !important;
    grid-template-columns: 22px 1fr !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 1px 8px !important;
    padding: 11px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.045) !important;
}

.community-hub-page .community-topic-row__metrics span:last-child {
    border-bottom: 0 !important;
}

.community-hub-page .community-topic-row__metrics i {
    grid-row: 1 / 3 !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 9px !important;
}

.community-hub-page .community-topic-row__metrics b {
    font-size: 12px !important;
    line-height: 1.1 !important;
}

.community-hub-page .community-topic-row__metrics small {
    margin-top: 0 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
}

.community-hub-page .community-topic-row__footer {
    grid-area: footer !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    padding-top: 11px !important;
}

.community-hub-page .community-topic-row__author {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}

.community-hub-page .community-topic-row__avatar {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
}

.community-hub-page .community-topic-row__author-copy {
    display: grid !important;
    align-items: start !important;
    gap: 6px !important;
    min-width: 0 !important;
}

.community-hub-page .community-topic-row__author-main {
    display: block !important;
    min-width: 0 !important;
}

.community-hub-page .community-topic-row__author-main b {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 13px !important;
}

.community-hub-page .community-topic-row__author-chips {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.community-hub-page .community-topic-row__author-copy em {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 24px !important;
    padding: 0 10px !important;
    font-size: 10px !important;
    margin: 0 !important;
}

.community-hub-page .community-topic-row__author-chips .progression-rank-mark,
.community-hub-page .community-topic-row__author-chips .progression-rank-mark--compact,
.community-hub-page .community-topic-row .progression-rank-mark--compact {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 1px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    flex: 0 0 auto !important;
}

.community-hub-page .community-topic-row__author-chips .progression-rank-mark__symbol,
.community-hub-page .community-topic-row .progression-rank-mark__symbol {
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    border-radius: 50% !important;
}

.community-hub-page .community-topic-row__author-chips .progression-rank-mark__symbol img,
.community-hub-page .community-topic-row .progression-rank-mark__symbol img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 50% !important;
}

.community-hub-page .community-topic-row__footer-meta {
    display: grid !important;
    gap: 2px !important;
    margin-left: 0 !important;
    padding-left: 14px !important;
}

.community-hub-page .community-topic-row__footer-meta span {
    font-size: 10px !important;
}

.community-hub-page .community-topic-row__footer-meta small {
    font-size: 9px !important;
}

.community-hub-page .community-topic-row__open {
    min-height: 36px !important;
    padding: 0 13px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
}

/* Topluluk liderleri yan paneli */
.community-hub-page .community-hub-leaders li {
    grid-template-columns: 26px 34px minmax(0, 1fr) !important;
    gap: 10px !important;
    min-height: 58px !important;
    padding: 10px 0 !important;
}

.community-hub-page .community-hub-leaders li > strong {
    display: none !important;
}

.community-hub-page .community-hub-leaders li > .progression-rank-mark,
.community-hub-page .community-hub-leaders .progression-rank-mark--compact {
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    padding: 1px !important;
    border-radius: 50% !important;
    justify-self: center !important;
}

.community-hub-page .community-hub-leaders .progression-rank-mark__symbol {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    border-radius: 50% !important;
}

.community-hub-page .community-hub-leaders .progression-rank-mark__symbol img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 50% !important;
}

.community-hub-page .community-hub-leader-avatar {
    width: 34px !important;
    height: 34px !important;
    font-size: 11px !important;
}

.community-hub-page .community-hub-leaders li > a {
    gap: 3px !important;
}

.community-hub-page .community-hub-leaders li > a b {
    font-size: 13px !important;
}

.community-hub-page .community-hub-leaders li > a small {
    font-size: 10px !important;
}

@media (max-width: 900px) {
    .community-hub-page .community-topic-row {
        grid-template-columns: 92px minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
        grid-template-areas:
            "thumb content"
            "footer footer"
            "metrics metrics" !important;
        gap: 0 14px !important;
        min-height: 0 !important;
        padding: 12px !important;
    }

    .community-hub-page .community-topic-row__footer {
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        margin-top: 10px !important;
    }

    .community-hub-page .community-topic-row__metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0 !important;
        margin-top: 12px !important;
        padding: 10px 0 0 !important;
        border-top: 1px solid rgba(255,255,255,.055) !important;
        border-left: 0 !important;
    }

    .community-hub-page .community-topic-row__metrics span {
        justify-content: center !important;
        border-right: 1px solid rgba(255,255,255,.045) !important;
        border-bottom: 0 !important;
        padding: 3px 10px !important;
    }

    .community-hub-page .community-topic-row__metrics span:last-child {
        border-right: 0 !important;
    }
}

@media (max-width: 640px) {
    .calendar-summary {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .calendar-summary > span {
        width: 100% !important;
        justify-content: center !important;
    }

    .community-hub-page .community-topic-row {
        grid-template-columns: 82px minmax(0, 1fr) !important;
        grid-template-areas:
            "thumb content"
            "footer footer"
            "metrics metrics" !important;
        gap: 0 12px !important;
        padding: 11px !important;
    }

    .community-hub-page .community-topic-row__thumb,
    .community-hub-page .community-topic-row__thumb img {
        min-height: 94px !important;
        max-height: 112px !important;
    }

    .community-hub-page .community-topic-row__content > p {
        -webkit-line-clamp: 3 !important;
        font-size: 13px !important;
    }

    .community-hub-page .community-topic-row__footer {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .community-hub-page .community-topic-row__footer-meta {
        display: none !important;
    }

    .community-hub-page .community-topic-row__open {
        width: 100% !important;
        justify-content: center !important;
    }

    .community-hub-page .community-topic-row__metrics {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }

    .community-hub-page .community-topic-row__metrics span {
        grid-template-columns: 20px 1fr !important;
        justify-content: start !important;
        border-right: 0 !important;
        padding: 3px 0 !important;
    }

    .community-hub-page .community-hub-leaders li {
        grid-template-columns: 24px 30px minmax(0, 1fr) !important;
        gap: 9px !important;
    }
}
