/* static/css/style.css 전체 소스 */

/* 1. 폰트 및 기본 설정 */
:root {
    --gold: #ffc107;
    --dark-overlay: rgba(0, 0, 0, 0.75);
    --glass-bg: rgba(10, 10, 10, 0.65);
    --border-color: rgba(255, 255, 255, 0.15);
}

body {
    background-color: #000;
    font-family: 'Noto Sans KR', sans-serif;
    overflow-x: hidden;
}

/* 2. 배경 이미지 설정 */
.main-container {
    background-image: url('../images/bg_main.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    padding-bottom: 100px;
}

/* 3. 유틸리티 */
.text-gold { color: var(--gold) !important; }
.fw-black { font-weight: 900 !important; }

/* 4. 네비게이션 바 (50px 슬림 고정) */
.navbar {
    padding: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
    transition: all 0.3s ease;
}

/* 5. 로고 설정 */
.logo-enlarged {
    max-height: 40px !important; /* 50px 바에 맞게 조정 */
    width: auto;
    object-fit: contain;
}

/* 6. 메뉴 글씨 수직 중앙 정렬 */
.navbar-nav .nav-link {
    font-size: 1rem;
    line-height: 50px; /* 높이 50px에 맞춤 */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transition: color 0.3s;
}
.navbar-nav .nav-link:hover {
    color: var(--gold) !important;
}

/* 7. 헤더 아이콘 영역 */
.header-icons {
    height: 50px;
    display: flex;
    align-items: center;
}

/* 8. 검색창 아이콘 */
.search-bar-wrapper i.fa-search.text-gold { opacity: 0.8; }

/* 9. 유리 질감 패널 */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 10. 거래내역 리스트 */
.transaction-list .d-flex {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 11. 비디오 썸네일 */
.video-thumbnail i {
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
    cursor: pointer;
    transition: transform 0.3s;
}
.video-thumbnail i:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* 12. 버튼 스타일 */
.btn-warning {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s;
}
.btn-warning:hover {
    background-color: #ffdb4d !important;
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.6);
}

/* 13. [핵심] 드롭다운 메뉴 스타일 (수정됨) */
.user-menu-dropdown {
    position: absolute;
    top: 50px; /* 네비게이션 높이(50px)만큼 띄움 */
    right: 0;
    width: 200px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    overflow: hidden;
    z-index: 9999;
    
    /* 평소에는 완벽하게 숨김 */
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* 클릭해서 'show' 클래스가 붙었을 때만 보임 */
.user-menu-dropdown.show {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    padding-bottom: 10px;
}

.dropdown-item-custom {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item-custom:hover {
    background: rgba(255, 193, 7, 0.2);
    color: var(--gold);
}

/* 14. 로그인/회원가입 폼 스타일 */
.auth-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
}

.custom-form input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 12px;
    border-radius: 5px;
    width: 100%;
    margin-bottom: 15px;
}

.custom-form input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--gold) !important;
    outline: none;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.custom-form label {
    color: #bbb;
    margin-bottom: 5px;
    display: block;
    font-size: 0.9rem;
}

.custom-form .helptext { display: none; }