/* 컨테이너 및 기본 레이아웃 */
.baram-home-container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    color: #fff; 
    font-family: 'Pretendard', sans-serif; 
    box-sizing: border-box; 
    padding-bottom: 80px; 
}

.content-wrapper { 
    display: flex; 
    gap: 24px; 
    flex-wrap: wrap; 
}

/* 헤더 섹션 및 배너 */
.header-section { 
    position: relative; 
    margin-bottom: 30px; 
}

/* 프로필 정보 섹션 */
.side-profile { 
    flex: 0 0 350px; 
}

.profile-card { 
    background: var(--card-bg); 
    border-radius: 16px; 
    padding: 24px; 
    border: 1px solid rgba(255,255,255,0.05); 
    transition: var(--transition);
}

.profile-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.4); 
}

.profile-img { 
    width: 100px; 
    height: 100px; 
    background: rgba(0,0,0,0.3); 
    border-radius: 50%; 
    border: 2px solid var(--accent); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    box-shadow: 0 0 15px rgba(138, 180, 248, 0.2); 
}

.profile-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.stat-bar { 
    background: rgba(0,0,0,0.2); 
    padding: 12px; 
    border-radius: 10px; 
    margin-bottom: 8px; 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.9rem; 
}

/* 장비 그리드 섹션 */
.main-equip { 
    flex: 1; 
    min-width: 320px; 
}

.equip-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px; 
}

.flip-box { 
    height: 120px; 
    perspective: 1000px; 
    position: relative; 
}

.flip-inner { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
    transform-style: preserve-3d; 
}

.equip-grid.cash-mode .flip-inner { 
    transform: rotateY(180deg); 
}

.card-f, 
.card-b { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    backface-visibility: hidden; 
    border-radius: 14px; 
    border: 1px solid rgba(255,255,255,0.08); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    transition: transform 0.25s ease-out, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.card-f { 
    background: rgba(255,255,255,0.04); 
    transform: rotateY(0deg); 
}

.card-b { 
    background: rgba(138, 180, 248, 0.1); 
    transform: rotateY(180deg); 
    border-color: var(--accent); 
}

.is-empty { 
    opacity: 0.4; 
    filter: grayscale(1); 
}

.flip-box:hover .card-f { 
    transform: translateY(-5px) rotateY(0deg); 
    border-color: var(--accent); 
    background: rgba(138, 180, 248, 0.15); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.3); 
    z-index: 10;
}

.flip-box:hover .card-b { 
    transform: translateY(-5px) rotateY(180deg); 
    border-color: var(--accent); 
    background: rgba(138, 180, 248, 0.2); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.3); 
    z-index: 10;
}

.slot-label { 
    font-size: 0.7rem; 
    color: var(--accent); 
    font-weight: bold; 
    margin-bottom: 4px; 
}

.item-text { 
    font-size: 0.85rem; 
    font-weight: 600; 
    text-align: center; 
    padding: 0 5px; 
    word-break: keep-all; 
}

.toggle-btn { 
    background: #303134; 
    color: var(--accent); 
    border: 1px solid rgba(255,255,255,0.1); 
    padding: 8px 18px; 
    border-radius: 20px; 
    cursor: pointer; 
    transition: var(--transition); 
}

.toggle-btn:hover { 
    background: var(--accent); 
    color: var(--accent-active); 
}

/* 반응형 모바일 (미디어 쿼리) */
@media (max-width: 1148px) { 
    .search-box { 
        border-radius: 0 0 20px 20px; 
        padding: 15px; 
        flex-wrap: wrap; 
        border-top: none; 
        background: var(--card-bg); 
    }
    
    .search-box select, 
    .search-box input { 
        flex: 1; 
        min-width: 120px; 
        background: rgba(255,255,255,0.05); 
        border-radius: 8px; 
        margin-bottom: 5px; 
    }
    
    .search-box button { 
        width: 100%; 
        margin-top: 5px; 
        padding: 12px; 
    }

    .side-profile { 
        flex: 0 0 100% !important; 
    }
}

/* 검색 전 빈 화면 컨테이너 */
.search-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.placeholder-content {
    max-width: 500px;
}

/* 중앙 아이콘 애니메이션 */
.visual-icon {
    width: 100px;
    height: 100px;
    background-color: rgba(138, 180, 248, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.visual-icon .material-symbols-outlined {
    font-size: 48px;
    color: var(--accent);
    opacity: 0.8;
}

.placeholder-content h2 {
    font-size: 26px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 12px;
}

.placeholder-content p {
    color: var(--text-sub);
    font-size: 15px;
    line-height: 1.6;
}

/* 가이드 태그 */
.search-guide {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.guide-tag {
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent);
}

/* 하단 팁 영역 */
.search-tips {
    display: flex;
    gap: 20px;
    margin-top: 60px;
}

.tip-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px dashed var(--border-color);
}

.tip-card .material-symbols-outlined {
    font-size: 20px;
    color: var(--accent);
}

.tip-card p {
    font-size: 13px;
    color: var(--text-sub);
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 모바일 대응 */
@media (max-width: 600px) {
    .search-tips {
        flex-direction: column;
    }
}