﻿/*Login Form*/
:root {
    /*Size*/
    --l-container-width: 550px;
    --l-container-height: 100%;
    --l-h1-f-size: 2.5rem;
    --l-h1-f-weight: 600;
    --l-f-btn-border-width: 3px;
    --l-f-input-name-size: 0.88rem;

    /*Colors*/
    --l-containter-background: white;
    --l-f-color: black;
    --l-f-border-color: #303030;
    --l-f-btn-bg: #a3ff6b;
    --l-f-l-default-bg: #575757;
    --l-f-l-text-color: #404040;
    --l-f-btn-border-color: rgb(49, 199, 255);
    --l-f-a-input-border-color: rgb(49, 145, 255);
    --l-f-input-border-color: rgb(126, 126, 126);
    --l-f-label-active-bg: #ffffff;
    --gray-text-color: #404040;
    --l-f-input-name-color: #121212;

    /*Other*/
    --l-f-btn-border-radius: 10px;
    --l-b-border-radius: 15px;
    --l-f-input-border-radius: 50px;
}

/*account profile*/
:root {
    /*Size*/
    --a-profile-c-height: 200vh;
    --a-home-width: 85vw;
    --a-p-title-bar-h: 6vh;
    --a-p-title-bar-font-size: 25px;
    --a-p-nav-width: calc(100vw - var(--a-home-width));
    --a-h-t-wrapper-height: 40vh;
    --a-h-c-margin-left: 30px;
    /*reserve some spaces for article-card when translateY style is applying*/
    --article-card-list-height: 400px;
    --comment-card-list-height: 300px;
    --article-card-width: 350px;
    --article-card-height: 350px;
    --post-card-list-height: 500px;

    /*Colors*/
    --a-profile-c-bg: white;
    --a-home-box-bg: var(--a-profile-c-bg);
    --a-p-title-bar-bg: var(--a-profile-c-bg);
    --a-bg-nav: var(--a-profile-c-bg);
    --a-p-nav-bg: var(--a-profile-c-bg);
    --a-nav-border: #bfbfbf;
    --a-li-hover-bg: rgb(133, 190, 255);
    --a-li-active-bg: rgb(25, 134, 255);
    --a-text-default: black;
    --a-text-hover: rgb(25, 134, 255);
    --a-text-active: #ffffff;
    --a-h-horizontal-list-bg: #ffffff;
    --a-card-text-color: white;
    --v-p-c-bg: #ffffff;
    --v-p-text-c: #222222;
    --v-p-hr-c: #e1e1e1;
    --a-username-color: #7a7a7a;
    --a-p-option-bg: #f6f6f6;
    --a-p-title-border: #dcdcdc;

    --a-s-btn-bg: rgba(25, 134, 255, 0.1);
    --a-s-btn-c: rgb(25, 134, 255);
    --s-s-btn-hover-bg: rgba(25, 134, 255, 0.18);
    --a-s-btn-danger-bg: rgba(255, 90, 90, 0.12);
    --a-s-btn-danger-c: rgb(180, 30, 30);
    --a-s-btn-danger-hover-bg: rgba(255, 90, 90, 0.2);;
}

@media only screen and (max-width: 767px)  {
    :root {
        --l-container-width: 100vw;
    }
}

.l_box h1,
.l_f_btn,
.l_input_group label,
.l_input_group input[type="text"],
.l_input_group input[type="password"],
.l_input_group input[type="email"],
.l_f_input_container span,
.l_f_input_container .errorlist li,
.a_title_info_box h1,
.a_p_nav_ul li a,
.article_card_content > *,
.comment_card_username,
.v_p_username,
.v_p_content,
.a_s_header h2,
.a_s_header a,
.a_s_option h4,
.modal_body h1,
.modal_header h1,
.a_s_option .center_item {
    font-family: "Roboto", 'Noto Sans TC', sans-serif;
}

