@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

/* =========================================================
   Root
========================================================= */

:root{
    --bg:#f6f3f4;
    --card:#fdfbfb;
    --border:#eadfe4;

    --accent:#df7fa2;
    --accent-light:#fff6f8;
    --accent-border:#f4dfe6;

    --text:#333;
    --sub:#777;

    --radius:26px;
    --radius-sm:18px;

--shadow:0 18px 45px rgba(0,0,0,.06);

    --transition:.25s ease;
}

/* =========================================================
   Reset
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

:root{
    --font-main:"NanumGothic", sans-serif;
}

body{
    font-family:var(--font-main);
    background:var(--bg);
    color:var(--text);
    line-height:1.8;
    -webkit-font-smoothing:antialiased;
}

img{
    display:block;
    max-width:100%;
}

a{
    color:inherit;
    text-decoration:none;
}

table{
    width:100%;
    border-collapse:collapse;
}

/* =========================================================
   Layout
========================================================= */

.container{
    width:min(1120px,calc(100% - 48px));
    margin:12px auto 90px;
}

.section + .section{
    margin-top:42px;
}

.section h5{
    margin-bottom:18px;
    font-size:17px;
    font-weight:600;
    color:#555;
    letter-spacing:.02em;
}

.first-section{
    margin-top:0;
}

/* =========================================================
   Card
========================================================= */

