/*
 * GotGameHub Notification Center
 */

.ggh-notification-center {
    width: 100%;
    max-width: 900px;
}

.ggh-notification-center__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.ggh-notification-center__heading h2 {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.2;
}

.ggh-notification-summary {
    margin: 0;
    color: #737b86;
    font-size: 15px;
}

.ggh-notification-list {
    overflow: hidden;
    border: 1px solid #e2e5e9;
    border-radius: 12px;
    background: #fff;
}

.ggh-notification-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    padding: 18px 20px;
    border-bottom: 1px solid #e8eaed;
    background: #fff;
}

.ggh-notification-item:last-child {
    border-bottom: 0;
}

.ggh-notification-item--unread {
    background: #f7fafc;
}

.ggh-notification-item--unread::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: #343b45;
    content: "";
}

.ggh-notification-item__icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eef1f4;
    color: #343b45;
    font-size: 19px;
    font-weight: 700;
}

.ggh-notification-item--unread
.ggh-notification-item__icon {
    background: #e5ebf0;
}

.ggh-notification-item__body {
    min-width: 0;
    flex: 1 1 auto;
}

.ggh-notification-item__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: #17202a;
    font-size: 16px;
    line-height: 1.35;
}

.ggh-notification-item__title strong {
    font-weight: 700;
}

.ggh-notification-unread-dot {
    display: inline-block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #343b45;
}

.ggh-notification-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
    color: #7b838c;
    font-size: 13px;
    line-height: 1.4;
}

.ggh-notification-item__meta span + span::before {
    margin-right: 10px;
    color: #bcc1c7;
    content: "•";
}

.ggh-notification-item__action {
    flex: 0 0 auto;
}

.ggh-notification-read-toggle {
    min-width: 112px;
    border-radius: 6px !important;
}

.ggh-notification-empty {
    padding: 36px 24px;
    border: 1px solid #e2e5e9;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.ggh-notification-empty p {
    margin: 0;
    color: #737b86;
}

.ggh-notification-mark-all {
    border: 0;
    background: transparent;
    color: #278dcc;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    padding: 4px 0;
}

.ggh-notification-mark-all:hover,
.ggh-notification-mark-all:focus {
    text-decoration: underline;
}

@media (max-width: 700px) {

    .ggh-notification-center__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .ggh-notification-item {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 17px 16px;
    }

    .ggh-notification-item__icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .ggh-notification-item__body {
        width: calc(100% - 54px);
    }

    .ggh-notification-item__action {
        width: 100%;
        padding-left: 54px;
    }

    .ggh-notification-read-toggle {
        width: 100%;
    }
}

.ggh-notification-link {
    color: inherit;
    text-decoration: none;
}

.ggh-notification-link:hover,
.ggh-notification-link:focus {
    color: inherit;
    text-decoration: underline;
}

/*
 * Notification Center refinement
 */

.ggh-notification-center__header {
    display: block;
    margin-bottom: 20px;
}

.ggh-notification-center__header h2 {
    margin: 0 0 8px;
}

.ggh-notification-summary {
    display: inline-block;
    margin: 0 18px 0 0;
}

.ggh-notification-center__actions {
    display: inline-block;
}

.ggh-notification-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

.ggh-notification-tab {
    appearance: none;
    border: 1px solid #d6d9dd;
    border-radius: 4px;
    background: #eeeeee;
    color: #333333;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    padding: 11px 18px;
}

.ggh-notification-tab:hover,
.ggh-notification-tab:focus {
    border-color: #c4c8cc;
    background: #e4e4e4;
}

.ggh-notification-tab.is-active {
    border-color: #bfc3c7;
    background: #d8d8d8;
    color: #111111;
    font-weight: 600;
}

.ggh-notification-item {
    min-height: 0;
    padding: 16px 18px;
}

.ggh-notification-item__meta {
    margin-top: 4px;
}

.ggh-notification-item__meta span {
    white-space: nowrap;
}

