/* style.css (Post-Humanity Museum) */
@import url('https://fonts.googleapis.com/css2?family=Orbit&family=Noto+Sans+KR:wght@300;400;700&display=swap');

body {
    background-color: #050505;
    background-image: 
        linear-gradient(rgba(0, 255, 200, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 200, 0.03) 1px, transparent 1px);
    background-size: 30px 30px; /* 그리드 배경 */
    color: #00ffc8; /* 사이버 청록색 */
    font-family: 'Orbit', sans-serif; /* SF 느낌 폰트 */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.museum-container {
    text-align: center;
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

h1 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 5px;
    text-shadow: 0 0 10px #00ffc8;
}

.subtitle {
    color: #558888;
    font-size: 0.8rem;
    margin-bottom: 30px;
}

/* 🧊 홀로그램 스캐너 (물약병 대체) */
.scanner-box {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border: 2px solid rgba(0, 255, 200, 0.3);
    background: rgba(0, 20, 20, 0.5);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.1);
}

/* 모서리 장식 */
.scanner-box::before, .scanner-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #00ffc8;
    border-style: solid;
    transition: all 0.3s;
}
.scanner-box::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.scanner-box::after { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* 스캔 라인 (애니메이션) */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #00ffc8;
    box-shadow: 0 0 15px #00ffc8;
    opacity: 0; /* 평소엔 숨김 */
    z-index: 10;
}

.scanner-box.scanning .scan-line {
    opacity: 1;
    animation: scanMove 1.5s linear infinite;
}

.scanner-box.scanning {
    border-color: #00ffc8;
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.3);
}

@keyframes scanMove {
    0% { top: 0%; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* 아이콘 표시 영역 */
#artifactIcon {
    font-size: 80px;
    line-height: 200px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#artifactIcon.show {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 20px #00ffc8;
}

/* 입력 UI */
.input-area {
    background: rgba(0, 20, 20, 0.8);
    border: 1px solid rgba(0, 255, 200, 0.2);
    padding: 20px;
    backdrop-filter: blur(5px);
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 15px;
    background: #001111;
    border: 1px solid #004433;
    color: #00ffc8;
    font-family: 'Orbit', sans-serif;
    margin-bottom: 10px;
    box-sizing: border-box;
    text-align: center;
}
input:focus {
    outline: none;
    border-color: #00ffc8;
    box-shadow: 0 0 10px rgba(0, 255, 200, 0.2);
}

button {
    width: 100%;
    padding: 15px;
    background: #004433;
    color: #00ffc8;
    border: 1px solid #00ffc8;
    font-family: 'Orbit', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 2px;
}
button:hover {
    background: #00ffc8;
    color: #000;
    box-shadow: 0 0 20px #00ffc8;
}
button:disabled {
    background: #222;
    border-color: #444;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

/* 결과 카드 */
.report-card {
    display: none;
    border: 1px solid #00ffc8;
    background: rgba(0, 20, 20, 0.9);
    padding: 20px;
    margin-top: 20px;
    text-align: left;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.1);
}

.report-header {
    border-bottom: 1px dashed #004433;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.alien-name {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.origin-name {
    color: #558888;
    font-size: 0.8rem;
}

.report-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccffff;
}

.report-meta {
    margin-top: 20px;
    font-size: 0.7rem;
    color: #004433;
    background: #00ffc8;
    color: #000;
    padding: 5px;
    text-align: center;
    font-weight: bold;
}

/* 토스트 메시지 */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #00ffc8;
    color: #000;
    padding: 10px 20px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 100;
}
.toast.show { opacity: 1; }

/* 더 발굴하기 */
.continue-excavation {
    display: none; /* 평소엔 숨김 */
    margin-top: 20px;
    color: #00ffc8;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s;
    animation: fadeIn 0.5s; /* 나타날 때 부드럽게 */
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