.card,
.profile-card{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.card{
    padding:28px;
}

/* =========================================================
   Profile
========================================================= */

.profile-card{
    position:relative;
    overflow:hidden;

    display:grid;
    grid-template-columns:220px 1fr;
    gap:30px;

    align-items:flex-start;

    padding:42px;
}

.profile-image,
.profile-info{
    position:relative;
    z-index:1;
}

.profile-image{
    display:flex;
    justify-content:center;
    align-items:flex-start;
}

.profile-image img{
    width:220px;
    height:220px;

    object-fit:cover;

    border-radius:50%;
    border:6px solid #fff;

    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

/* =========================================================
   Sign
========================================================= */

.profile-sign{
    position:absolute;

    top:28px;
    right:32px;

    width:180px;

    opacity:.42;

    pointer-events:none;
    user-select:none;

    z-index:0;
}

/* =========================================================
   Profile Info
========================================================= */

.profile-info{
    display:flex;
    flex-direction:column;
}

/* =========================================================
   Birthday
========================================================= */

.birthday{
    display:inline-flex;
    align-items:center;
    gap:8px;

    width:max-content;

    margin-bottom:24px;
    padding:8px 16px;

    border:1px solid rgba(255,255,255,.08);
    border-radius:999px;

    background:rgba(255,95,162,.05);

    font-size:13px;
    font-weight:600;

    color:var(--text);
}

.birthday .date{
    color:var(--text);
}

.birthday .dday{
    color:var(--accent);
    font-weight:700;
}
/* =========================================================
   Intro
========================================================= */

.intro h1{
    font-size:44px;
    font-weight:700;

    letter-spacing:-.04em;
    line-height:1.08;
}

.intro>span{
    display:block;

    margin-top:8px;

    font-size:14px;
    color:#999;

    letter-spacing:.24em;
}

.desc{
    margin-top:28px;

    padding:18px 22px;

    background:var(--accent-light);

    border-left:5px solid var(--accent);
    border-radius:var(--radius-sm);

    color:#555;
    font-size:15px;
}

/* =========================================================
   Table
========================================================= */

.profile-info table{
    margin-top:30px;
}

.profile-info tbody tr{
    border-bottom:1px solid #f7eff2;
}

.profile-info tbody tr:last-child{
    border-bottom:none;
}

.profile-info td{
    padding:15px 0;

    vertical-align:top;

    font-size:15px;
    word-break:keep-all;
}

.profile-info td:first-child{
    width:150px;

    color:var(--sub);
    font-weight:600;

    letter-spacing:.02em;
}

.profile-info td:last-child{
    color:var(--text);
    font-weight:500;
}

/* =========================================================
   Tags
========================================================= */

.tags{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.tags span{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:11px 18px;

    border:1px solid var(--accent-border);
    border-radius:999px;

    background:var(--accent-light);

    color:#666;
    font-size:14px;
    font-weight:500;

    white-space:nowrap;
}

/* =========================================================
   Buttons
========================================================= */

.buttons{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
}

.buttons a{
    flex:1;
    min-width:180px;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:16px 22px;

    background:#fff;

    border:1px solid var(--border);
    border-radius:var(--radius-sm);

    color:#666;
    font-weight:600;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
 display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
}

.buttons a:hover{
    background:var(--accent);
    border-color:var(--accent);

    color:#fff;


    transform:translateY(-3px);
    filter:brightness(1.03);

    box-shadow:0 16px 34px rgba(223,127,162,.28);
}
.link-icon{
    width:18px;
    height:18px;
    object-fit:contain;
    flex-shrink:0;
    transition:transform .25s ease;
}
.buttons a:hover .link-icon{
    transform:scale(1.08);
}

/* =========================================================
   Weekly Schedule
========================================================= */

.schedule-section{
    margin-top:40px;
}

.schedule-card{
    padding:24px;
}

.schedule-period{
    text-align:center;
    color:var(--sub);
    font-size:.9rem;
    margin-bottom:18px;
}

.week-grid{

    display:grid;

    grid-template-columns:repeat(7,1fr);

    gap:14px;

    margin-bottom:4px;

}

.day-card{

    display:flex;
    flex-direction:column;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:16px;

    overflow:hidden;

    min-height:250px;

    transition:.25s;
}

.day-card:hover{

    transform:translateY(-3px);

    border-color:var(--accent);

}

.day-card.today{

    border-color:var(--accent);

    box-shadow:0 0 0 2px rgba(255,124,170,.18);

}

.day-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:14px 16px;

    border-bottom:1px solid var(--border);

}

.day-name{

    font-weight:700;

}

.day-date{

    color:var(--sub);

    font-size:.82rem;

}

.day-body{

    flex:1;

    display:flex;

    flex-direction:column;

    padding:16px;

}

.schedule-item{

    display:flex;

    flex-direction:column;

    gap:5px;

}

.schedule-time{

    color:var(--accent);

    font-size:.75rem;

    font-weight:700;

    letter-spacing:.08em;

}

.schedule-title{

    font-size:.92rem;

    line-height:1.55;

    word-break:keep-all;

    overflow-wrap:anywhere;

}

.schedule-divider{

    margin:15px 0;

    height:1px;

    background:var(--border);

}

.schedule-item.off{

    flex:1;

    display:flex;

    justify-content:center;

    align-items:center;

}

.schedule-item.off .schedule-title{

    color:#7fb7ff;

    font-weight:700;

    font-size:1rem;

    letter-spacing:.05em;

}

.schedule-empty{

    flex:1;

    display:flex;

    justify-content:center;

    align-items:center;

    color:var(--sub);

}

@media (max-width:900px){

    .week-grid{

        grid-template-columns:repeat(7,140px);

        overflow-x:auto;

        padding-bottom:8px;

    }

}

/* =========================================================
   Footer
========================================================= */

footer{
    margin-top:48px;
    padding:28px;

    color:var(--sub);
    opacity:.75;

    font-size:13px;
    font-weight:500;

    text-align:center;
}
/* =========================================================
   Scrollbar
========================================================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:var(--bg);
}

::-webkit-scrollbar-thumb{
    background:#e9c6d3;
    border-radius:999px;
}

::-webkit-scrollbar-thumb:hover{
    background:var(--accent);
}

/* =========================================================
   Selection
========================================================= */

::selection{
    background:#f4c6d7;
    color:#333;
}

/* =========================================================
   Animation
========================================================= */

.profile-card,
.card{
    animation:fadeUp .55s ease;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(18px);
    }

    to{
        opacity:1;
        transform:none;
    }

}

/* =========================================================
   Responsive
========================================================= */

@media (max-width:900px){

    .container{
        width:calc(100% - 36px);
    }

    .profile-card{
        grid-template-columns:1fr;
        gap:30px;

        text-align:center;
    }

    .profile-image{
        justify-content:center;
    }

    .birthday{
        margin:0 auto 24px;
    }

    .desc{
        text-align:left;
    }

    .profile-info table{
        text-align:left;
    }

    .profile-sign{
        width:190px;
        opacity:.35;
    }

}

@media (max-width:640px){

    .container{
        width:calc(100% - 24px);
        margin:30px auto 70px;
    }

    .profile-card{
        padding:28px;
        gap:24px;
    }

    .card{
        padding:22px;
    }

    .profile-image img{
        width:160px;
        height:160px;
    }

    .intro h1{
        font-size:36px;
    }

    .profile-info td:first-child{
        width:115px;
    }

    .buttons{
        flex-direction:column;
    }

    .buttons a{
        width:100%;
        min-width:0;
    }

    .profile-sign{
        width:160px;
        top:14px;
        right:14px;
    }
#weekly-schedule{
    overflow-x:auto;
}

.week-grid{
    display:grid;
    grid-template-columns:repeat(7,110px);
    gap:14px;
    min-width:840px;
}

}