.ggh-notification-filter-empty {
    margin-top: 14px;
    padding: 24px;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.ggh-notification-filter-empty p {
    margin: 0;
    color: #737b86;
}

@media (max-width: 600px) {

    .ggh-notification-summary,
    .ggh-notification-center__actions {
        display: block;
    }

    .ggh-notification-center__actions {
        margin-top: 8px;
    }

    .ggh-notification-tabs {
        gap: 7px;
    }

    .ggh-notification-tab {
        flex: 1 1 0;
        padding: 10px 12px;
    }
}

/*
 * Final Notification Center row refinement
 */

.ggh-notification-item {
    gap: 14px;
    padding: 17px 20px;
}

.ggh-notification-item__title {
    margin-bottom: 6px;
    font-size: 17px;
}

.ggh-notification-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 0;
    font-size: 14px;
}

.ggh-notification-item__meta span {
    white-space: nowrap;
}

.ggh-notification-read-toggle.button {
    min-width: auto;
    padding: 8px 13px;
    border: 1px solid #d4d8dc;
    border-radius: 4px !important;
    background: #f1f1f1;
    color: #333;
    box-shadow: none;
    font-size: 13px;
    line-height: 1.2;
}

.ggh-notification-read-toggle.button:hover,
.ggh-notification-read-toggle.button:focus {
    border-color: #c3c7cb;
    background: #e4e4e4;
    color: #111;
}

.ggh-notification-mark-all {
    color: #278dcc;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 600px) {

    .ggh-notification-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 16px;
    }

    .ggh-notification-item__body {
        width: auto;
    }

    .ggh-notification-item__action {
        width: auto;
        padding-left: 0;
    }

    .ggh-notification-read-toggle.button {
        width: auto;
    }
}

/*
 * Prevent notification titles/content from
 * colliding with read/unread controls.
 */
.ggh-notification-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 24px;
}

.ggh-notification-item__body {
    min-width: 0;
}

.ggh-notification-item__title {
    min-width: 0;
    padding-right: 4px;
}

.ggh-notification-item__action {
    align-self: center;
    flex: none;
}

.ggh-notification-read-toggle.button {
    width: auto;
    min-width: 96px;
    white-space: nowrap;
    padding: 8px 12px;
}

@media (max-width: 520px) {

    .ggh-notification-item {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .ggh-notification-item__action {
        justify-self: start;
    }

    .ggh-notification-read-toggle.button {
        min-width: 0;
    }
}

/* Remove metadata separator that can wrap onto its own line. */
.ggh-notification-item__meta span + span::before {
    display: none;
}

.ggh-notification-item__meta {
    column-gap: 12px;
}

/*
 * Notification card layout:
 * full-width title with metadata/action footer.
 */
.ggh-notification-item {
    display: block;
    padding: 20px 24px;
}

.ggh-notification-item__body {
    width: 100%;
    min-width: 0;
}

.ggh-notification-item__title {
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    font-size: 18px;
    line-height: 1.35;
}

.ggh-notification-link {
    min-width: 0;
}

.ggh-notification-item__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.ggh-notification-item__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
}

.ggh-notification-item__action {
    flex: 0 0 auto;
    align-self: flex-end;
    padding: 0;
}

.ggh-notification-read-toggle.button {
    width: auto;
    min-width: 112px;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .ggh-notification-item {
        display: block;
        padding: 18px;
    }

    .ggh-notification-item__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .ggh-notification-item__action {
        align-self: flex-start;
    }
}

/*
 * Align notification action with bottom/date row.
 */
.ggh-notification-item__footer {
    align-items: flex-end;
}

.ggh-notification-item__action {
    align-self: flex-end;
    margin-bottom: 0;
}

@media (max-width: 520px) {
    .ggh-notification-item__footer {
        align-items: flex-start;
    }

    .ggh-notification-item__action {
        align-self: flex-start;
    }
}
