/*
 * 치지직 드롭스 계정 연동 페이지 (PAJ-26-002)
 * 글로벌 resources/js/Pages/_GZ/drops/LinkAccount.module.css 이식 — 글로벌과 같은 rem 단위.
 * 루트 글자 크기(--fs)는 layouts/master.blade.php 가 글로벌 rootFontSize 와 같은 공식으로 계산
 * (round(min(창너비/1920, 창높이/1080) × 100)px, 모바일 UA 는 440×956 기준) → 같은 화면에서 글로벌과 같은 크기.
 * 트위치 색상(#9147ff) → 치지직 색상 교체. 퍼블리싱 확정 전 임시 스타일.
 */

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; }

.drops-body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    /* 글로벌은 상단 GNB 아래 여백으로 padding-top 120px + 상단 정렬 — 드롭스는 GNB 가 없어 세로 중앙 정렬 */
    padding: 0.4rem 0.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.drops-container {
    text-align: center;
    background: #ffffff;
    padding: 0.3rem;
    border-radius: 0.1rem;
    box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.05);
    max-width: 8rem;
    width: 100%;
}

.drops-logo {
    font-size: 0.36rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.2rem;
    letter-spacing: 0.01rem;
}

.drops-title {
    font-size: 0.2rem;
    color: #333333;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.account-box {
    margin-bottom: 0.15rem;
    padding: 0.2rem;
    border-radius: 0.08rem;
    text-align: left;
    display: flex;
    align-items: center;
}

.account-box p {
    margin: 0;
    font-size: 0.16rem;
    color: #333;
    word-break: break-all;
}

.account-box strong {
    font-weight: normal;
    margin-right: 0.2rem;
    color: #555;
    min-width: 1rem;
    display: inline-block;
}

.game-info-box {
    background-color: #f8f9fa;
    border: 0.01rem solid #f0f0f0;
}

.linked-account-box {
    background-color: #ffffff;
    border: 0.01rem solid #000000;
}

.linked-account-box::before {
    content: "■";
    color: #00ffa3;
    margin-right: 0.1rem;
    font-size: 0.12rem;
}

.footer-note {
    font-size: 0.14rem;
    color: #666;
    margin-top: 0.2rem;
    margin-bottom: 0.1rem;
    text-align: left;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.3rem;
    height: 0.5rem;
    font-family: inherit;
    font-size: 0.16rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 0.05rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0.15rem auto;
    cursor: pointer;
    border: none;
    width: 100%;
    max-width: 3rem;
}

/* 치지직 브랜드 컬러 규정 (Neon Green #00FFA3 / Black #000000) 두 색만 사용 — hover 에도 색을 바꾸지 않는다 */
.link-button.chzzk {
    background-color: #000000;
    color: #00ffa3;
}

.link-button.masang {
    max-width: 4rem;
    background-color: #1b2838;
    color: #ffffff;
}