@media (max-width:420px){

    .profile-card{
        padding:22px;
        border-radius:22px;
    }

    .card{
        padding:18px;
        border-radius:22px;
    }

    .intro h1{
        font-size:30px;
    }

    .profile-image img{
        width:145px;
        height:145px;
    }

    .tags{
        gap:10px;
    }

    .tags span{
        width:100%;
    }

    .profile-info td{
        display:block;
        width:100%;
        padding:5px 0;
    }

    .profile-info td:first-child{
        margin-top:10px;
        width:100%;
    }

    .profile-sign{
        width:130px;
        opacity:.28;
    }

}
/* =========================
   Schedule Status
========================= */

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 8px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.status::before {
    content: "";

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: currentColor;
}

.status.on {
    color: #ff5f9e;
}

.status.off {
    color: #e6e6e6;
}

/* =========================================================
   Schedule
========================================================= */

/* ---------- Month Header ---------- */

.month-header{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:24px;
    margin-bottom:28px;
}

#currentMonth{
    font-size:1.35rem;
    font-weight:700;
    color:var(--text);
}

.month-button{
    border:none;
    background:none;
    cursor:pointer;

    font-size:1.35rem;
    font-weight:700;
    color:var(--accent);

    transition:.25s ease;
}

.month-button:hover{
    transform:translateY(-2px);
}

/* ---------- Week ---------- */

.calendar-week{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:14px;
    margin-bottom:12px;
}

.week-header{
    text-align:center;
    font-size:.85rem;
    font-weight:600;
    color:#9b9b9b;
}

/* ---------- Calendar ---------- */

.month-grid{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:14px;
}

.month-day,
.month-empty{

    min-height:105px;

    padding:12px;

    border-radius:18px;
}

.month-day{

    position:relative;

    overflow:visible;

    background:var(--card);

    border:1px solid var(--border);

    transition:.25s;
}

.month-day:hover{

    transform:translateY(-2px);

    border-color:var(--accent);

}

.month-day.today{

    background:var(--accent-light);

    border:1px solid var(--accent);

    box-shadow:0 8px 24px rgba(223,127,162,.15);

}

.month-empty{

    border:1px solid rgba(0,0,0,.04);

    background:rgba(255,255,255,.35);

}

.month-empty .month-date{

    color:#cfcfcf;

    font-size:.95rem;

    font-weight:500;

}

/* ===========================
   Calendar Hierarchy FIX
=========================== */

/* 날짜 (유지, 약간만 다듬기) */
.month-date{
    margin-bottom:6px;
    font-size:1.15rem;
    font-weight:700;
}

/* 시간 ↓ (중요: 줄이기) */
.calendar-time{
    margin-top:4px;
    font-size:.75rem;
    font-weight:600;
    color:#999;
    letter-spacing:.04em;
}

/* 카테고리 ↓↓↓ (핵심: 제일 약하게) */
.calendar-title{
    display:inline-block;
    margin:2px 4px 0 0;
    padding:1px 6px;

    border-radius:999px;

    background:#fff6f8;

    font-size:.68rem;   /* ↓ 더 작게 */
    font-weight:500;    /* ↓ 약하게 */

    color:#777;         /* ↓ 흐리게 */
}



/* ---------- Today / Upcoming ---------- */