main {
    width: 100vw;
}

/*Login Form*/

.l_container {
    margin-left: auto;
    inset: 0;
    /*margin: 40px 50px 0 auto;*/
    z-index: 999;
    width: 45vw;
    height: var(--l-container-height);
    align-items: center;
    justify-content: center;
}

main {
    min-height: 100vh;
}

.signin_main {
    position: relative;
}

.signin_main_logo {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 1001;
    display: inline-flex;
}

.signin_main_logo img {
    width: clamp(90px, 10vw, 160px);
    height: auto;
    object-fit: contain;
}

.signin_corner_nav {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 1001;
    display: flex;
    gap: 14px;
}

.signin_corner_nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.signin_corner_nav a:hover {
    text-decoration: underline;
}

@media only screen and (max-width: 767px) {
    .signin_main_logo {
        top: 12px;
        left: 12px;
    }

    .signin_corner_nav {
        left: 12px;
        bottom: 12px;
        gap: 10px;
    }
}

@media only screen and (min-width: 768px) {
    .l_container {
        width: clamp(420px, 45vw, 550px);
    }
}

@media only screen and (max-width: 767px)  {
    :root {
        --l-container-width: 100vw;
        --l-container-height: 100vh;
    }

    .l_container {
        z-index: 2000;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

@media only screen and (max-width: 767px)  {
    .l_container {
        margin: 0 auto 0 auto;
        right: unset;
    }
}


/* ============ Themes ============ */

body.dark {
    --a-profile-c-bg: #2c3642;
    --a-home-box-bg: #2f3b47;
    --a-p-title-bar-bg: #2c3642;
    --a-bg-nav: var(--a-profile-c-bg);
    --a-p-nav-bg: #2c3642;
    --a-nav-border: #bfbfbf;
    --a-li-hover-bg: rgb(133, 190, 255);
    --a-li-active-bg: rgb(25, 134, 255);
    --a-text-default: #f1f1f1;
    --a-text-hover: rgb(25, 134, 255);
    --a-text-active: #ffffff;
    --a-h-horizontal-list-bg: #ffffff;
    --v-p-c-bg: #252525;
    --v-p-text-c: #ececec;
    --v-p-hr-c: #505050;
    --a-username-color: #d3d3d3;
    --a-p-option-bg: #425163;
    --a-p-title-border: #272f3a;
    --a-s-btn-bg: rgba(25, 134, 255, 0.2);
    --a-s-btn-c: rgb(223, 223, 223);
    --s-s-btn-hover-bg: rgba(25, 134, 255, 0.28);
    --a-s-btn-danger-bg: rgba(255, 90, 90, 0.6);
    --a-s-btn-danger-c: rgb(223, 223, 223);
    --a-s-btn-danger-hover-bg: rgba(255, 90, 90, 0.3);;
}
/* ============ Theme END ============ */

/* ============ Account Animations ============ */
@keyframes accountPageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes accountSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes accountRiseIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes accountSoftPop {
    from {
        opacity: 0;
        transform: scale(0.985);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/*.a_profile_container[data-type="profile"],*/
/*.a_profile_container[data-type="settings"] {*/
/*    animation: accountPageFadeIn 0.1s ease-out;*/
/*}*/

/*.a_profile_container[data-type="profile"] .a_p_nav,*/
/*.a_profile_container[data-type="settings"] .a_p_nav {*/
/*    animation: accountSlideInLeft 0.45s ease-out;*/
/*}*/

/*.a_profile_container[data-type="profile"] .a_home_box,*/
.a_profile_container[data-type="settings"] .a_home_box {
    animation: accountRiseIn 0.5s ease-out;
}

/*.a_profile_container[data-type="profile"] .a_h_t_wrapper,*/
/*.a_profile_container[data-type="settings"] .a_s_header {*/
/*    animation: accountSoftPop 0.5s ease-out;*/
/*}*/

.a_profile_container[data-type="settings"] .a_s_option {
    animation: accountRiseIn 0.45s ease-out both;
}

/*.a_profile_container[data-type="settings"] .a_s_option:nth-child(1) { animation-delay: 0.03s; }*/
/*.a_profile_container[data-type="settings"] .a_s_option:nth-child(2) { animation-delay: 0.06s; }*/
/*.a_profile_container[data-type="settings"] .a_s_option:nth-child(3) { animation-delay: 0.09s; }*/
/*.a_profile_container[data-type="settings"] .a_s_option:nth-child(4) { animation-delay: 0.12s; }*/
/*.a_profile_container[data-type="settings"] .a_s_option:nth-child(5) { animation-delay: 0.15s; }*/

/*.a_profile_container[data-type="profile"] .article_card,*/
/*.a_profile_container[data-type="profile"] .comment_card,*/
/*.a_profile_container[data-type="profile"] .vertical_post_card {*/
/*    animation: accountRiseIn 0.5s ease-out both;*/
/*}*/

/*.a_profile_container[data-type="profile"] .article_card:nth-child(1),*/
/*.a_profile_container[data-type="profile"] .comment_card:nth-child(1),*/
/*.a_profile_container[data-type="profile"] .vertical_post_card:nth-child(1) { animation-delay: 0.06s; }*/

/*.a_profile_container[data-type="profile"] .article_card:nth-child(2),*/
/*.a_profile_container[data-type="profile"] .comment_card:nth-child(2),*/
/*.a_profile_container[data-type="profile"] .vertical_post_card:nth-child(2) { animation-delay: 0.12s; }*/

/*.a_profile_container[data-type="profile"] .article_card:nth-child(3),*/
/*.a_profile_container[data-type="profile"] .comment_card:nth-child(3),*/
/*.a_profile_container[data-type="profile"] .vertical_post_card:nth-child(3) { animation-delay: 0.18s; }*/

.a_profile_container .modal_content {
    animation: accountSoftPop 0.22s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .a_profile_container[data-type="profile"],
    .a_profile_container[data-type="settings"],
    .a_profile_container[data-type="profile"] .a_p_nav,
    .a_profile_container[data-type="settings"] .a_p_nav,
    .a_profile_container[data-type="profile"] .a_home_box,
    .a_profile_container[data-type="settings"] .a_home_box,
    .a_profile_container[data-type="profile"] .a_h_t_wrapper,
    .a_profile_container[data-type="settings"] .a_s_header,
    .a_profile_container[data-type="settings"] .a_s_option,
    .a_profile_container[data-type="profile"] .article_card,
    .a_profile_container[data-type="profile"] .comment_card,
    .a_profile_container[data-type="profile"] .vertical_post_card,
    .a_profile_container .modal_content {
        animation: none !important;
        transition: none !important;
    }
}


.l_box {
    display: flex;
    flex-direction: column;
    background-color: var(--l-containter-background);
    /*border-radius: var(--l-b-border-radius);*/
    min-height: 100vh;
    align-items: center;
}

@media only screen and (max-width: 767px)  {
    .l_box {
        margin: 0;
        border: none;
        border-radius: 0;
        width: 100vw;
    }
}

.l_box hr {
    margin: 20px auto 10px auto;
    width: 60%;
    height: 0;
    border: 1px solid #9f9f9f;
    display:inline-block;
    border-radius: 10px;
}

.l_form {
    margin-top: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    width: 70%;
}

@media only screen and (max-width: 767px)  {
    .l_form {
        margin: 100px 0 0 0;
        width: 80%;
    }
}

.l_f_title_container {
    margin: 50px 0 0 0;
    display: flex;
    flex-direction: row;
    height: 60px;
    justify-content: center;
    align-items: center;
}

.l_f_title_container h1 {
    /*padding: 0 20px 0 0;*/
    /*margin: 30px 0 0 0;*/
    font-size: var(--l-h1-f-size);
    font-weight: var(--l-h1-f-weight);
    color: var(--l-f-color);
}

.l_f_title_container .brand_img {
    margin-left: auto;
    height: 80%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    /*animation: brandInvert 3s infinite linear, doFlip 1.2s infinite, rainbow-bg 2.5s infinite ease-in-out;*/
}

/*.l_f_title_container .brand_img:hover {*/
/*    animation: doFlip 1.2s infinite, rainbow-bg 2.5s infinite ease-in-out;*/
/*}*/

.l_f_input_container {
    display: flex;
    width: 100%;
    align-items: center;
    flex-direction: column;
    padding: 40px 0 40px 0;
}

.l_f_input_info {
    color: var(--l-f-input-name-color);
    font-size: var(--l-f-input-name-size);
    font-weight: 450;
    align-self: normal;
    background-color: rgba(14, 147, 255, 0.4);
    border-radius: 20px;
    padding: 5px;
    margin-top: 10px;
    text-align: center;
    /*border: 5px solid #fffbea;*/
}

.l_f_input_info span {
    text-align: center;
    display: inline-block;
    width: 90%;
}

.l_input_group {
    position: relative;
    padding-top: 8px;
    padding-bottom: 4px;
    background: var(--l-containter-background);
    width: 100%;
}

.l_input_group label {
    position: absolute;
    top: 48%;
    left: 15px;
    font-size: 16px;
    color: var(--l-f-l-default-bg);
    padding: 0 5px;
    pointer-events: none;
    transition: .5s;
}

.l_input_group input {
    display: block;
    margin: 20px 0 0 0;
    height: 45px;
    width: 100%;
    color: var(--l-f-color);
    border-radius: var(--l-f-input-border-radius);
    box-sizing: border-box;
    border: 2px solid var(--l-f-input-border-color);
    font-size: 14px;
}

@media only screen and (max-width: 767px)  {
    .l_input_group input {
        height: 50px;
    }
}

.l_input_group input[type="text"],
.l_input_group input[type="password"],
.l_input_group input[type="email"] {
    padding-left: 15px;
    font-size: 16px;
    color: var(--l-f-l-text-color);
    font-weight: 450;
}

.l_input_group input:focus~label {
    color: var(--l-f-a-input-border-color);
}

.l_input_group input:focus~label,
.l_input_group input:valid~label,
.l_input_group.freeze_label_position_at_top label
{
    top: 25%;
    font-size: 12px;
    background: var(--l-f-label-active-bg);
    box-shadow: 0 0 0 2px var(--l-containter-background);
}

/*.l_input_group input:valid~input[type="text"],*/
/*.l_input_group input:valid~input[type="password"] {*/
/*    color: var(--l-f-a-input-border-color);*/
/*}*/

.l_input_group input:focus
{
    outline: none;
    border: 2px solid var(--l-f-a-input-border-color);
}

.l_btn_container {
    margin: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.l_f_btn {
    appearance: none;
    border: none;
    background: none;
    box-sizing: border-box;
    cursor: pointer;
    margin: 0 0 30px 0;
    padding: 15px 55px;
    background: var(--l-f-btn-bg);
    border-radius: var(--l-f-btn-border-radius);
    /*border-width: var(--l-f-btn-border-width);*/
    /*border-style: solid;*/
    /*border-color: var(--l-f-btn-border-color);*/
    box-shadow: rgba(0, 0, 0, 0.16) 0 1px 4px;
    color: var(--gray-text-color);
    font-size: 16px;
    font-weight: 500;
}

.l_f_btn:focus {
    outline: none;
}

.l_f_input_container .errorlist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px auto 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 90, 90, 0.08);
    border-left: 3px solid #ff5a5a;
    box-shadow: 0 6px 16px rgba(255, 90, 90, 0.18);
    animation: errorFadeIn 0.5s ease-out;
}

.l_f_input_container  .errorlist li {
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    color: #b91c1c;
    line-height: 1.5;
    position: relative;
    padding-left: 18px;
}

.l_f_input_container  .errorlist li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #ff5a5a;
    font-size: 18px;
    line-height: 1;
}


@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========== Account Profile : Main =========== */

.a_profile_container {
    width: 100%;
    height: var(--a-profile-c-height);
    background-color: var(--a-profile-c-bg);
    color: var(--a-text-default);
}

/* =========== Layout =========== */

.a_p_title_bar {
    height: var(--a-p-title-bar-h);
    background-color: var(--a-p-title-bar-bg);
    display: flex;
    align-items: center;
    justify-content: left;
    border-bottom: 1px solid var(--a-p-title-border);
}

/* Nav Switch Btn */
.a_p_title_bar i {
    margin: 0 auto 0 15px;
    font-size: var(--a-p-title-bar-font-size);
}

.a_p_btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: var(--a-text-default);
}

.a_p_content {
    display: flex;
    flex-direction: row;
    height: 100%;
}

/* ========== Navigation ========== */

.a_p_nav {
    width: var(--a-p-nav-width);
    background-color: var(--a-p-nav-bg);
    border-right: 1px solid rgba(0,0,0,0.08);
}

.a_p_nav.full {
    width: 100vw
}

.a_p_nav_ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100%;
}

