/* === Windows XP 테마 전체 스타일 === */
body {
    background: #3A6EA5 url('https://i.imgur.com/kY1hG2x.jpg') no-repeat center center fixed; /* XP 'Bliss' 배경화면 */
    background-size: cover;
    margin: 0;
    font-family: "Tahoma", "Gulim", sans-serif; /* 굴림체 추가 */
    overflow: hidden;
    color: #000;
}

/* --- 메인 창 스타일 --- */
#main-content {
    position: absolute;
    top: 10px;
    left: 15px;
    right: 15px;
    bottom: 60px; /* 작업 표시줄 높이만큼 공간 확보 */
    background-color: #ECE9D8;
    border-top: 2px solid #FFFFFF;
    border-left: 2px solid #FFFFFF;
    border-right: 2px solid #4D4D4D;
    border-bottom: 2px solid #4D4D4D;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    overflow-y: auto;
    padding: 3px;
    z-index: 100;
}

/* XP 창 제목 표시줄 */
.window-header {
    background: linear-gradient(to right, #0055E3, #3B8CFD);
    padding: 3px 5px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px #000;
    margin-bottom: 8px;
}

/* 콘텐츠 영역 내부 패딩 */
.window-content {
    padding: 15px;
}


/* --- 작업 표시줄 & 시작 메뉴 --- */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, #245DDA, #2A69EA 50%, #245DDA 100%);
    border-top: 1px solid #4B85F3;
    display: flex;
    align-items: center;
    padding: 0 5px;
    z-index: 1000;
}

#start-button {
    background: linear-gradient(to bottom, #3BAE29, #57C843);
    border: 1px solid #3A8E2A;
    border-radius: 10px 10px 0 0;
    color: white;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 30px;
    cursor: pointer;
    box-shadow: inset 0 -3px 5px rgba(0,0,0,0.2);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}
#start-button img { width: 20px; height: 20px; margin-right: 5px; }

#start-menu-container {
    position: fixed;
    bottom: 40px;
    left: 0;
    width: 280px;
    height: 350px;
    background: linear-gradient(to bottom, #1E55D0, #2A69EA);
    border: 2px solid #0837AE;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    box-shadow: 5px -5px 15px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 1100;
}
#start-menu-container.open { display: flex; }

#start-menu-container .sidebar { width: 100%; height: 100%; background: transparent; position: static; }
#start-menu-container .menu { list-style: none; margin: 0; padding: 10px; }
#start-menu-container .menu li a { display: flex; align-items: center; padding: 8px; color: white; text-decoration: none; font-size: 14px; }
#start-menu-container .menu li a:hover { background-color: rgba(0, 0, 0, 0.3); }
#start-menu-container .menu .icon { width: 24px; height: 24px; margin-right: 10px; }


/* === 콘텐츠 페이지별 스타일 === */

