body{
    font-family: 'SUITE-Regular';
}

/*.peopleList 아래의 ul과 .commentList class 동시 선택*/
/*나중에 가독성을 위해 구조 개선할 것*/
.peopleList ul, .commentList{
    list-style-type: none;
    padding: 0 !important;
    margin: 5px;
}

hr.eventDivider{
    border: 1px dashed var(--libDarkGreen);
    margin: 10px 0;
}

.subTitle{
    clip-path: polygon(100% 0, 85% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);
    background: linear-gradient(90deg, var(--libGreen) 50%, var(--libBlue) 100%);
    color: var(--libDarkGreen);
    font-weight: bold;
    margin: 10px 0 10px 0; 
    font-size: var(--font-m);
    text-align: center;
    padding: 7px 60px 7px 30px;
    width: fit-content;
}

/*----------------------------------헤더부분-----------------------------------*/

body.eventInformation{
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    width: 100%;
    -ms-overflow-style: none;
}

.eventContainer{
    /* 폭이 720px 아래로는 안 줄어들게 되어 있었다.
       화면을 가운데 정렬로 두다 보니 폰(390px)에서는 좌우로 똑같이 삐져나가
       왼쪽 글자가 화면 밖으로 잘려 나갔다 (가로 스크롤로도 못 봄).
       화면 폭을 따라가되 1100px 까지만 넓어지게 바꾼다. */
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
    /* 위 여백 150px 은 떠 있는 상단 메뉴를 피하려던 값.
       좁은 화면에서는 메뉴도 작아지므로 같이 줄인다. */
    margin: clamp(96px, 6.14vw + 71.5px, 150px) 0 clamp(48px, 5.91vw + 24.4px, 100px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    padding: 20px 16px;
}

.eventBaseInfo *{
    margin: 10px;
}

#eventDate{
    font-size: clamp(15px, 1.02vw + 10.9px, 24px);   /* 원래 1.5em = 24px 고정 */
}

#eventTitle{
    font-size: clamp(24px, 1.82vw + 16.7px, 40px);   /* 원래 2.5em = 40px 고정 */
    font-weight: bold;
    word-break: keep-all;   /* 한글이 낱글자로 끊기지 않게 */
}

/*
.tagBox span{
    background-color: var(--libDarkGreen);
    color: var(--libWhite);
    padding: 0 5px 0 5px;
    border-radius: 50px;
    margin: 0px;
}
*/

.eventHostInfo{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 0 10px
}

.editEventButton {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: var(--libGreen);
    color: var(--libDarkGreen);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'SUITE-Regular', sans-serif;
    transition: all 0.2s ease;
    margin-left: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.editEventButton:hover {
    background-color: var(--libDarkGreen);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.editEventButton:active {
    transform: translateY(0);
}

.editEventButton .material-symbols-outlined {
    font-size: 18px;
}

#hostProfileImg{
    border-radius: 100%;
    height: 48px;
    width: 48px;
}

iframe{
    /* 50% 로 두면 좁은 화면에서 지도가 손톱만해진다.
       칸을 채우되 넓은 화면에서는 너무 커지지 않게 막는다. */
    width: 100%;
    max-width: 480px;
    aspect-ratio: 3/2;
}

/*--------------------------------참여자부분-------------------------------------*/

.eventAttend{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
}

.peopleList{
    /* flex:1 만 두면 좁은 화면에서 세 칸이 그대로 찌그러진다.
       180px 아래로는 줄지 말고 아랫줄로 넘어가게 한다. (.eventAttend 에 wrap 이 걸려 있음) */
    flex: 1 1 180px;
    border: 2px solid var(--libGreen);
    border-radius: 10px;
    overflow: hidden;
    height: auto;
}

.peopleListTitle{
    background-color: var(--libGreen);
    color: var(--libDarkGreen);
    font-weight: bold;
    padding: 10px;
    margin: 0px;
    text-align: center;
    font-size: 1rem;
}

.attendPFP{
    border-radius: 100%;
    height: 32px;
    width: 32px;
}

.selectButton{
    background-color: var(--libGreen);
    color: var(--libDarkGreen);
    padding: 10px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    margin: 5px;
    
}

.peopleList li{
    display: flex;
    align-items: center;
    padding: 2px !important;
    gap: 3px;
    border-bottom: 1px solid #cccccc5e;
}

.peopleList li:last-child {
    border-bottom: none;
}

/* --------------------------------------------------------------------------------------*/

.commentList li {
    display: flex;
    flex-direction: column;
    padding: 5px !important;
    border-bottom: 1px solid #ccc;
}

.commentList li:last-child {
    border-bottom: none;
}

.commentHeader{
    display: flex;
    align-items: center;
    padding: 2px;
    gap: 7px;
    width: 100%;
}

.commentPFP{
    border-radius: 100%;
    height: 48px;
    width: 48px;
}

.commentInputContainer{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 25px;
    border: 2px solid var(--libGreen);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.commentInputContainer:focus-within {
    border-color: var(--libDarkGreen);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

#commentInput{
    flex: 1;
    border: none;
    background-color: transparent;
    border-radius: 20px;
    height: 45px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'SUITE-Regular', sans-serif;
    outline: none;
    color: #333;
    resize: none;
}

#commentInput::placeholder {
    color: #999;
}

.commentSubmitBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--libGreen);
    color: var(--libDarkGreen);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.commentSubmitBtn:hover {
    background-color: var(--libDarkGreen);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.commentSubmitBtn:active {
    transform: scale(0.95);
}

.commentSubmitBtn .material-symbols-outlined {
    font-size: 20px;
    font-weight: bold;
}

.commentButtonContainer {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 5px;
}

.commentEditBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: 1px solid var(--libGreen);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    color: var(--libDarkGreen);
}

.commentEditBtn:hover {
    background-color: var(--libGreen);
    color: #ffffff;
    transform: scale(1.1);
}

.commentEditBtn .material-symbols-outlined {
    font-size: 18px;
}

.commentContentWrapper {
    margin-top: 5px;
}

.commentEditInput {
    width: 100%;
    padding: 8px;
    border: 2px solid var(--libGreen);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'SUITE-Regular', sans-serif;
    outline: none;
}

.commentEditInput:focus {
    border-color: var(--libDarkGreen);
    box-shadow: 0 0 0 3px rgba(189, 232, 125, 0.1);
}

.commentEditButtonContainer {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.commentSaveBtn {
    padding: 6px 16px;
    background-color: var(--libGreen);
    color: var(--libDarkGreen);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.commentSaveBtn:hover {
    background-color: var(--libDarkGreen);
    color: #ffffff;
    transform: translateY(-1px);
}

.commentCancelBtn {
    padding: 6px 16px;
    background-color: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.commentCancelBtn:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
}

.eventDescription > p{
    margin-bottom: 2rem;
}