.today-item,
.upcoming-item{

    padding:18px;

    border:1px solid var(--border);

    border-radius:18px;

    background:#fff;

    transition:.25s;

}

.today-item+.today-item,
.upcoming-item+.upcoming-item{

    margin-top:14px;

}

.today-item:hover,
.upcoming-item:hover{

    border-color:var(--accent);

    transform:translateY(-2px);

}

.month-time{

    font-size:1rem;

    font-weight:800;

    color:var(--text);


}

.month-title{

    margin-top:4px;

    font-size:1rem;

    font-weight:700;

    color:#8d949d;

    line-height:1.35;

}

/* ---------- Empty ---------- */

.schedule-empty{

    padding:30px 0;

    text-align:center;

    color:var(--sub);

}

/* ---------- Responsive ---------- */

@media(max-width:900px){

    #monthly-calendar{

        overflow-x:auto;

    }

    .calendar-week,
    .month-grid{

        grid-template-columns:repeat(7,120px);

        min-width:840px;

    }

}

.today-item{
    position:relative;
}

.today-item::before{

    content:"TODAY";

    position:absolute;

    top:-12px;
    left:18px;

    padding:5px 16px;

    font-size:.68rem;
    font-weight:700;
    letter-spacing:.15em;

    color:#666;

    background:rgba(255,235,245,.9);

    border:1px solid rgba(255,255,255,.7);

    border-radius:3px;

    transform:rotate(-4deg);

    box-shadow:
        0 3px 8px rgba(0,0,0,.08);

}

/* =========================
   Today Masking Tape
========================= */

.month-day.today::before{

    content:"TODAY";

    position:absolute;

    top:-10px;

    left:14px;

    padding:5px 14px;

    background:#ffe3ec;

    color:#666;

    font-size:.68rem;

    font-weight:700;

    letter-spacing:.12em;

    border-radius:3px;

    transform:rotate(-4deg);

    box-shadow:0 3px 8px rgba(0,0,0,.08);

    z-index:20;

}

/* =========================
   Calendar Item
========================= */

.calendar-item{
    margin-top:8px;
}

.calendar-time{
    margin-top:6px;
    font-size:.85rem;
    font-weight:700;
    color:var(--text);
}

.calendar-title{
    display:inline-block;
    margin:2px 4px 0 0;
    padding:1px 6px;

    border-radius:999px;
    background:#fff6f8;

    font-size:.72rem;
    line-height:1.2;

    color:#666;
}

/* 휴방 */
.calendar-title.calendar-off,
.month-title.calendar-off{
    color:#EA9999;
    font-weight:500;
}

/* ===========================
   PAGE NAV
=========================== */

.page-nav{

    display:flex;
    gap:30px;

    margin-bottom:34px;

    border-bottom:1px solid #efe8eb;

    padding-bottom:12px;
}

.page-nav a{

    position:relative;
    z-index:1;

    display:inline-flex;
    align-items:center;
    gap:6px;

    padding:8px 12px 10px;

    border-radius:999px;

    text-decoration:none;

    font-size:16px;
    font-weight:700;
    letter-spacing:.08em;

    color:#B8B8B8;

    transition:
        color .25s ease,
        transform .25s ease;
}

.page-nav a:hover{

    color:#666;

    transform:translateY(-1px);
}

.page-nav a.active{

    color:#4B2E83;
}

.page-nav a.active::after{

    content:"";

    position:absolute;

    left:0;
    right:0;

    height:2px;

    background:#F4B6C2;
    bottom:-2px;

    border-radius:999px;
}

.month-header {
    display: flex;
    align-items: center;
}
.month-header{
    position: relative;   /* 🔥 기준 잡기 */
    display: flex;
    align-items: center;
}

/* 🔥 진짜 중앙 고정 */
.center{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 12px;
}

/* 오른쪽 */
.right{
    margin-left: auto;
}

.schedule-link{
    padding: 6px 14px;
    border-radius: 999px;   /* 🔥 pill 핵심 */

    background: #f1f3f5;
    color: #333;
    font-size: 13px;
    text-decoration: none;

    transition: all 0.2s ease;
}

/* hover 효과 */
.schedule-link:hover{
    background: #333;
    color: #fff;
}