/**
 * 픽콘 Home 페이지 CSS
 * 
 * 파일: /pickcon_dev/index.php
 * 
 * 섹션:
 * 1. 히어로 배너
 * 2. 메인 버튼 영역
 * 3. 지도 영역 (FindPickcon)
 * 4. 배너 영역
 * 5. 사용방법 오버레이
 * 6. 파일보관함 오버레이
 * 7. 친구초대 팝업
 * 8. 지도 전체화면 모달
 * 9. 출력 바텀시트
 */

/* =====================================================
   1. 히어로 배너
   ===================================================== */
.hero-banner {
    width: 100%;
    height: 180px;
    background-color: #ffffff;
    /* [bg.png 방식] 나중에 복원 시 아래 주석 해제하고 bg.gif 방식을 주석 처리
    background-repeat: no-repeat;
    background-size: 85% auto;
    background-position: right 20% bottom calc(35px + 100vw * 0.85 / 835 * 19 * -1);
    */
    /* [bg.gif 방식] 배경 전체에 gif 재생
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    */
    /* [bg.mp4 방식] video 태그로 처리 */
    position: relative;
    overflow: hidden;
    margin-top: 48px;
}

.hero-banner video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   2. 메인 컨테이너 & 버튼 영역
   ===================================================== */
.container {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 30px;
}

.buttons {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: -25px;
    z-index: 1;
    margin-bottom: 15px;
}

.buttons::before {
    position: absolute;
    content: "";
    width: 100vw;
    /* [bg.png 방식] 나중에 복원 시 아래 주석 해제하고 bg.gif 방식을 주석 처리
    height: calc(100vw * 0.85 / 835 * 19);
    left: -30px;
    top: 0;
    background-repeat: no-repeat;
    background-size: 85% auto;
    background-position: right 20% bottom;
    */
    /* [bg.gif 방식] bg.gif 사용 시 ::before 불필요 */
    display: none;
}

.buttons button {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(to bottom, #ffffff, #f4f6fb);
    border: 1px solid #d8dde8;
    border-radius: 10px;
    cursor: pointer;
    padding: 10px 16px;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(90, 134, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.buttons button:active {
    background: linear-gradient(to bottom, #f0f2f8, #e8ecf5);
    box-shadow: 0 1px 2px rgba(90, 134, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(1px);
}

/* 우측 > 화살표 */
.buttons button::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #c0c8d8;
    border-right: 1.5px solid #c0c8d8;
    transform: translateY(-50%) rotate(45deg);
    flex-shrink: 0;
}

.buttons button img {
    width: 32px;
    height: 32px;
    margin-left: 20%;
    margin-right: 8px;
    flex-shrink: 0;
}

.buttons button span {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-right: calc(20% + 40px);
    white-space: nowrap;
}

/* =====================================================
   3. 배너 영역
   ===================================================== */
.banner-wrapper {
    border: 0.6px solid #494949;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.banner-wrapper img {
    width: 100%;
    display: block;
}

/* =====================================================
   4. 사용방법 슬라이드업
   ===================================================== */
.how-to-use-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 201;
    display: none;
    overflow-y: auto;
}

.how-to-use-overlay.active {
    display: block;
}

/* → common.css 공통 헤더 스타일 사용 */
.how-to-use-header {
    z-index: 202;
}

.how-to-use-contents {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 88px 40px 40px;
}

.how-to-use-contents .title-img {
    width: 70%;
    max-width: 477px;
    margin-bottom: 40px;
}

.how-to-use-contents .section {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.how-to-use-contents .section img {
    width: 100%;
}

.how-to-use-contents .section button {
    margin-top: 20px;
    border: none;
    background: none;
    cursor: pointer;
    width: 70%;
    max-width: 486px;
}

.how-to-use-contents .section button img {
    width: 100%;
}

/* =====================================================
   5. 파일보관함 슬라이드업
   ===================================================== */
.filebox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 201;
    display: none;
    overflow-y: auto;
}

.filebox-overlay.active {
    display: block;
}

/* =====================================================
   6. 친구초대 팝업
   ===================================================== */
.invite-popup {
    position: fixed;
    top: 167px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: none;
}

.invite-popup.active {
    display: block;
}

.invite-popup-controls {
    position: absolute;
    top: -30px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 0;
    border-radius: 16px;
}

.invite-popup-controls label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.invite-popup-controls input {
    width: 14px;
    height: 14px;
    margin: 0;
}

.invite-popup-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.invite-popup-image {
    max-width: 90vw;
    width: 680px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: block;
}

/* =====================================================
   PC 레이아웃 — 400px 고정
   ===================================================== */
@media (min-width: 450px) {
    .how-to-use-overlay,
    .filebox-overlay {
        max-width: 400px;
        left: 50%;
        transform: translateX(-50%);
    }

    .invite-popup {
        max-width: 400px;
    }

    .invite-popup-image {
        max-width: 360px;
    }
}
