/* ✅ 기본 배경 및 폰트 설정 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa; /* 피부 모드에 어울리는 부드러운 배경색 */
    overflow: hidden;
}

/* 스킨 모드 메인 컬러(블루) 고정 */
:root { --primary: #4a69bd !important; }
.logo span { color: var(--primary) !important; }


/* ==========================================
   ✅ 상단 네비게이션 바 (투명화 및 근육 모드와 동일한 간격)
   ========================================== */
.nav-menu {
    display: flex;
    align-items: center;
    height: 60px;
    background: transparent !important; /* 흰색 배경 날리기 */
    box-shadow: none !important; /* 그림자 날리기 */
    border: none !important;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 18px;
    font-weight: 900;
    margin-right: 30px;
    color: #2d3436;
}

.dropdown {
    height: 100%;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* 탭 버튼 스타일 (완전 투명, 근육 모드와 동일한 방식 적용) */
.drop-btn {
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer;
    color: #636e72 !important;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 15px !important;
    height: 100%;
    transition: all 0.3s ease !important;
    background: transparent !important; /* 그라데이션 완전 제거 */
    border: none !important;
    /* ✅ 핵심: 평상시엔 투명한 선, 헤더 맨 밑바닥에 위치함 (글자와 간격 넉넉함) */
    border-bottom: 3px solid transparent !important; 
    box-sizing: border-box;
}

/* 기존의 이상했던 확장 애니메이션 코드 완전 삭제 (display: none 처리) */
.drop-btn::after {
    display: none !important;
}

/* ✅ 마우스 호버 시 글자 진해지고 하단에 파란 선 표시 (근육 모드 완벽 일치) */
@media (hover: hover) and (pointer: fine) {
    .drop-btn:hover, .dropdown:hover .drop-btn {
        color: var(--primary) !important;
        font-weight: 700 !important;
        background: transparent !important;
        border-bottom: 3px solid var(--primary) !important;
    }
}

.private-badge {
    background: #dfe6e9;
    color: #636e72;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 12px;
    margin-left: 4px;
    font-weight: 800;
}


/* ==========================================
   ✅ 검색창 및 로그인 버튼 컬러 매핑
   ========================================== */
.search-container input {
    width: 140px !important;
    transition: width 0.4s ease, border-color 0.3s ease !important;
}
.search-container input:focus {
    width: 240px !important;
    border-color: var(--primary) !important;
    outline: none;
}

.btn-login-outline {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: transparent !important;
}
.btn-login-outline:hover {
    background: var(--primary) !important;
    color: white !important;
}


/* ==========================================
   ✅ 3D 캔버스 & 사이드 패널 공통 스타일
   ========================================== */
#skin-canvas-container {
    width: 100vw;
    height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skin-panel {
    display: none;
    position: fixed;
    top: 60px;
    right: 0;
    width: 400px;
    height: calc(100vh - 60px);
    background: #ffffff;
    box-shadow: -5px 0 20px rgba(0,0,0,0.05);
    z-index: 100;
    padding: 30px 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.skin-panel h2 {
    font-size: 18px;
    color: #2d3436;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    cursor: pointer;
    font-size: 24px;
    color: #b2bec3;
    transition: color 0.2s;
}
.close-btn:hover {
    color: #2d3436;
}


/* ==========================================
   ✅ 피부 커뮤니티 & 기존 패널 UI 유지
   ========================================== */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.active-tab {
    flex: 1; padding: 10px; border-radius: 8px; border: none; background: #4a69bd; color: white; font-weight: bold; cursor: pointer;
}
.inactive-tab {
    flex: 1; padding: 10px; border-radius: 8px; border: 1px solid #dfe6e9; background: white; color: #2d3436; font-weight: bold; cursor: pointer;
}
.review-card {
    border: 1px solid #eee; border-radius: 10px; padding: 15px; margin-bottom: 15px;
}
.review-title {
    font-size: 13px; color: #4a69bd; font-weight: bold; margin-bottom: 5px;
}
.review-desc {
    font-size: 12px; color: #636e72; line-height: 1.4;
}

.photo-upload {
    width: 100%; height: 180px; background: #f5f6fa; border: 2px dashed #dcdde1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; margin-bottom: 20px; color: #636e72; font-size: 13px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    font-size: 12px; font-weight: bold; color: #2d3436; display: block; margin-bottom: 5px;
}
.form-group input, .form-group textarea {
    width: 100%; padding: 10px; border: 1px solid #dfe6e9; border-radius: 8px; box-sizing: border-box; font-family: inherit; font-size: 13px;
}
.save-btn {
    width: 100%; padding: 14px; background: #2d3436; color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; margin-top: 10px; font-size: 14px; transition: background 0.2s;
}
.save-btn:hover {
    background: #000000;
}


/* ==========================================
   ✅ 새롭게 추가됨: 우측 하단 플로팅 위젯 (위아래 공백 대폭 축소)
   ========================================== */
.skip-widget {
    position: fixed;
    bottom: 30px; 
    right: 90px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 10px 18px; /* ✅ 위아래 패딩을 줄여 슬림하게 만듦 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px; /* ✅ 간격 축소 */
    z-index: 90;
    animation: slideInRight 0.4s ease forwards;
}

.skip-widget-text { display: flex; flex-direction: column; text-align: left; }
.skip-widget-text strong { font-size: 12px; color: #2d3436; margin-bottom: 0px; } 
.skip-widget-text span { font-size: 10px; color: #636e72; }

/* 위젯 내 버튼 슬림 디자인 */
.btn-sm-primary {
    background: var(--primary, #4a69bd);
    color: white; border: none; padding: 6px 12px; border-radius: 6px;
    font-size: 11px; font-weight: bold; cursor: pointer; transition: 0.2s;
}

.close-today-btn {
    background: none; border: none; color: #a4b0be; font-size: 11px;
    cursor: pointer; text-decoration: underline; padding: 0; margin-top: 4px;
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}