/* 선생님 상세 페이지 전용 스타일 */

.page-header__img img {
    border: 4px solid rgba(255, 255, 255, 0.3);
}

/* Worksheet Cards (worksheet_list와 동일한 스타일) */
.worksheetsCard {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 15px;
}

.worksheetsCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.worksheetsCard__image {
    position: relative;
    overflow: hidden;
    padding-top: 56.62%; /* 710x402 비율 */
    border: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    transition: border-color 0.3s ease;
}

.worksheetsCard:hover .worksheetsCard__image {
    border-color: #000;
}

.worksheetsCard__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.worksheetsCard:hover .worksheetsCard__image img {
    transform: scale(1.05);
}

.worksheetsCard__image_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.worksheetsCard:hover .worksheetsCard__image_overlay {
    opacity: 1;
}

.worksheetsCard > .h-100 {
    padding: 15px 15px 0 15px;
}

.worksheetsCard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.worksheetsCard-footer__author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.worksheetsCard-footer__author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.worksheetsCard-footer__price {
    display: flex;
    gap: 8px;
    align-items: center;
}

.worksheetsCard-footer__price div:first-child {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.worksheetsCard-footer__price div:last-child {
    font-size: 18px;
    font-weight: 600;
    color: #6c5ce7;
}

/* Side Content (Hover Card) */
.side-content {
    position: relative;
}

/* Hover 레이어 썸네일 스타일 */
.hover-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.hover-thumbnail img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.side-content__item {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.side-content__item > div {
    border: 2px solid #000 !important;
}

/* 3컬럼 레이아웃에서 중앙 열(두 번째 카드)은 오른쪽에 레이어 표시 */
.side-content:nth-child(3n+2) .side-content__item {
    left: auto;
    right: 0;
    transform: translateX(0);
}

/* 3컬럼 레이아웃에서 왼쪽과 오른쪽 열은 가운데 정렬 */
.side-content:nth-child(3n+1) .side-content__item,
.side-content:nth-child(3n) .side-content__item {
    left: 50%;
    transform: translateX(-50%);
}

/* 호버시 레이어 표시 - 일시 비활성화 */
/*
.side-content:hover .side-content__item {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
*/

/* Pagination (worksheet_list와 동일한 스타일) */
.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pagination__button {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background-color: #f5f5f7;
    color: #6c5ce7;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination__button .icon {
    font-size: 12px;
}

.pagination__button:hover:not(:disabled) {
    background-color: #6c5ce7;
    color: white;
}

.pagination__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination__count {
    display: flex;
    align-items: center;
}

.pagination__count > * {
    position: relative;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    color: #1a1a1a;
}

.pagination__count > * + * {
    margin-left: 30px;
}

.pagination__count a {
    text-decoration: none;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.pagination__count a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 16px;
    height: 2px;
    transform: translateX(-50%);
    background-color: #6c5ce7;
    transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 0;
}

.pagination__count a:hover {
    color: #6c5ce7;
}

.pagination__count a.-count-is-active {
    color: #6c5ce7;
}

.pagination__count a.-count-is-active::after {
    opacity: 1;
}

.pagination__count span {
    color: #1a1a1a;
}

/* Responsive */
@media (max-width: 991px) {
    .side-content__item {
        display: none;
    }
}

@media (max-width: 767px) {
    .worksheetsCard-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
