/* 초기 업로드 화면 전용 스타일 */

/* ===== 상단 버튼 스타일 ===== */
.top-button {
    position: absolute;
    top: 20px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 업로드 오버레이가 숨겨졌을 때 상단 버튼들도 숨김 */
.upload-overlay.hidden .top-button {
    display: none;
}

.top-button:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.6);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.back-button {
    left: 20px;
}

.back-button span {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b6b;
}

.language-select {
    right: 20px;
    border-radius: 25px;
    width: auto;
    min-width: 120px;
    height: 50px;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 107, 107, 0.3);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.language-select:hover {
    background-color: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.6);
}

.language-select:focus {
    outline: none;
    border-color: rgba(255, 107, 107, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* ===== 초기 업로드 화면 스타일 ===== */
.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
}

.upload-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.upload-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 4rem 3rem;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(255, 154, 158, 0.3);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    max-width: 800px;
    width: 85%;
    min-width: 600px;
}

.upload-title {
    font-size: 3rem;
    font-weight: 800;
    color: #2d3748;
    margin: 0 0 1.5rem 0;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e, #ffa8a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(255, 107, 107, 0.2);
}

.upload-description {
    font-size: 1.3rem;
    color: #4a5568;
    margin: 0 0 1rem 0;
    line-height: 1.8;
    font-weight: 500;
    text-align: left;
}

.upload-list {
    text-align: left;
    margin: 0 0 2rem 0;
    padding-left: 1.5rem;
}

.upload-list li {
    font-size: 1.1rem;
    color: #4a5568;
    margin: 0.5rem 0;
    line-height: 1.5;
}

/* 정보 행 스타일 */
.info-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-left {
    flex: 1;
}

.info-right {
    flex: 1;
}

.manual-section {
    margin: 0;
    padding: 0;
}

.info-left h3,
.manual-section h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.manual-section p {
    font-size: 1.3rem;
    color: #4a5568;
    margin: 0 0 1rem 0;
    line-height: 1.8;
    font-weight: 500;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    width: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

.file-input {
    display: none;
}

.upload-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upload-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ff5252, #ff7979);
}

.upload-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* ===== 드래그 앤 드롭 영역 ===== */
.drop-zone {
    border: 3px dashed rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.drop-zone:hover {
    border-color: rgba(255, 107, 107, 0.6);
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.drop-zone.drag-over {
    border-color: rgba(255, 107, 107, 0.8);
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.drop-zone-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.drop-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.drop-zone:hover .drop-icon {
    opacity: 1;
    transform: scale(1.1);
}

.drop-zone p {
    font-size: 1.2rem;
    color: #4a5568;
    margin: 0 0 1.5rem 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.drop-zone:hover p {
    color: #2d3748;
}

/* 드래그 오버 애니메이션 */
.drop-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.drop-zone.drag-over::before {
    left: 100%;
}

/* 드롭 영역 내부 버튼 */
.drop-zone .upload-btn {
    margin-top: 1rem;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.drop-zone:hover .upload-btn {
    transform: scale(1);
}

.drop-zone.drag-over .upload-btn {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.6);
}
