/* ==========================================================
   TOKYO POSTBIT
========================================================== */

.tokyopost {
display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  width: 100%;
  margin: 28px 0;
  border: 1px solid var(--line1);
  background-image: var(--texture);
  background-color: var(--accent1);
}


/* ==========================================================
   LEFT SIDE
========================================================== */

.tokyopost-user {
    border-right: 1px solid var(--line1);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.015),
            transparent
        ),
        var(--accent1);
}


/* AVATAR */

.tokyopost-avatar {
    position: relative;

    height: 330px;

    overflow: hidden;
}


.tokyopost-avatar img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        brightness(.82)
        saturate(.8);
	border-bottom: 1px solid var(--line1);
}


.tokyopost-avatar::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(5,10,16,.5)
        );
}


/* ONLINE */

.tokyopost-online {
    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 3;

    padding: 4px 8px;

    background: #3b8195;

    color: #fff;

    font-family: var(--tp-data);

    font-size: 10px;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* USER BODY */

.tokyopost-userbody {
    padding: 18px 20px 20px;
}


/* NAME */

.tokyopost-name {
    color: var(--accent2);

    text-align: center;

    font-family: var(--mainfont);

    font-size: 24px;
    font-weight: 500;

    letter-spacing: 4px;

    text-transform: uppercase;
}


.tokyopost-name a {
    color: inherit;

    text-decoration: none;
}


.tokyopost-name-jp {
    margin-top: 2px;

    text-align: center;

    color: var(--accent2);

    font-family: 'Noto Sans JP', sans-serif;

    font-size: 15px;

    letter-spacing: 5px;
}


/* META */

.tokyopost-meta {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 14px;

    color: #a4abb2;

    font-family: 'Rajdhani', sans-serif;

    font-size: 11px;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.tokyopost-meta i {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: var(--accent2);
}


.tokyopost-place {
    margin-top: 8px;

    text-align: center;

    color: #78838c;

    font-family: 'Rajdhani', sans-serif;

    font-size: 11px;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}


/* DIVIDER */

.tokyopost-divider {
    height: 1px;

    margin: 18px 0;

    background: var(--line1);
}


/* QUOTE */

.tokyopost-quote {
    text-align: center;
}


.tokyopost-quote-jp {
   font-size: 11px;
  line-height: 170%;
  text-align: justify;
  height: 100px;
  overflow: auto;
}

/* STATS */

.tokyopost-stats {
    display: flex;

    justify-content: space-evenly;

    align-items: center;
}


.tokyopost-stat {
    display: flex;

    align-items: center;

    gap: 6px;

    font-family:var(--tp-data);

    font-size: 12px;
}


.tokyopost-stat i {
    font-size: 17px;
}


/* USER ICONS */

.tokyopost-usericons {
    display: flex;

    justify-content: center;

    gap: 18px;
}


.tokyopost-usericons a {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    color: #a7adb2;

    text-decoration: none;

    transition: .2s ease;
}


.tokyopost-usericons a:hover {
    color: var(--accent2);
}


.tokyopost-usericons i {
    font-size: 17px;
}


.tokyopost-mp {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    border: 1px solid #707980;

    font-family: 'Rajdhani', sans-serif;

    font-size: 9px;
}


/* ==========================================================
   RIGHT SIDE
========================================================== */

.tokyopost-main {
    min-width: 0;

    position: relative;
}


/* ==========================================================
   TOP BAR
========================================================== */

.tokyopost-topbar {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    min-height: 50px;

    padding: 0 26px;

    border-bottom: 1px solid var(--line1);
}


.tokyopost-posted {
    display: flex;

    align-items: center;

    gap: 7px;

    font-family: 'Rajdhani', sans-serif;

    font-size: 10px;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.tokyopost-posted > span {
    color: #7d8790;
}


.tokyopost-posted strong {
    color: var(--accent2);

    font-weight: 500;
}


.tokyopost-posted i {
    margin-right: 4px;
}


/* POST INFO */

.tokyopost-postinfo {
    display: flex;

    align-items: center;

    gap: 18px;

    color: #a4abb1;

    font-family: 'Rajdhani', sans-serif;

    font-size: 10px;

    letter-spacing: .7px;

    text-transform: uppercase;
}


.tokyopost-postinfo a {
    color: inherit;

    text-decoration: none;
}


.tokyopost-number {
    color: var(--accent2) !important;

    font-weight: 600;
}


.tokyopost-share,
.tokyopost-save {
    font-size: 14px;
}


.tokyopost-share:hover,
.tokyopost-save:hover {
    color: var(--accent2);
}


/* ==========================================================
   CONTENT
========================================================== */

.tokyopost-content {
    padding: 24px 32px;
}


/* HEADLINE */

.tokyopost-headline {
    margin-bottom: 20px;

    color: #e0e3e6;

    font-family: 'Noto Sans JP', sans-serif;

    font-size: 19px;

    letter-spacing: 1px;
}


/* MESSAGE */

.tokyopost-message {
    min-height: 260px;

    font-size: 12px;

    line-height: 2;

    text-align: justify;
}


.tokyopost-message p {
    margin: 0 0 18px;
}


.tokyopost-message a {
    color: var(--accent2);

    text-decoration: none;
}


.tokyopost-message strong {
    color: #d7dadd;
}


/* ==========================================================
   SCENE AREA
========================================================== */

.tokyopost-scene {
    display: grid;

    grid-template-columns: minmax(0,1fr) 135px;

    gap: 22px;

    margin-top: 28px;

    padding-top: 24px;

    border-top: 1px solid var(--line1);
}


.tokyopost-scene-image {
    position: relative;

    overflow: hidden;

    height: 170px;
}


.tokyopost-scene-image::before {
    content: "";

    position: absolute;

    top: 0;
    left: 36px;

    z-index: 2;

    width: 50px;
    height: 2px;

    background: var(--accent2);
}


.tokyopost-scene-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        brightness(.75)
        saturate(.85);
}


/* SCENE INFO */

.tokyopost-scene-info {
    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 16px;
}


.tokyopost-scene-info div {
    display: flex;

    flex-direction: column;
}


.tokyopost-scene-info span {
    margin-bottom: 3px;

    color: #66717b;

    font-family: 'Rajdhani', sans-serif;

    font-size: 9px;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.tokyopost-scene-info strong {
    color: #c2c7cb;

    font-family: 'Rajdhani', sans-serif;

    font-size: 11px;

    font-weight: 500;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.tokyopost-scene-info small {
    color: #5e6973;

    font-family: 'Rajdhani', sans-serif;

    font-size: 9px;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* ==========================================================
   BOTTOM QUOTE
========================================================== */

.tokyopost-bottomquote {
    margin-top: 24px;

    padding-top: 18px;

    border-top: 1px solid var(--line1);
}


.tokyopost-bottomquote div {
    color: #7d858c;
text-transform:uppercase;
    font-family: var(--tp-data);

    font-size: 10px;
}


.tokyopost-bottomquote span {
    display: block;

    margin-top: 2px;

    color: #59636d;

    font-family: 'Rajdhani', sans-serif;

    font-size: 9px;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* ==========================================================
   EDIT + SIGNATURE
========================================================== */

.tokyopost-edited {
    padding: 0 32px;

    color: #59626a;

    font-size: 9px;
}


/* ==========================================================
   ACTIONS
========================================================== */

.tokyopost-actions {
    display: flex;

    justify-content: flex-end;
    align-items: center;

    gap: 0;

    margin: 0 32px;

    padding: 16px 0;
}


.tokyopost-actions > div {
    padding: 0 18px;

    border-right: 1px solid var(--line1);
}


.tokyopost-actions > div:last-child {
    padding-right: 0;

    border-right: 0;
}


.tokyopost-actions a {
    color: #a7adb2;

    text-decoration: none;

    font-family: 'Rajdhani', sans-serif;

    font-size: 10px;

    letter-spacing: 1px;

    text-transform: uppercase;

    transition: .2s ease;
}


.tokyopost-actions a:hover {
    color: var(--accent2);
}


/* ==========================================================
   MYBB BUTTON IMAGES
========================================================== */

.tokyopost-actions img {
    vertical-align: middle;

    opacity: .7;

    transition: opacity .2s ease;
}


.tokyopost-actions a:hover img {
    opacity: 1;
}


/* ==========================================================
   STAFF VARIANT
========================================================== */

.tokyopost.staff {
    border-color: rgba(235, 52, 100, .65);
}


.tokyopost.staff .tokyopost-user {
    box-shadow:
        inset 0 0 0 1px rgba(235,52,100,.45);
}


.tokyopost.staff .tokyopost-avatar::before {
    content: "STAFF";

    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 4;

    padding: 4px 9px;

    background: var(--accent2);

    color: white;

    font-family: 'Rajdhani', sans-serif;

    font-size: 9px;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* Online verstecken, wenn Staff */

.tokyopost.staff .tokyopost-online {
    display: none;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 850px) {

    .tokyopost {
        grid-template-columns: 235px minmax(0,1fr);
    }

    .tokyopost-avatar {
        height: 300px;
    }

    .tokyopost-content {
        padding: 22px;
    }

    .tokyopost-topbar {
        padding-left: 22px;
        padding-right: 22px;
    }

}


@media (max-width: 680px) {

    .tokyopost {
        grid-template-columns: 1fr;
    }


    .tokyopost-user {
        border-right: 0;

        border-bottom: 1px solid var(--line1);
    }


    .tokyopost-avatar {
        height: 480px;
    }


    .tokyopost-topbar {
        align-items: flex-start;

        flex-direction: column;

        padding-top: 14px;
        padding-bottom: 14px;
    }


    .tokyopost-postinfo {
        flex-wrap: wrap;
    }


    .tokyopost-scene {
        grid-template-columns: 1fr;
    }


    .tokyopost-scene-info {
        display: grid;

        grid-template-columns: repeat(3,1fr);
    }

}


@media (max-width: 450px) {

    .tokyopost-avatar {
        height: 400px;
    }


    .tokyopost-content {
        padding: 18px;
    }


    .tokyopost-scene-info {
        grid-template-columns: 1fr;
    }


    .tokyopost-actions {
        justify-content: flex-start;

        flex-wrap: wrap;

        gap: 12px;

        margin: 0 18px;
    }


    .tokyopost-actions > div {
        padding: 0;

        border-right: 0;
    }

}