/* 기본 스타일 및 CSS 변수 */


/* 폰트 선언 */
@font-face {
    font-family: 'Jalnan';
    src: url('/styles/JalnanOTF.otf') format('opentype'),
         url('/styles/Jalnan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


:root {
    --main-blue: #005CE3;
    --main-bg: #EDF2F6;
    --white: #FDFDFD;
    --black: #111111;
    --gray-01: #DFDFDF;
    --gray-02: #646464;
    --gray-03: #515151;
    --gray-border: #F4F4F4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--main-bg);
    color: var(--black);
    line-height: 1.5;
}

/* 상단 네비게이션 */
.top-nav {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    box-shadow: 0px 5px 15px 0px rgba(233, 233, 233, 0.44);
    z-index: 100;
}

.nav-container {
    max-width: 1920px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    color: var(--main-blue);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 메뉴 아이템들을 오른쪽 정렬 */
    gap: 8px;
}

.nav-item {
    color: var(--gray-03);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: var(--main-bg);
    color: var(--main-blue);
}

/* 네비게이션 버튼 스타일 */
.nav-btn {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    transition: all 0.3s ease !important;
}

.nav-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
    color: white !important;
    background: linear-gradient(135deg, #5a6fd8, #6a4190) !important;
}

.nav-btn.active {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    color: white !important;
}

/* 쪽지함 버튼 스타일 (새 기능) */
.messages-btn {
    background: var(--main-blue) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
    position: relative;
}

.messages-btn:hover {
    background: #004bb3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 92, 227, 0.3) !important;
    color: white !important;
}

.messages-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 쪽지함 알림 배지 (새 기능) */
.messages-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    border: 2px solid white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.messages-btn.has-unread::after {
    opacity: 1;
    transform: scale(1);
}

.nav-divider {
    width: 0.5px;
    height: 18px;
    background-color: var(--gray-01);
}

/* 메인 컨테이너 */
.main-container {
    margin-top: 68px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* 서버실 카테고리 제거됨 */

/* 검색 섹션 */
.search-section {
    margin-bottom: 20px;
}

.search-bar {
    display: flex;
    gap: 12px;
    width: 100%;
}

.search-input {
    flex: 1;
    background-color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--gray-02);
    outline: none;
    height: 38px;
}

.search-btn {
    background-color: var(--main-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 140px;
    height: 38px;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background-color: #0049c7;
}

/* 필터 섹션 */
.filter-section {
    background-color: var(--white);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.filter-title {
    background-color: var(--main-blue);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    min-width: 100px;
    max-width: 100px;
    text-align: center;
    white-space: nowrap;
    height: fit-content;
    flex-shrink: 0;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
    align-items: flex-start;
}

/* 멀티라인 CSS 제거됨 - 이제 모든 필터가 자연스럽게 wrap됨 */

.filter-option {
    background-color: var(--gray-01);
    color: var(--black);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 120px;
    text-align: center;
}

.filter-option:hover {
    background-color: var(--main-bg);
}

.filter-option.active {
    background-color: var(--main-bg);
    border: 1px solid var(--main-blue);
}



/* 상세 필터 토글 섹션 */
.filter-toggle-section {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.filter-expand-btn {
    background: linear-gradient(135deg, var(--main-blue) 0%, #0049c7 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 92, 227, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.filter-expand-btn:hover {
    background: linear-gradient(135deg, #0049c7 0%, #003a9e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 92, 227, 0.3);
}

.filter-expand-btn .btn-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.filter-expand-btn.expanded .btn-icon {
    transform: rotate(180deg);
}

/* 상세 필터 컨테이너 */
.detail-filters-container {
    margin-top: 20px;
    border-top: 2px solid var(--main-blue);
    padding-top: 15px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-filters-container.hidden {
    display: none;
}

.filter-toggle {
    display: flex;
    justify-content: flex-end;
    padding: 5px;
}

.fold-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* PC 목록 테이블 */
.pc-list-section {
    width: 100%;
}

.table-container {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.table-header {
    background-color: var(--gray-border);
    border-bottom: 0.5px solid var(--gray-01);
    display: grid;
    grid-template-columns: 1fr 1fr 2.2fr 0.8fr 0.8fr 0.8fr 1.4fr 1fr 0.9fr 1fr 1fr 1fr;
    align-items: center;
    height: 48px;
    padding: 0 20px;
    border-radius: 8px 8px 0 0;
}

.header-cell {
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
    text-align: center;
    padding: 10px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.table-body {
    background-color: var(--white);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2.2fr 0.8fr 0.8fr 0.8fr 1.4fr 1fr 0.9fr 1fr 1fr 1fr;
    align-items: center;
    height: 65px;
    padding: 0 20px;
    border-bottom: 0.5px solid var(--gray-01);
    transition: all 0.2s ease;
}

.table-row:hover {
    background-color: #f8f9fa;
}

.table-row:nth-child(4) {
    background-color: #f6f6f6;
}

.table-cell {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    text-align: center;
    padding: 8px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
}

.table-cell.product-id {
    flex-direction: column;
    text-align: center;
}

.table-cell.os-info {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    justify-content: center;
    padding: 4px 4px;
    font-size: 13px;
}

.table-cell.cpu-info {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    justify-content: center;
    font-size: 13px;
}

.table-cell.gpu-info {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    justify-content: center;
    font-size: 13px;
}

.table-cell.ip-info {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    justify-content: center;
    font-size: 13px;
}



.computer-icon {
    background-color: var(--white);
    border: 1px solid var(--main-blue);
    border-radius: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-blue);
}

.purchase-btn {
    background-color: var(--main-blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 34px;
}

.purchase-btn:hover {
    background-color: #0049c7;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.page-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    color: var(--gray-02);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background-color: var(--gray-01);
}

.page-btn.active {
    background-color: var(--main-blue);
    color: var(--white);
}

.page-btn.prev,
.page-btn.next {
    font-size: 14px;
}

/* 반응형 디자인 */
@media (max-width: 1920px) {
    .main-container,
    .search-bar,
    .filter-section,
    .pc-list-section {
        width: 100%;
        max-width: 1860px;
    }
}

@media (max-width: 1400px) {
    .table-header,
    .table-row {
        grid-template-columns: 80px 100px 200px 70px 65px 70px 140px 100px 75px 85px 85px 90px;
        font-size: 14px;
    }
    
    .filter-options {
        gap: 3px;
    }
    
    .filter-option {
        width: 140px;
        font-size: 14px;
        padding: 8px 12px;
    }
}

@media (max-width: 1024px) {
    .server-categories {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .category-list {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .category-item {
        min-width: 150px;
        font-size: 14px;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-title {
        min-width: 100%;
        text-align: center;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .table-header,
    .table-row {
        min-width: 1200px;
    }
}

/* 햄버거 메뉴 버튼 (데스크톱에서 숨김) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    gap: 4px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: var(--black);
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* 햄버거 버튼 활성화 시 X 모양으로 변경 */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 모바일 메뉴 오버레이 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 모바일 사이드 메뉴 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-01);
    background-color: var(--main-bg);
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-02);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background-color: var(--gray-01);
    color: var(--black);
}

.mobile-menu-content {
    padding: 20px 0;
}

.mobile-menu-item {
    display: block;
    padding: 15px 20px;
    color: var(--black);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-border);
    transition: all 0.2s ease;
}

.mobile-menu-item:hover {
    background-color: var(--main-bg);
    color: var(--main-blue);
}

.mobile-menu-item.active {
    background-color: var(--main-blue);
    color: var(--white);
    font-weight: 600;
}

/* 모바일 버전 임시 비활성화 - 나중에 768px로 복구 */
@media (max-width: 0px) {
    .main-container {
        padding: 0 15px;
    }
    
    /* 데스크톱 네비게이션 숨기기 */
    .nav-menu {
        display: none;
    }
    
    /* 햄버거 버튼 보이기 */
    .mobile-menu-btn {
        display: flex;
    }
    
    .search-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-btn {
        width: 100%;
    }
}

/* 로딩 상태 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--gray-02);
}

/* 빈 상태 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--gray-02);
    text-align: center;
}

.empty-state h3 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 500;
}

.empty-state p {
    font-size: 14px;
    line-height: 1.6;
}

/* 푸터 스타일 */
.main-footer {
    background-color: #2a2a2a;
    color: #e0e0e0;
    margin-top: 60px;
    width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--main-blue);
    padding-bottom: 8px;
    display: inline-block;
}

.company-details,
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.company-item,
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.company-item.address {
    align-items: flex-start;
}

.label {
    min-width: 90px;
    font-weight: 500;
    color: #b0b0b0;
    flex-shrink: 0;
}

.value {
    color: #e0e0e0;
    flex: 1;
}

.contact-link {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--main-blue);
}

/* 카카오톡 링크 스타일 */
.kakao-link {
    color: #FFCD00;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
}

.kakao-link:hover {
    color: #FFE55C;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-link {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-link.privacy {
    font-weight: 500;
    color: var(--main-blue);
}

.footer-link.privacy:hover {
    color: #3a7bff;
}

.separator {
    color: #666;
    font-size: 12px;
}

.footer-copyright {
    display: flex;
    align-items: center;
}

.footer-copyright p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* 푸터 반응형 디자인 - 모바일 버전 임시 비활성화 */
@media (max-width: 0px) {
    .footer-container {
        padding: 30px 15px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 25px;
    }

    .footer-title {
        font-size: 16px;
    }

    .company-item,
    .contact-item {
        font-size: 13px;
        gap: 10px;
    }

    .label {
        min-width: 80px;
        font-size: 13px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-links {
        order: 2;
    }

    .footer-copyright {
        order: 1;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 25px 15px 15px;
    }

    .company-item,
    .contact-item {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .label {
        min-width: auto;
        margin-bottom: 2px;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-link {
        font-size: 13px;
    }
}




























.notify-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.notify-modal-content {
  background: #fff;
  padding: 2em 2.5em;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  text-align: center;
  min-width: 300px;
}

.notify-modal h2 {
  margin-bottom: 0.5em;
  color: #377dff;
}

.notify-modal p {
  margin-bottom: 1.5em;
  color: #333;
}

.notify-modal button {
  background: #377dff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8em 1.6em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
  margin: 0 6px;
}
.notify-modal button.deny {
  background: #e0e0e0;
  color: #333;
}
.notify-modal button.deny:hover {
  background: #bdbdbd;
}
.notify-modal button:hover {
  background: #2356b8;
}

.hidden {
  display: none;
}
