@charset "utf-8";
/* INDIEPD 테마 CSS - 유튜브 인터페이스 스타일 */

/* 전체 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Noto Sans KR', sans-serif;
    background-color: #f9f9f9;
    color: #030303;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #030303;
}

ul, li {
    list-style: none;
}

/* 헤더 컨테이너 - 강제로 한 줄에 표시되도록 수정 */
#indiepd-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

#indiepd-header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 요소들 사이 간격 균등 배분 */
    height: 100%;
    padding: 0 16px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative; /* 검색창 절대 위치 기준 */
}

/* 로고 영역 */
.logo-area {
    display: flex;
    align-items: center;
    flex: 0 0 auto; /* 크기 고정 */
    z-index: 1; /* 검색창 위에 표시 */
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 24px;
    margin-right: 8px;
}

.site-title {
    font-size: 16px;
    font-weight: 700;
    color: #030303;
    white-space: nowrap;
}

/* 검색 영역 - 기본 스타일 수정 */
.search-area {
    display: flex;
    align-items: center;
    position: absolute; /* 절대 위치로 설정 */
    left: 50%; /* 부모 요소 기준으로 가운데 정렬 */
    transform: translateX(-50%); /* 가운데 정렬 */
    max-width: 400px; /* 500px에서 400px로 최대 너비 축소 */
    min-width: 200px; /* 최소 너비 */
    width: 100%; /* 화면 크기에 따라 유동적으로 확장 */
}

/* 검색창 내부 스타일 */
.search-form {
    display: flex;
    align-items: center;
    width: 100%; /* 부모 요소의 너비를 채움 */
    border-bottom: 1px solid #ccc;
}

.search-input {
    flex: 1; /* 입력 필드가 가능한 공간을 모두 차지 */
    height: 40px;
    padding: 0 16px;
    border: none;
    background-color: transparent;
    font-size: 14px;
    outline: none;
}

.search-button {
    flex: 0 0 40px; /* 버튼 크기 고정 */
    height: 40px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #606060;
}

/* 알림 버튼 스타일 */
.notification-area {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
    z-index: 1;
}

.notification-button {
    background: none;
    border: none;
    color: #606060;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    position: relative;
}

.notification-button:hover {
    color: #cc0000;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: 0;
    background-color: #cc0000;
    color: white;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    line-height: 14px;
    text-align: center;
}

/* 메인 컨테이너 스타일 */
#indiepd-container {
    padding-top: 42px; /* 헤더 높이만큼 패딩 */
    padding-bottom: 56px; /* 하단 네비게이션 높이만큼 패딩 */
    width: 100%;
}

#indiepd-container .at-container,
#indiepd-container .at-body,
#indiepd-container .at-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

/* 게시판 상단 타이틀 부분만 여백 유지 */
.at-title {
    padding: 15px !important;
}

.indiepd-content {
    padding: 16px 6px;
    max-width: 1200px !important;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-height: calc(100vh - 42px - 56px); /* 헤더(42px) + 하단네비(56px) 제외한 높이 */    
}

/* 메인 페이지 스타일 */
.indiepd-main-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.indiepd-widget-area {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 16px;
}

.widget-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.widget-inner {
    width: 100%;
}