.link-button.masang:hover { background-color: #141d28; }

.link-button.unlink {
    background-color: #f0f2f5;
    color: #333;
    margin-top: 0.1rem;
}

.link-button.unlink:hover { background-color: #e0e2e5; }

/* 글로벌의 흐린 자주색(트위치 보라 계열 저채도) 대응 — 치지직 민트 계열 저채도 그린 */
.link-button.logout {
    background-color: rgb(84, 122, 108);
    color: #ffffff;
    margin-top: 0.2rem;
}

.link-button.logout:hover { background-color: rgb(68, 101, 89); }

.guide-section {
    margin: 0.2rem 0;
    text-align: left;
}

.guide-step {
    background-color: #f8f9fa;
    border-radius: 0.08rem;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.1rem;
}

.guide-number {
    font-size: 0.2rem;
    font-weight: bold;
    color: #000000;
    margin-right: 0.2rem;
}

.guide-text .guide-title {
    font-size: 0.18rem;
    font-weight: bold;
    color: #333;
}

.guide-text .guide-description {
    font-size: 0.14rem;
    color: #666;
}

/* 글로벌은 텍스트 ▼ + 음수 margin 이라 위 5px / 아래 -5px(겹침)로 비대칭 → CSS 삼각형 + 위아래 동일 간격 */
.step-arrow {
    width: 0;
    height: 0;
    margin: 0 auto 0.1rem;
    border-left: 0.09rem solid transparent;
    border-right: 0.09rem solid transparent;
    border-top: 0.12rem solid #ccc;
}

.info-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    color: #555;
    margin-top: 0.15rem;
    font-size: 0.14rem;
}

.notes-section {
    margin-top: 0.3rem;
    text-align: left;
    color: #555;
    background-color: #f8f9fa;
    padding: 0.3rem;
    border-radius: 0.08rem;
}

.notes-section h3 {
    margin-top: 0;
    margin-bottom: 0.15rem;
    font-size: 0.18rem;
    font-weight: bold;
}

.notes-section ul {
    padding-left: 0.2rem;
    margin: 0;
    font-size: 0.14rem;
    line-height: 1.8;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay[hidden] { display: none; }

.modal-content {
    background: #fff;
    padding: 0.4rem;
    border-radius: 0.08rem;
    text-align: center;
    box-shadow: 0 0.05rem 0.15rem rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 4.5rem;
}

.modal-content h3 {
    font-size: 0.22rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.2rem;
}

.modal-content p {
    font-size: 0.16rem;
    line-height: 1.6;
    color: #333;
    margin-top: 0;
    margin-bottom: 0.3rem;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.modal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.12rem 0.25rem;
    border: none;
    border-radius: 0.05rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.16rem;
    font-weight: bold;
    min-width: 1rem;
}

.modal-button.confirm,
.modal-button.chzzk-login {
    background-color: #000000;
    color: #00ffa3;
}

.modal-button.cancel {
    background-color: #f0f2f5;
    color: #333;
}

.modal-button.cancel:hover { background-color: #e0e2e5; }

/*
 * masang 공통 탑메뉴 (common/css/top-menu.css 는 수정하지 않음 — 반응형 규칙이 top-menu-nd/dk 에만 있어 DK 와 같은 값을 여기서 적용)
 * 탑메뉴는 px(50px) 고정이라 루트 크기(--fs)와 무관. 본문은 탑메뉴 높이만큼 내려 겹치지 않게 한다.
 */
/* 탑메뉴는 ND/DK 의 전역 초기화(base.css: * 여백 0, ul 목록기호 없음, a 밑줄 없음)를 전제로 짜여 있음 →
   같은 초기화를 탑메뉴 안에만 적용. :where() 로 우선순위 0 (DK 전역 초기화와 동일) — top-menu.css 규칙을 덮지 않음.
   글자 크기는 16px 고정 — 루트(--fs) 비례 크기를 물려받지 않게 한다. */
nav#top_menu {
    font-family: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

:where(nav#top_menu, nav#top_menu *, nav#top_menu *::before, nav#top_menu *::after) {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:where(nav#top_menu ul, nav#top_menu ol) { list-style: none; }

:where(nav#top_menu a) {
    text-decoration: none;
    color: inherit;
}

:where(nav#top_menu img) {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 769px) {
    .drops-body { padding-top: calc(50px + 0.4rem); }
}

@media (min-width: 1280px) {
    nav#top_menu.top-menu-drops {
        position: fixed;
        top: 0;
    }
}

@media (max-width: 1279px) {
    nav#top_menu.top-menu-drops {
        position: fixed;
        z-index: 100001;
        border-bottom: 1px solid #333333;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

/* 모바일: DK 와 같이 공통 탑메뉴 숨김 (public/products/dk/css/base.css 동일 규칙) */
@media (max-width: 768px) {
    body.product-drops .nav-background,
    body.product-drops nav#top_menu.top-menu-drops {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .drops-body { padding: 0.24rem 0.16rem; }
    .drops-container { padding: 0.2rem 0.16rem; }
    .drops-logo { font-size: 0.28rem; }
    .account-box { padding: 0.16rem; }
    .account-box strong { min-width: 0.8rem; margin-right: 0.12rem; }
    .notes-section { padding: 0.2rem; }
    .modal-content { padding: 0.28rem 0.2rem; }
}