.a_p_nav_ul li {
    display: flex;
    list-style-type: none;
    text-decoration: none;
    width: 100%;
    justify-content: left;
    position: relative;
    align-self: stretch;
    padding: 14px 24px;
    transition: background-color .2s ease;
    box-sizing: border-box;
}

.a_p_nav_ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background-color: transparent;
    border-radius: 2px;
    transition: background-color .2s ease;
}

.a_p_nav_ul li:hover {
    background-color: rgba(25, 134, 255, 0.08);
}

.a_p_nav_ul li.active {
    background-color: rgba(25, 134, 255, 0.12);
}

.a_p_nav_ul li.active::before {
    background-color: rgb(25, 134, 255);
}

.a_p_nav_ul li a {
    display: block;
    margin-left: 20px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--a-text-default);
    text-decoration: none;
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .a_p_nav_ul li {
        padding: 12px 18px;
    }

    .a_p_nav_ul li a {
        margin-left: 14px;
        font-size: 16px;
        white-space: nowrap;
    }
}

.a_p_nav_ul li:hover a {
    color: var(--a-text-hover);
}

.a_p_nav_ul li:active a,
.a_p_nav_ul li.active a {
    font-weight: 600;
}

.a_p_content > .a_p_nav + .a_p_nav {
    margin-top: 24px;
}

