/* Path: /css/mypage/style.css — Creator dashboard (mypage) */

@charset "UTF-8";

.mypage-page .mypage_top_margin {
    margin-top: 44px;
    transition: margin-top 0.3s ease;
}

.mypage-page #main_box {
    overflow-x: hidden;
    width: 100%;
    padding: 0 12px 72px;
    box-sizing: border-box;
}

body.feed-page.mypage-page #main_box,
body.feed-page.mypage-page .mypage_top_margin {
    background-color: #f5f7fa;
}

.mypage_page {
    max-width: 720px;
    margin: 0 auto;
}

.mypage_profile_card {
    margin-top: 8px;
}

.mypage_profile_name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.mypage_profile_subtitle {
    margin: 4px 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #5c6b7a;
}

.mypage_profile_links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
}

.mypage_profile_link {
    color: #2f6fed;
    font-size: 0.85rem;
    text-decoration: none;
}

.mypage_profile_link:hover {
    text-decoration: underline;
}

.mypage_menu_card {
    margin-top: 8px;
}

.mypage_menu_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mypage_menu_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 96px;
    padding: 14px 10px;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    background: #fafbfc;
    color: #222;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.mypage_menu_item:hover {
    background: #f0f4f8;
    border-color: #d5dde6;
    transform: translateY(-1px);
}

.mypage_menu_icon_wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mypage_menu_icon {
    width: 28px;
    height: 28px;
}

.mypage_menu_badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
}

.mypage_menu_label {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.mypage_menu_item--highlight {
    border-color: #c7d9ff;
    background: #eef4ff;
}

.mypage_menu_hint {
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: #5c6b7a;
    line-height: 1.5;
}

.mypage_timeline_empty .mypage_post_hint {
    margin-top: 8px;
    color: #5c6b7a;
    font-size: 0.9rem;
    line-height: 1.6;
}

.mypage_guest_title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
}

.mypage_setting_profile_card,
.mypage_setting_card {
    margin-top: 8px;
}

.mypage_setting_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.mypage_setting_item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    background: #fafbfc;
    color: #222;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mypage_setting_item:hover {
    background: #f0f4f8;
    border-color: #d5dde6;
}

.mypage_setting_item--danger .mypage_setting_label {
    color: #c62828;
}

.mypage_setting_label {
    font-size: 0.92rem;
    font-weight: 600;
}

.mypage_setting_meta {
    font-size: 0.82rem;
    color: #5c6b7a;
    word-break: break-all;
    line-height: 1.45;
}

.mypage_setting_header_icon_link {
    display: block;
    flex-shrink: 0;
    border-radius: 50%;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mypage_setting_header_icon_link:hover {
    box-shadow: 0 0 0 3px rgb(47 111 237 / 18%);
    transform: scale(1.02);
}

.mypage_setting_header_name_link {
    color: inherit;
    text-decoration: none;
}

.mypage_setting_header_name_link:hover .user_profile_name {
    color: #2f6fed;
}

.mypage_guest_card {
    margin-top: 8px;
}

.mypage_guest_state {
    text-align: center;
}

.mypage_guest_links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-top: 12px;
}

.mypage_guest_links a {
    color: #2f6fed;
    font-weight: 600;
    text-decoration: none;
}

.mypage_guest_links a:hover {
    text-decoration: underline;
}

@media (min-width: 560px) {
    .mypage_menu_grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mypage_menu_grid--with-dm {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
