/* css/index.css */
:root {
    --gm-primary: #0b57d0;
    --gm-bg-main: #f6f8fc;
    --gm-text-main: #1f1f1f;
    --gm-text-sub: #444746;
    --gm-border: #f1f3f4;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--gm-bg-main);
    font-family: 'Noto Sans KR', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

/* 로딩 스피너 */
.loader-container {
    text-align: center;
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e1e3e1;
    border-top: 4px solid var(--gm-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--gm-text-sub);
    font-size: 0.9rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* [수정] 반응형 카드 스타일 (해상도 맞춤) */
.warning-card {
    display: none;
    background: white;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    text-align: center;

    /* [핵심] 해상도에 따른 크기 자동 조절 */
    width: clamp(320px, 90vw, 450px);
    /* 최소 320, 최대 450, 기본 90% */
    max-height: 90vh;
    /* 세로가 짧은 화면 대응 */
    overflow-y: auto;
    /* 내용이 길면 스크롤 */

    transition: all 0.3s ease;
}

/* 로고 영역 */
.logo-header {
    padding: 35px 0 20px;
}

.warning-logo-img {
    height: 32px;
    width: auto;
}

/* 본문 영역 */
.warning-body {
    padding: 0 30px 25px;
}

.warning-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gm-text-main);
    margin-bottom: 15px;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.warning-desc {
    font-size: 0.95rem;
    color: var(--gm-text-sub);
    line-height: 1.6;
    margin-bottom: 0;
    word-break: keep-all;
}

.warning-desc strong {
    color: var(--gm-primary);
    font-weight: 600;
}

/* 현재 상태 표시 칩 */
.current-stat {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 16px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #5f6368;
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
}

/* 연락처 카드 영역 */
.contact-area {
    padding: 0 30px 35px;
}

.contact-card {
    background-color: #f8f9fa;
    border: 1px solid var(--gm-border);
    border-radius: 16px;
    padding: 20px;
    text-align: left;
}

.contact-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9aa0a6;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 28px;
    text-align: center;
    color: var(--gm-text-sub);
    margin-right: 4px;
    font-size: 1rem;
}

.contact-label {
    color: #5f6368;
    margin-right: 12px;
    font-weight: 500;
    min-width: 40px;
}

.contact-value {
    color: var(--gm-text-main);
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.2px;
}

.contact-value:hover {
    color: var(--gm-primary);
    text-decoration: underline;
}

/* [미디어 쿼리] 화면이 작을 때 (모바일/작은 태블릿) 미세 조정 */
@media (max-width: 480px) {
    .warning-card {
        border-radius: 20px;
    }

    .logo-header {
        padding: 30px 0 15px;
    }

    .warning-body {
        padding: 0 24px 20px;
    }

    .contact-area {
        padding: 0 24px 30px;
    }

    .warning-title {
        font-size: 1.15rem;
    }

    .warning-desc {
        font-size: 0.9rem;
    }

    .contact-card {
        padding: 16px;
    }
}

/* 모달 스타일 */
.modal-content-google {
    border-radius: 24px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none;
}

.dialog-icon-bg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

.dialog-bg-danger {
    background-color: #fce8e6;
    color: #d93025;
}

.btn-dialog-confirm {
    background-color: var(--gm-primary);
    color: #fff;
    border-radius: 50px;
    padding: 8px 24px;
    border: none;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-dialog-confirm:hover {
    background-color: #0842a0;
    color: #fff;
    transform: translateY(-1px);
}