@media only screen and (max-width: 767px)  {
    .a_p_content > .a_p_nav + .a_p_nav {
        margin-top: 0px;
    }
}

.a_p_nav + .a_p_nav {
    padding-top: 16px;
}

.a_p_nav .a_p_nav {
    z-index: 3;
    position: absolute;
    background-color: var(--a-bg-nav);
    border-right: none;
    border-radius: 8px;
    left: 10px;
    top: 20px;
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
}

@media only screen and (max-width: 767px) {
    .a_p_nav .a_p_nav {
        width: 50vw;
    }
}

.a_p_nav .a_p_nav .a_p_nav_ul li {
    padding: 10px 20px 10px 40px;
    font-size: 15px;
}

.a_p_nav .a_p_nav .a_p_nav_ul li::before {
    left: 20px;
    width: 2px;
    background-color: rgba(25, 134, 255, 0.8);
}

.a_p_nav .a_p_nav .a_p_nav_ul li:hover {
    background-color: rgba(25, 134, 255, 0.06);
}

.a_p_nav .a_p_nav_ul li a {
    color: var(--a-text-default);
}

.a_p_nav .a_p_nav {
    display: none;
}

.a_p_nav_ul li:hover > .a_p_nav {
    display: block;
}

/* ========== Account Home ========== */

