/* wooskor79/songhy/songhy-bc0c7a97d1c10237fae2511fabe8ebbfa5652211/style.css */

:root {
    --bg-color: #0f172a;
    --sidebar-bg: #1e293b;
    --card-bg: rgba(51, 65, 85, 0.85); 
    --text-color: #f1f5f9;
    --accent-blue: #38bdf8;
    --border-color: #475569;
    --sidebar-width: 280px;
}

body.light-mode {
    --bg-color: #f8fafc;
    --sidebar-bg: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-color: #1e293b;
    --accent-blue: #0284c7;
    --border-color: #e2e8f0;
}

body { 
    margin: 0; display: flex; font-family: 'Pretendard', sans-serif; 
    background-color: var(--bg-color);
    background-image: url('bg.jpg');   
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;      
    background-size: cover;            
    color: var(--text-color); 
    transition: background 0.3s; 
    overflow-x: hidden;
}

#sidebar { 
    width: var(--sidebar-width); height: 100vh; position: fixed; 
    background: var(--sidebar-bg); border-right: 1px solid var(--border-color); padding: 30px 20px; box-sizing: border-box;
    z-index: 100;
}

#sidebar h1 { color: var(--accent-blue); text-align: center; font-size: 24px; margin-bottom: 25px; }

.css-btn {
    display: block; width: 100%; padding: 12px; margin-bottom: 12px;
    border: none; border-radius: 8px; font-weight: bold; cursor: pointer;
    background: var(--accent-blue); color: #0f172a; transition: 0.2s;
}
.css-btn-gray { background: #64748b; color: white; }
.css-btn:hover { opacity: 0.9; }

.switch-wrap { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.switch { position: relative; display: inline-block; width: 46px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #475569; transition: .4s; border-radius: 22px;
}
.slider:before {
    position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px;
    background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--accent-blue); }
input:checked + .slider:before { transform: translateX(24px); }

.bgm-box { background: var(--card-bg); padding: 15px; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 20px; }
#now-title { font-weight: bold; font-size: 12px; color: var(--accent-blue); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgm-btns { display: flex; gap: 5px; }
.bgm-btns .css-btn { padding: 8px; font-size: 11px; }
.vol-box { display: flex; align-items: center; gap: 10px; font-size: 11px; margin-top: 10px; }
#next-list { font-size: 11px; color: #94a3b8; padding-left: 15px; margin-top: 10px; list-style: none; }

.auth-input {
    width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 8px; 
    background: var(--bg-color); color: var(--text-color); text-align: center; margin-bottom: 10px; box-sizing: border-box;
}

/* 메인 콘텐츠 영역: 효과 적용을 위한 기본 transition 설정 */
#main-content { 
    margin-left: var(--sidebar-width); 
    padding: 40px; 
    width: calc(100% - var(--sidebar-width)); 
    transition: opacity 0.5s ease, filter 0.5s ease; /* 투명도와 블러 효과 애니메이션 */
}

/* 스크롤 시 적용될 스타일 (흐려짐 및 투명도 조절) */
#main-content.is-scrolling {
    opacity: 0.3;          /* 투명하게 만들어 배경 노출 */
    filter: blur(8px);     /* 사진들을 흐릿하게 처리 */
    pointer-events: none;  /* 스크롤 중 클릭 방지 (선택 사항) */
}

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.photo-card { position: relative; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border-color); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.photo-card input { position: absolute; top: 10px; left: 10px; z-index: 5; }

.pager { display: flex; justify-content: center; gap: 5px; margin: 25px 0; }
.pager a { 
    padding: 8px 12px; background: var(--card-bg); border-radius: 6px; 
    text-decoration: none; color: var(--text-color); border: 1px solid var(--border-color); font-size: 13px;
}
.pager a.active { background: var(--accent-blue); color: #0f172a; border-color: var(--accent-blue); font-weight: bold; }

#modal {
    display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; 
    background: rgba(0,0,0,0.95); z-index: 10000; justify-content: center; align-items: center;
}
#modal-img { max-width: 95%; max-height: 95%; object-fit: contain; }
#modal-video { max-width: 90%; max-height: 90%; }

.msg-modal {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 20000;
    justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.5s ease;
}

.msg-modal.show {
    display: flex;
    opacity: 1;
}

.msg-content {
    background: var(--card-bg);
    padding: 30px 50px;
    border-radius: 15px;
    border: 1px solid var(--accent-blue);
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

#msg-text {
    color: var(--text-color);
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}