/* 원우아이템 페이지 전용 스타일 */

/* CAU 블루 색상 */
.cau-blue {
    background-color: var(--cau-blue);
}

/* 섹션 스타일 - user.html과 동일한 영역 확보 */
.user-item-section {
    padding: 3rem 1.5rem;
}

.user-item-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 페이지 헤더 */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.page-header .title {
    margin-bottom: 0;
    color: #363636;
    font-weight: 600;
}

/* 1. 검색필터 영역 */
.search-filter-section {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-input-section {
    margin-bottom: 1.5rem;
}

.search-input-section .input {
    border-radius: 8px;
    border: 2px solid #e4e5e6;
    font-size: 1rem;
    height: 3rem;
}

.search-input-section .input:focus {
    border-color: var(--cau-blue);
    box-shadow: 0 0 0 0.125em rgba(0, 116, 188, 0.15);
}

.search-input-section .button {
    height: 3rem;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    padding: 0.5rem 1rem;
}

.search-input-section .button:hover {
    background-color: #005a9a;
}

/* 카테고리 필터 섹션 */
.category-filter-section {
    margin-top: 1rem;
}

.category-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid #ddd;
    background-color: white;
    color: #666;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    border-color: var(--cau-blue);
    color: var(--cau-blue);
}

.category-btn.active {
    background-color: var(--cau-blue);
    color: white;
    border-color: var(--cau-blue);
}

.category-btn.active:hover {
    background-color: #005a9a;
    border-color: #005a9a;
}

/* 결과 헤더 (카운트 + 등록 버튼) */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.register-button .button {
    border-radius: 6px;
    font-weight: 600;
    border: none;
    padding: 0.5rem 1rem;
}

.register-button .button:hover {
    background-color: #005a9a;
}

/* 2. 데이터 표출 영역 */
.data-display-section {
    margin-bottom: 2rem;
}

.result-count p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.result-count span {
    color: var(--cau-blue);
    font-weight: 600;
}

/* 아이템 카드 컨테이너 */
.item-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* 아이템 카드 스타일 - main.html과 동일한 가로형 레이아웃 */
.item-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--cau-blue);
}

.item-card-body {
    display: flex;
    padding: 1.5rem;
    align-items: flex-start;
}

/* 아이템 이미지 섹션 */
.item-image-section {
    width: 120px;
    height: 90px;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.item-image-section img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

/* 아이템 정보 섹션 */
.item-info-section {
    flex: 1;
    min-width: 0;
    position: relative;
}

/* 카카오톡 버튼 스타일 */
.kakao-talk-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background-color: #FEE500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 2;
}

.kakao-talk-btn:hover {
    transform: scale(1.1);
}

.kakao-talk-btn img {
    width: 22px;
    height: 22px;
}

.item-company {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 0.15rem;
    font-weight: 500;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    padding-right: 40px; /* 카카오톡 버튼 공간 확보 */
}

.item-member-line {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.manager-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.manager-label {
    font-weight: 600;
    color: #444;
    font-size: 0.85rem;
}

.manager-name {
    font-weight: 500;
    color: #333;
}

.manager-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.1rem;
}

.manager-phone {
    color: #666;
    font-size: 0.85rem;
}

.manager-separator {
    color: #ccc;
    font-size: 0.75rem;
}

.manager-email {
    color: #666;
    font-size: 0.85rem;
    word-break: break-all;
}

.member-name {
    font-weight: 500;
    color: #333;
}

.member-separator {
    margin: 0 0.4rem;
    color: #ccc;
}

.member-gisu {
    color: var(--cau-blue);
    font-weight: 500;
}

.member-type {
    color: #888;
}

.item-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.4;
}

.item-description p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 3. 페이징 처리 영역 */
.pagination-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.pagination-previous {
    order: 1;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    color: #666;
    font-weight: 500;
    background: white;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.pagination-list {
    order: 2;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.pagination-next {
    order: 3;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    color: #666;
    font-weight: 500;
    background: white;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.pagination-previous:hover,
.pagination-next:hover {
    border-color: var(--cau-blue);
    color: var(--cau-blue);
    background-color: #f8f9fa;
}

.pagination-previous.is-disabled,
.pagination-next.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-list li {
    list-style: none;
}

.pagination-link {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    color: #666;
    font-weight: 500;
    background: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.pagination-link:hover {
    border-color: var(--cau-blue);
    color: var(--cau-blue);
    background-color: #f8f9fa;
}

.pagination-link.is-current {
    background-color: var(--cau-blue);
    border-color: var(--cau-blue);
    color: white;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .user-item-section {
        padding: 2rem 1rem;
    }
    
    .search-filter-section {
        padding: 1.5rem;
    }
    
    .search-input-section .field.has-addons {
        display: block;
    }
    
    .search-input-section .control.is-expanded {
        margin-bottom: 1rem;
    }
    
    .search-input-section .button {
        width: 100%;
    }
    
    .category-buttons {
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    .category-btn {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .result-header .register-button {
        width: 100%;
        text-align: right;
    }
    
    .item-cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .item-card-body {
        padding: 1.25rem;
    }
    
    .item-image-section {
        width: 100px;
        height: 75px;
        margin-right: 1rem;
    }
    
    .pagination-container {
        gap: 0.25rem;
        justify-content: center;
    }
    
    .pagination-previous {
        order: 1;
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .pagination-list {
        order: 2;
    }
    
    .pagination-next {
        order: 3;
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .pagination-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        min-width: 35px;
    }
    
    .item-member-line {
        font-size: 0.8rem;
        gap: 0.15rem;
    }
    
    .manager-label {
        font-size: 0.75rem;
    }
    
    .manager-phone, .manager-email {
        font-size: 0.75rem;
    }
    
    .manager-contact {
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .user-item-section {
        padding: 1.5rem 0.75rem;
    }
    
    .page-header .title {
        font-size: 1.5rem;
    }
    
    .page-header .is-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-header .button {
        width: 100%;
        justify-content: center;
    }
    
    .search-filter-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .item-card-body {
        padding: 1rem;
    }
    
    .item-image-section {
        width: 80px;
        height: 60px;
        margin-right: 0.75rem;
    }
    
    .pagination-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .pagination-container {
        gap: 0.2rem;
    }
    
    .pagination-previous {
        order: 1;
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .pagination-list {
        order: 2;
    }
    
    .pagination-next {
        order: 3;
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .pagination-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
        min-width: 30px;
    }
    
    .item-member-line {
        font-size: 0.75rem;
    }
    
    .manager-label {
        font-size: 0.7rem;
    }
    
    .manager-phone, .manager-email {
        font-size: 0.7rem;
    }
}

.popup-container{
    padding: 5px 0px 5px 0px;
}

.popup-content{
    padding: 10px 0px 10px 0px;
}