/* < Header > */

.a_home_box {
    margin-left: auto;
    width: var(--a-home-width);
    height: 100%;
    background-color: var(--a-home-box-bg);
}

.a_home_box.full {
    width: 100vw;
}

.a_h_t_wrapper {
    width: 100%;
    min-height: var(--a-h-t-wrapper-height);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 20px;
}

.a_banner {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.a_banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.a_title_info_box {
    margin-top: -30px;
    position: relative;
    z-index: 1;
    display: flex;
    margin-right: auto;
    align-items: center;
    margin-left: var(--a-h-c-margin-left);
}

.a_title_info_box .avatar {
    height: 150px;
    width: 150px;
    border-radius: 50%;
    margin: 0 30px 0 0;
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
}

.a_title_info_box h1 {
    font-size: 60px;
}

/* ========== Sections ========== */

.a_h_content {
    padding-left: 30px;
}

@media only screen and (max-width: 767px) {
    .a_title_info_box {
        margin-left: 15px;
    }

    .a_h_content {
        padding-left: 5px;
    }
}

.content_section {
    display: flex;
    flex-direction: column;
    margin-left: 5px;
}

.section_header {
    margin-bottom: 16px;
}

.horizontal_list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    align-items: center;
    padding: 8px 15px 16px;
    border-radius: 10px;
}