/* --- 표 (Content Table) 스타일 --- */
.content-table-container, .info-container { /* 공통 컨테이너 */
    padding: 10px;
}
.content-table-container h1 { font-size: 20px; margin-bottom: 10px; }
table.winxp-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #808080;
}
table.winxp-table th, table.winxp-table td {
    border: 1px solid #D3CFC3;
    padding: 6px 8px;
    text-align: left;
    font-size: 12px;
}
table.winxp-table th {
    background: #ECE9D8;
    border-bottom: 2px solid #808080;
    font-weight: normal;
}
table.winxp-table tr:nth-child(even) { background-color: #F7F5F1; }
table.winxp-table tr:hover { background-color: #E0E0E0; }

/* --- 내 정보 (My Info) 스타일 --- */
.info-section {
    margin-bottom: 20px;
}
.info-section h2 {
    font-size: 16px;
    border-bottom: 1px solid #B5B5B5;
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}
.info-grid .item {
    background: white;
    border: 1px solid #B5B5B5;
    padding: 8px;
}

/* --- 카드 (License, Device, Game Cards) 스타일 --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 10px;
}
.winxp-card {
    background: #F5F5F5;
    border: 1px solid #808080;
    border-radius: 3px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    padding: 8px;
}
.winxp-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 1px solid #808080;
    margin-bottom: 8px;
}
.winxp-card h3 {
    font-size: 14px;
    margin: 0 0 5px 0;
}
.winxp-card p {
    font-size: 12px;
    margin: 0 0 8px 0;
    color: #333;
}
.winxp-card .tags { margin-bottom: 10px; }
.winxp-card .tag { background: #D3CFC3; padding: 2px 5px; font-size: 11px; border-radius: 2px; }
.winxp-button {
    width: 100%;
    padding: 5px;
    background-color: #ECE9D8;
    border: 1px outset #FFFFFF;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    color: black;
    cursor: pointer;
}
.winxp-button:active { border-style: inset; }

/* === 설명서 페이지 전용 스타일 === */
.manual-content {
    font-size: 13px;
    line-height: 1.7;
}

.manual-content h2 {
    font-size: 18px;
    color: #0055E3;
    border-bottom: 2px solid #0055E3;
    padding-bottom: 5px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.manual-content h3 {
    font-size: 15px;
    border-left: 4px solid #808080;
    padding-left: 8px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.manual-content ul, .manual-content ol {
    padding-left: 25px;
}

.manual-content li {
    margin-bottom: 8px;
}

.manual-content strong {
    color: #D80000;
}

/* --- 보유 장비 (Device Table) 추가 스타일 --- */
table.device-table th:nth-child(1) {
    width: 30%; /* 장비명 컬럼 너비 */
}
table.device-table th:nth-child(2) {
    width: 50%; /* 상세 사양 컬럼 너비 */
}
table.device-table th:nth-child(3) {
    width: 20%; /* 리뷰 링크 컬럼 너비 */
    text-align: center;
}
table.device-table td:nth-child(3) {
    text-align: center;
}
table.device-table .winxp-button {
    padding: 2px 10px; /* 버튼 크기 조절 */
}

/* === 시작 메뉴 - 하위 메뉴 스타일 (추가) === */
.submenu-container {
    position: relative; /* 하위 메뉴의 기준점 */
}

/* 메뉴 옆 화살표 스타일 */
.arrow {
    margin-left: auto; /* 화살표를 오른쪽 끝으로 보냄 */
    font-size: 10px;
}

/* 하위 메뉴 기본 스타일 (숨김) */
.submenu {
    position: absolute;
    left: 100%; /* 부모 메뉴의 바로 오른쪽에 위치 */
    top: 0;
    width: 200px;
    background: linear-gradient(to bottom, #1E55D0, #2A69EA);
    border: 2px solid #0837AE;
    border-radius: 5px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
    list-style: none;
    padding: 5px;
    margin: 0;
    display: none; /* 기본적으로 숨김 */
}

/* 하위 메뉴가 열렸을 때의 스타일 */
.submenu-container.open > .submenu {
    display: block;
}

/* 하위 메뉴 항목 스타일 */
.submenu li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    font-size: 13px;
}

.submenu li a:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* === 오른쪽 뷰어 패널 스타일 (추가) === */
#right-viewer-panel {
    position: fixed;
    top: 0;
    right: -70%; /* 기본적으로 화면 오른쪽에 숨김 */
    width: 70%; /* 화면의 70% 너비 */
    height: 100%;
    background-color: #ECE9D8;
    border-left: 2px solid #0837AE;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    transition: right 0.4s ease-in-out; /* 부드럽게 나타나는 효과 */
    z-index: 2000; /* 가장 위에 표시 */
    display: flex;
    flex-direction: column;
}

/* 뷰어 패널이 열렸을 때의 스타일 */
#right-viewer-panel.open {
    right: 0; /* 오른쪽 끝에 붙어서 나타남 */
}

/* 뷰어 패널 닫기 버튼 */
#viewer-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: #D80000;
    color: white;
    border: 1px outset white;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

/* 뷰어 패널 내부 iframe */
#right-viewer-panel iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === '준비 중' 팝업 스타일 === */
.popup-notification {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

/* === 하위 메뉴를 위로 열기 위한 스타일 (추가) === */
.submenu.submenu-up {
    top: auto; /* 기존 top 위치 해제 */
    bottom: 0; /* 부모 메뉴의 하단에 하위 메뉴의 하단을 맞춤 */
}