@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;600;700&family=Space+Grotesk:wght@500;700&display=swap");

:root {
    --bg-color: #f5f4f1;
    --bg-accent: #e9e4da;
    --container-bg: #ffffff;
    --text-color: #222222;
    --muted-text: #6c6a66;
    --button-bg: #1f6feb;
    --button-hover: #1857b8;
    --button-text: #ffffff;
    --input-border: #d9d4cb;
    --card-shadow: 0 14px 40px rgba(30, 20, 10, 0.08);
    --ring: rgba(31, 111, 235, 0.18);
}

body.dark-mode {
    --bg-color: #111111;
    --bg-accent: #1a1a1a;
    --container-bg: #1e1e1e;
    --text-color: #f5f5f5;
    --muted-text: #b6b1a9;
    --button-bg: #2f8cff;
    --button-hover: #1f6fed;
    --button-text: #ffffff;
    --input-border: #333333;
    --card-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --ring: rgba(47, 140, 255, 0.25);
}

body {
    font-family: "Noto Sans KR", system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(1200px 500px at 10% -10%, var(--bg-accent), transparent),
        radial-gradient(900px 400px at 90% 0%, rgba(31, 111, 235, 0.08), transparent),
        var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background 0.3s ease, color 0.3s ease;
    color: var(--text-color);
    padding: 28px 20px 40px;
    box-sizing: border-box;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 560px;
}

.container {
    background: var(--container-bg);
    padding: 32px;
    border-radius: 22px;
    text-align: center;
    box-shadow: var(--card-shadow);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

/* PC 전용: 살짝 떠오르는 효과 */
@media (hover: hover) {
    .container:hover {
        transform: translateY(-2px);
    }
}

/* 댓글창 스타일 */
.comment-section {
    padding: 22px 30px;
}

/* 제휴 문의 스타일 */
.inquiry-section {
    padding: 16px 24px 20px;
    max-width: 360px;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

h1 {
    font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
    font-size: 1.6rem;
    margin: 6px 0 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    margin-bottom: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.numbers {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 22px 0 26px;
    flex-wrap: wrap;
}

.ball {
    width: 46px;
    height: 46px;
    line-height: 46px;
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pop 0.4s ease;
}

@keyframes pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.btn {
    padding: 14px 22px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--button-bg), #4a8cff);
    color: var(--button-text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    -webkit-tap-highlight-color: transparent; /* 모바일 터치 피드백 최적화 */
    box-shadow: 0 12px 24px rgba(31, 111, 235, 0.2);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(31, 111, 235, 0.26);
}

.btn:active {
    transform: scale(0.98);
}

/* 모바일 환경 최적화 (768px 미만) */
@media (max-width: 768px) {
    body {
        padding: 18px 14px 28px;
        align-items: flex-start;
    }

    .container {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .ball {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 0.98rem;
    }

    h1 {
        font-size: 1.35rem;
    }
    
    .inquiry-section {
        max-width: 100%; /* 모바일에서는 가로를 다 채움 */
    }
}

.inquiry-form {
    text-align: left;
    margin-top: 15px;
    display: none;
}

.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--muted-text);
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    box-sizing: border-box;
    background: transparent;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
    border-color: var(--button-bg);
    box-shadow: 0 0 0 4px var(--ring);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.collapsible-header {
    cursor: pointer;
    margin-bottom: 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-color);
}

.collapsible-header--small {
    font-size: 0.95rem;
}

.collapsible-header.is-open {
    margin-bottom: 16px;
}

.collapsible-content {
    display: none;
    margin-top: 16px;
}
    background: var(--container-bg);
    color: var(--text-color);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    border-color: var(--button-bg);
}

textarea {
    height: 80px;
    resize: none;
}