.horizontal_list[data-type="article"] {
    height: var(--article-card-list-height);
}

.horizontal_list[data-type="comment"] {
    height: var(--comment-card-list-height);
}

.horizontal_list[data-type="post"] {
    height: var(--post-card-list-height);
}

/* < Article Card > */

.article_card {
    width: var(--article-card-width);
    height: var(--article-card-height);
    margin-right: 60px;
    border-radius: 10px;
    background-color: rgb(34, 34, 34);
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
    flex-shrink: 0;
    position: relative;
}

.article_card_wrapper {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.article_card_wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article_img_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.001) 0%,
            rgba(0,0,0,0.2) 75%
    );
    z-index: 1;
}

.article_card_content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px 24px;
    z-index: 2;
    color: var(--a-card-text-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article_title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.article_excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article_meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.article_card,
.comment_card,
.vertical_post_card
{
    transition: transform .3s ease;
}

.article_card:hover,
.comment_card:hover,
.vertical_post_card {
    transform: translateY(-4px);
}

.article_card:hover .article_title {
    text-decoration: underline;
}

/* < Comment Card > */

.comment_card {
    width: 300px;
    height: 250px;
    border-radius: 10px 10px 10px 10px;
    background-color: rgb(34, 34, 34);
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
}

.comment_card_op_box {
    display: flex;
    width: 100%;
    align-items: center;
}

.comment_card_username {
    position: relative;
    font-size: 25px;
    font-weight: bold;
    color: #ffffff;
    padding: 0 10px;
}

.comment_card_account_avatar {
    padding: 10px 10px;
    position: relative;
    vertical-align: middle;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment_card_wrapper {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
}

.comment_img_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4)5%, rgba(0,0,0,0))90%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1;
    border-radius: 10px;
}

.comment_img_overlay:hover{
    opacity: 1;
}

.comment_card_paragraph {
    position: absolute;
    z-index: 1;
    bottom: 25px;
    left: 0;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    white-space: pre-line;
    transition: font-size 0.5s ease;
}

.vertical_post_card {
    display: flex;
    flex-direction: column;
    width: 360px;
    height: 480px;
    margin-right: 60px;
    border-radius: 10px;
    background-color: var(--v-p-c-bg);
    color: var(--v-p-text-c);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    box-sizing: border-box;
}

.vertical_post_card:last-child {
    margin-right: 0;
}

