
/* 공유 목록 페이지 스타일 */
/* 버튼 스타일 */
.create-button {
    position: relative;
    margin-bottom: 20px;
    text-align: right;
}

/* 검색 영역 스타일 */
.search-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* 검색 폼 스타일 */
.search-container {
    display: flex;
    align-items: center;
}

.search-container input {
    width: 250px;
    margin-right: 10px;
}

/* 페이지네이션 스타일 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination-container .btn {
    min-width: 35px;
    height: 35px;
    padding: 5px;
    margin: 0 3px;
    font-size: 14px;
}

/* 목록 아이템 스타일 */
.list-item {
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    padding: 12px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.list-item:hover {
    background-color: #B6B09F;
}

/* 목록 헤더 스타일 */
.list-header {
    border-bottom: 2px solid #000000;
    display: flex;
    margin-bottom: 5px;
    font-weight: bold;
    padding: 10px 0;
}

/* 목록 컬럼 스타일 */
.list-col-id {
    width: 5%;
    text-align: center;
}

.list-col-title {
    width: 75%;
    padding-left: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-col-author {
    width: 10%;
    text-align: center;
}

.list-col-date {
    width: 10%;
    text-align: center;
}

/* 상세 페이지 스타일 */
/* 데이터 로딩 전 컨텐츠 영역 스타일 */
.content-placeholder {
    min-height: 20px;
    position: relative;
}

/* 로딩 중 표시 */
.loading-indicator {
    text-align: center;
    padding: 20px;
}

/* 타이틀 사이즈 조정 */
.hero-heading.smaller {
    font-size: 28px; /* 더 작은 폰트 사이즈 */
    line-height: 1.3;
    margin-bottom: 15px; /* 하단 여백 추가 */
}

/* 정보 영역 마진 추가 */
.info-spacing {
    margin-top: 10px;
}

/* 콘텐츠 줄바꿈 적용 */
.content-with-linebreaks {
    white-space: pre-line; /* 줄바꿈 유지 */
    line-height: 1.6; /* 줄 간격 개선 */
    width: 60%;
    margin: 0 auto;
}

/* 콘텐츠 영역 스타일 */
.content-area {
    width: 80%;
    margin: 0 auto;
}

/* 버튼 간격 조정 */
.btn-spacing {
    margin-right: 10px;
}

#subText {
    width: 580px;
    margin: 0 auto;
    font-size: 15px;
}

.indexSharing {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.imageBox {
    height: 245px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    background-color: white;
}


/* 모바일 반응형 */
@media (max-width: 768px) {
    .search-area {
        flex-direction: column;
        align-items: stretch;
    }

    .create-button {
        text-align: center;
        margin-bottom: 15px;
    }

    .search-container {
        width: 100%;
        margin-top: 10px;
    }

    .search-container input {
        width: 100%;
    }

    .content-with-linebreaks {
        width: 90%;
    }

    /* 모바일에서 컬럼 너비 조정 */
    .list-col-id {
        width: 15%;
    }

    .list-col-title {
        width: 45%;
    }

    .list-col-author {
        width: 20%;
    }

    .list-col-date {
        width: 20%;
    }

    /* 모바일에서 페이지네이션 버튼 크기 조정 */
    .pagination-container .btn {
        min-width: 30px;
        height: 30px;
        padding: 3px;
        margin: 0 2px;
        font-size: 12px;
    }

    #searchButton {
        width: 65px;
        padding: 11px;
    }

    #createSharingBtn {
        padding: 11px;
        margin-top: 10px;
    }

    #subText {
        width: 290px;
        margin: 0 auto;
    }

    .indexSharing {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .imageBox {
        height: 245px;
        overflow: hidden;
        margin: 0 auto;
        position: relative;
        background-color: white;
    }
}