/* 최신글 위젯 스타일 조정 */
.lat {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.lat ul {
    padding: 0;
}

.lat li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lat li:last-child {
    border-bottom: 0;
}

.lat .lt_title {
    font-weight: 500;
}

.lat .lt_info {
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

/* 카테고리 탭 스타일 */
.indiepd-category-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 0;
    margin-bottom: 16px;
    scrollbar-width: none; /* Firefox */
}

.indiepd-category-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.indiepd-category-tabs .tab {
    padding: 8px 16px;
    margin-right: 8px;
    background-color: #f0f0f0;
    border-radius: 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.indiepd-category-tabs .tab.active {
    background-color: #030303;
    color: #fff;
}

/* 슬라이드 메뉴 공통 스타일 */
.indiepd-slide-menu {
    position: fixed;
    top: 0;
    height: 100%;
    width: 280px;
    background-color: #fff;
    z-index: 1100;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.left-slide {
    left: 0;
    transform: translateX(-100%);
}

.right-slide {
    right: 0;
    transform: translateX(100%);
}

.left-slide.active {
    transform: translateX(0);
}

.right-slide.active {
    transform: translateX(0);
}

.slide-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.slide-menu-header .site-logo {
    display: flex;
    align-items: center;
}

.slide-menu-header .site-logo img {
    height: 24px;
    margin-right: 8px;
}

.slide-close-btn {
    background: none;
    border: none;
    color: #606060;
    font-size: 18px;
    cursor: pointer;
}

.slide-menu-content {
    padding: 16px;
}

/* /* 좌측 메뉴 스타일 */
.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-group-item {
    margin-bottom: 8px; /* 기존 16px에서 8px로 간격 축소 */
}

.menu-label {
    display: flex;
    align-items: center;
    font-size: 15px; /* 글자 크기 */
    font-weight: bold;
    color: #333;
    text-decoration: none;
    padding: 6px 10px; /* 메뉴 전체 패딩 */
    background-color: #f9f9f9;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.menu-label i {
    margin-right: 8px; /* 아이콘과 텍스트 사이 간격 추가 */
    font-size: 16px; /* 아이콘 크기 */
    color: #333; /* 아이콘 색상 */
}

.menu-label:hover {
    background-color: #e9e9e9;
}

/* 하위 메뉴 스타일 */
.sitemap-submenu {
    list-style: none;
    padding-left: 32px; /* 기존 16px에서 32px로 들여쓰기 증가 */
    margin-top: 4px; /* 기존 8px에서 4px로 축소 */
}

.sitemap-submenu li {
    margin-bottom: 4px; /* 기존 8px에서 4px로 축소 */
}

.sitemap-submenu li a {
    font-size: 14px; /* 글자 크기 약간 축소 */
    color: #666;
    text-decoration: none;
    padding: 4px 8px; /* 기존 6px 12px에서 4px 8px로 축소 */
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sitemap-submenu li a:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* 우측 사용자 메뉴 스타일 */
.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-image img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.profile-name {
    font-size: 16px;
    font-weight: 500;
}

.profile-point {
    font-size: 14px;
    color: #606060;
}

.user-menu-list li {
    margin-bottom: 4px;
}

.user-menu-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #030303;
    padding: 8px 0;
}

.user-menu-list li a i {
    width: 20px;
    text-align: center;
}
.profile-signature-balloon {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: #fff;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 10px 18px;
    font-size: 13px;
    min-width: 120px;
    max-width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
    z-index: 10;
}
.profile-signature-balloon:before {
    content: "";
    position: absolute;
    top: -10px;
    left: 24px; /* 꼬리를 왼쪽 상단으로 이동 */
    transform: none; /* 가운데 정렬 해제 */
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
    filter: drop-shadow(0 -1px 0 #e0e0e0);
}

/* 우측 메뉴 관리자 구분선 */
.admin-menu-divider {
    height: 1px;
    background-color: #eee;
    margin: 10px 0;
}
/* 로그인 폼 스타일 */
.login-form {
    padding: 16px 0;
}

.login-form .form-group {
    margin-bottom: 16px;
}

.login-form .form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #606060;
}

.login-form .form-group input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.login-form .login-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 13px;
}

.login-form .login-btn, 
.login-form .register-btn {
    display: block;
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    cursor: pointer;
}

.login-form .login-btn {
    background-color: #cc0000;
    color: #fff;
    border: none;
}

.login-form .register-btn {
    background-color: #f0f0f0;
    color: #030303;
    border: 1px solid #ccc;
}

/* 알림 메뉴 탭 스타일 */
.notification-tabs {
    display: flex;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.tab-button {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    text-align: center;
}

.tab-button.active {
    color: #cc0000;
    border-bottom: 2px solid #cc0000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 알림 및 쪽지 리스트 스타일 */
.notification-list, .memo-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.notification-item, .memo-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.notification-item:last-child, .memo-item:last-child {
    border-bottom: none;
}

.notification-item a, .memo-item a {
    display: block;
    color: #333;
    text-decoration: none;
}

.noti-info, .memo-sender, .memo-content {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.noti-date, .memo-date {
    display: block;
    color: #888;
    font-size: 12px;
}

.memo-sender {
    font-weight: 500;
}

.empty-list, .login-required {
    text-align: center;
    color: #888;
    padding: 20px 0;
    font-size: 14px;
}

.more-link {
    text-align: center;
    margin-top: 15px;
}

.more-link a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
}

.more-link a:hover {
    background-color: #e0e0e0;
}

/* 하단 네비게이션 스타일 */
#indiepd-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background-color: #fff;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-list {
    display: flex;
    justify-content: space-around;
    height: 100%;
}

.nav-item {
    flex: 1;
    position: relative;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 4px 0;
    color: #606060;
    font-size: 11px;
}

.nav-link i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-link.active {
    color: #cc0000;
}

/* 서브메뉴 스타일 */
.submenu-container {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 990;
}

.nav-item.active .submenu-container {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.submenu {
    padding: 8px 0;
}

.submenu li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: #030303;
}

.submenu li a:hover {
    background-color: #f0f0f0;
}

/* 푸터 스타일 */
#indiepd-footer {
    background-color: #212121;
    color: #aaa;
    padding: 24px 16px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    height: 24px;
    margin-right: 8px;
}

.footer-logo .site-title {
    color: #fff;
}

.footer-info p {
    font-size: 12px;
    margin-bottom: 8px;
}

.footer-info a {
    color: #fff;
}

/* 알림 메뉴 스타일 */
.notification-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-button {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
}

.tab-button.active {
    border-bottom: 2px solid #4a90e2;
    color: #4a90e2;
}

.tab-content {
    display: none;
    padding: 15px;
}

.tab-content.active {
    display: block;
}

/* 알림 리스트 스타일 */
.notification-list,
.memo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-item,
.memo-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.notification-item a,
.memo-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.noti-info,
.memo-header {
    display: block;
    margin-bottom: 5px;
}

.noti-date,
.memo-date {
    color: #888;
    font-size: 12px;
}

.memo-from {
    font-weight: bold;
    margin-right: 10px;
}

.memo-text {
    color: #666;
    font-size: 13px;
}

.empty-list,
.login-required {
    text-align: center;
    padding: 20px;
    color: #888;
}

.more-link {
    text-align: center;
    padding: 10px;
}

.more-link a {
    color: #4a90e2;
    text-decoration: none;
}

/* 웹진 리스트 스타일 */
.webzine-list {
    padding: 20px;
}

.webzine-item {
    display: flex;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.webzine-item .thumb {
    flex: 0 0 300px;
}

.webzine-item .thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.webzine-item .content {
    flex: 1;
    padding: 15px;
}

.webzine-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.webzine-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .webzine-item {
        flex-direction: column;
    }
    
    .webzine-item .thumb {
        flex: none;
    }
}


/* 모바일 스타일 */
@media (max-width: 768px) {
    .header-container {
        justify-content: space-between;
        padding: 0 8px;
    }

    .logo-area {
        flex: 0 0 40px;
        margin-right: 8px;
    }
    
    .search-area {
        flex: 1;
        max-width: 250px;
        min-width: auto;
        position: static;
        transform: none;
        margin: 0 8px;
    }
    
    .search-form {
        width: 100%;
        max-width: 100%;
    }
    
    .search-input {
        width: 100%;
        padding: 0 8px;
        font-size: 14px;
    }
    
    .search-button {
        flex: 0 0 32px;
        width: 32px;
    }
    
    .notification-area {
        flex: 0 0 40px;
        margin: 0;
    }

    .site-title {
        display: none;
    }
}

/* 데스크톱 스타일 */
@media (min-width: 768px) {
    .indiepd-slide-menu {
        width: 360px;
    }
    
    .indiepd-content {
        padding: 24px;
    }
    
    .indiepd-widget-area {
        padding: 20px;
    }
    
    .widget-title {
        font-size: 20px;
    }
    
    .submenu li a {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .footer-logo .site-title {
        font-size: 18px;
    }
}

/* 우측 슬라이드 메뉴가 .active일 때 무조건 보이게 */
#indiepd-user-menu.right-slide {
    display: block !important;
    pointer-events: auto;
    opacity: 1;
    transition: transform 0.3s;
}
#indiepd-user-menu.right-slide {
    right: 0;
    transform: translateX(100%);
}
#indiepd-user-menu.right-slide.active {
    transform: translateX(0);
}