/* Header Section */
.vertical_post_card .v_p_header {
    flex: 0 0 10%;
    display: flex;
    align-items: center;
    padding: 0.5em 1em;
    /*border-bottom: 2px solid #333333;*/
}

.vertical_post_card_hr {
    display: block;
    width: 90%;
    height: 1px;
    border: 0;
    border-top: 0.15em solid var(--v-p-hr-c);
    margin: 0 auto;
    padding: 0;
}

.vertical_post_card .v_p_header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5em;
}

.v_p_username {
    font-weight: bold;
}

/* Content Section */
.vertical_post_card .v_p_content {
    flex: 0 0 65%;
    padding: 1em;
    overflow: hidden;
}

.vertical_post_card .v_p_content p {
    margin: 0 0 1em;
}
.vertical_post_card .v_p_content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    margin: 0.5em 0;
}

/* Footer Section */
.vertical_post_card .v_p_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5em 1em;
    /*border-top: 2px solid #333333;*/
    color: #ffffff;
    font-size: 0.9em;
    width: 90%;
    text-align: right;
}

.v_p_btn_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 40%;
}

.vertical_post_card .v_p_footer .post-time,
.vertical_post_card .v_p_footer .post-views {
    display: inline-block;
}

.vertical_post_card .v_p_btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 1.6em;
    color: var(--v-p-text-c);
}

.vertical_post_card .v_p_footer .post-views i {
    color: inherit;
    margin-right: 0.25em;
}

.v_p_metadata {
    color: var(--v-p-text-c);
    display: flex;
    flex-direction: column;
}

/* ========== Account Info Section ========== */
.a_s_header {
    padding-top: 15px;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@media only screen and (max-width: 767px) {
    .a_s_header {
        padding-top: 15px;
    }
}

.a_s_header img {
    height: 150px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.16) 0 1px 4px;
    margin-bottom: 5px;
}

.a_s_header h2 {
    margin-bottom: 5px;
}

.a_s_header a {
    font-size: 1.0rem;
    color: var(--a-username-color);
}

.a_s_content {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    margin-top: 24px;
    padding: 6px 16px;
    flex-direction: column;
}

.a_s_btn {
    border: none;
    outline: none;
    padding: 14px 22px;
    min-width: 140px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    background-color: var(--a-s-btn-bg);
    color: var(--a-s-btn-c);
    cursor: pointer;
    user-select: none;
    transition:
            background-color .2s ease,
            transform .2s ease;
}

.a_s_btn:hover {
    background-color: var(--s-s-btn-hover-bg);
    transform: translateY(-2px);
}

.a_s_btn.danger {
    background-color: var(--a-s-btn-danger-bg);
    color: var(--a-s-btn-danger-c);
}

.a_s_btn.danger:hover {
    background-color: var(--a-s-btn-danger-hover-bg);
}

@media (max-width: 767px) {
    .a_s_content {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.a_s_options_list {
    gap: 12px;
    display: flex;
    flex-direction: column;
}

.a_s_option {
    min-height: 56px;
    gap: 5px;
    background-color: var(--a-p-option-bg);
    width: 95%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    padding: 14px 18px;
}

.a_s_option .center_item {
    margin: auto;
}

@media only screen and (max-width: 767px) {
    .a_s_option {
        width: 90%;
    }

    .a_s_option .center_item {
        display: none;
    }
}

.a_s_option h4 {
    margin-right: auto;
    font-weight: normal;
}

/* Avatar Upload Modal */
.modal_header[data-type="account"] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /*height: 40vh;*/
    margin-bottom: 10px;
}

.modal_header[data-type="account"] .acc_avatar {
    height: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.16) 0 1px 4px;
    margin-bottom: 5px;
}

.modal_header[data-type="name_edit"] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40vh;
}

.modal_header img[type="acc_banner_view"] {
    height: 30vh;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.modal_body input {
    width: 80%;
}

.modal_body p {
    width: 80%;
}


