
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: #2c2f33;
    color: #ffffff;
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.profile-group {
    display: flex;
    justify-content: center;
    gap: 50px; /* 프로필 간 간격 */
    margin-bottom: 60px;
}

.profile-section {
    text-align: center;
}

.profile-pic {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 4px solid #7289da;
    margin-bottom: 20px;
    background-image: url('images/deffault_profile.png');
    background-size: cover; /* 이미지가 원에 꽉 차도록 설정 */
    background-position: center; /* 이미지가 중앙에 오도록 설정 */
    display: inline-block; /* To center it properly */
}

h1 {
    color: #ffffff;
    font-size: 2.5em;
    margin: 0;
}

.profile-role {
    color: #99aab5; /* 이전 색상으로 되돌림 */
    font-size: 0.9em; /* 살짝 더 크게 */
    margin-top: 5px;
    display: block; /* 새로운 줄에 표시 */
}

h2 {
    color: #7289da;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.app-card {
    background-color: #23272a;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.app-card a {
    text-decoration: none;
    color: #ffffff;
}

.app-thumbnail {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-bottom: 3px solid #7289da;
}

.app-title {
    padding: 20px;
    font-weight: bold;
    font-size: 1.1em;
}

footer {
    background-color: #23272a;
    color: #99aab5;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

footer a {
    color: #7289da;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Usage Page Specific Styles */
.usage-body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex; /* flexbox를 사용하여 자식 요소 정렬 */
    flex-direction: column; /* 세로 방향으로 정렬 */
}

.usage-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh; /* 전체 화면 높이 사용 */
}

.language-selector {
    padding: 15px 20px;
    background-color: #23272a;
    text-align: right;
    border-bottom: 1px solid #424549;
}

.language-selector label {
    color: #ffffff;
    margin-right: 10px;
}

.language-selector select {
    background-color: #424549;
    color: #ffffff;
    border: 1px solid #7289da;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

.usage-content {
    display: flex;
    flex: 1; /* 남은 공간을 모두 차지하도록 설정 */
    width: 100vw;
    height: calc(100vh - 60px); /* 언어 선택기 높이만큼 제외 */
}

.split-section {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    transition: width 0.4s ease-in-out;
}

/* Make sections take full width on smaller screens */
@media (max-width: 768px) {
    .usage-content {
        flex-direction: column;
    }
    .split-section {
        width: 100%;
        height: 50%;
    }
}

.split-section a {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column; /* 세로 정렬을 위해 추가 */
    justify-content: flex-end; /* 내용을 아래쪽으로 정렬 */
    align-items: center; /* 가로 중앙 정렬 유지 */
    text-decoration: none;
    color: white;
    font-size: 2.5em;
    font-weight: bold;
    position: relative; /* For z-indexing text */
    z-index: 2;
}

.split-section .bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
    filter: brightness(1); /* 기본 밝기를 1로 설정하여 어둡지 않게 함 */
}

.split-section:hover .bg-image {
    transform: scale(1.1);
    filter: brightness(0.5); /* 호버 시 어둡게 */
}

.split-section .overlay-text {
    background-color: rgba(0, 0, 0, 0.2); /* 기본 배경을 더 투명하게 */
    padding: 20px 40px;
    border-radius: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    transform: scale(1); /* 기존 transform 유지 */
    text-align: center;
    position: relative; /* z-index를 적용하기 위해 position 설정 */
    z-index: 3; /* 이미지(z-index:1)보다 높게 설정 */
    margin-bottom: 20vh; /* 푸터 기준으로 20% 위로 올림 */
}

.split-section:hover .overlay-text {
    background-color: rgba(114, 137, 218, 0.8); /* 호버 시 디스코드 색상으로 */
    transform: scale(1.05);
}

.usage-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(35, 39, 42, 0.8);
    color: #99aab5;
    text-align: center;
    padding: 15px 0;
    z-index: 10;
    font-size: 1em;
}

.usage-footer p {
    margin: 0;
    display: inline;
    margin-left: 20px;
}

.usage-footer a {
    color: #7289da;
    text-decoration: none;
}

.usage-footer a:hover {
    text-decoration: underline;
}
