/* ===== 환율 계산기 페이지 CSS ===== */
.currency-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 1.5rem 0.5rem;
}

/* 헤더 */
.cc-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 1.2rem 1rem 0.9rem;
    background: var(--wa-color-neutral-95, #f0f2f5);
    border-radius: 14px 14px 0 0;
}
.cc-header-icon {
    font-size: 1.15em;
    color: var(--wa-color-brand-50, #3178c0);
}
.cc-header-title {
    font-size: 1.15em;
    font-weight: 800;
    color: var(--wa-color-text-normal, #222);
    letter-spacing: -0.02em;
}

/* 환율표 (3칸 가로 배치) */
.cc-rate-table {
    display: flex;
    background: var(--wa-color-neutral-95, #f0f2f5);
    padding: 0.4rem 0.3rem 1rem;
}
.cc-rate-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    position: relative;
}
.cc-rate-col + .cc-rate-col::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--wa-color-neutral-80, #ddd);
}
.cc-rate-label {
    font-size: 0.72em;
    color: var(--wa-color-text-quiet, #999);
    font-weight: 500;
}
.cc-rate-value {
    font-size: 1.05em;
    font-weight: 800;
    color: var(--wa-color-text-normal, #222);
}

/* 입력 영역 */
.cc-input-area {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.2rem 1.1rem;
    background: var(--wa-color-neutral-0, #fff);
    position: relative;
}
.cc-amount-input {
    flex: 1;
    padding: 0.85rem 1rem;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--wa-color-text-normal, #222);
    background: var(--wa-color-neutral-97, #fafbfc);
    border: 2px solid var(--wa-color-neutral-85, #e0e0e0);
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    min-width: 0;
    transition: border-color 0.2s, background 0.2s;
}
.cc-amount-input:focus {
    border-color: var(--wa-color-brand-50, #3178c0);
    background: var(--wa-color-neutral-0, #fff);
}
.cc-amount-input::placeholder {
    color: var(--wa-color-text-quiet, #ccc);
    font-weight: 400;
}

/* 통화 선택 버튼 */
.cc-currency-select {
    display: flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.85rem 1rem;
    background: var(--wa-color-neutral-97, #fafbfc);
    border: 2px solid var(--wa-color-neutral-85, #e0e0e0);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: border-color 0.2s, background 0.2s;
}
.cc-currency-select:hover {
    border-color: var(--wa-color-brand-50, #3178c0);
    background: var(--wa-color-neutral-0, #fff);
}
.cc-select-flag {
    font-size: 1.3em;
}
.cc-select-code {
    font-size: 0.95em;
    font-weight: 700;
    color: var(--wa-color-text-normal, #333);
}
.cc-select-arrow {
    font-size: 0.6em;
    color: var(--wa-color-text-quiet, #999);
    margin-left: 0.1em;
}

/* 드롭다운 */
.cc-dropdown {
    position: absolute;
    right: 1.1rem;
    top: calc(100% - 0.2rem);
    background: var(--wa-color-neutral-0, #fff);
    border: 1px solid var(--wa-color-neutral-80, #ddd);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    z-index: 10;
    overflow: hidden;
    min-width: 150px;
}
.cc-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.7rem 1rem;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--wa-color-text-normal, #333);
    transition: background 0.15s;
}
.cc-dropdown-item:hover {
    background: var(--wa-color-neutral-95, #f0f2f5);
}
.cc-dropdown-flag {
    font-size: 1.2em;
}
.cc-dropdown-code {
    font-weight: 700;
}

/* 변환 결과 */
.cc-results {
    background: var(--wa-color-neutral-0, #fff);
    border-radius: 0 0 14px 14px;
    padding: 0.6rem 1.1rem 1.2rem;
}
.cc-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0.5rem;
    border-radius: 10px;
    transition: background 0.15s;
}
.cc-result-row:hover {
    background: var(--wa-color-neutral-97, #fafbfc);
}
.cc-result-left {
    display: flex;
    align-items: center;
    gap: 0.7em;
}
.cc-result-flag {
    font-size: 1.8em;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}
.cc-result-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.cc-result-code {
    font-size: 0.95em;
    font-weight: 700;
    color: var(--wa-color-text-normal, #333);
    line-height: 1.2;
}
.cc-result-name {
    font-size: 0.72em;
    color: var(--wa-color-text-quiet, #aaa);
    line-height: 1.3;
}
.cc-result-value {
    font-size: 1.4em;
    font-weight: 800;
    color: var(--wa-color-brand-50, #3178c0);
    letter-spacing: -0.02em;
}

/* 푸터 */
.cc-footer {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 0.68em;
    color: var(--wa-color-text-quiet, #aaa);
}
.cc-footer a {
    color: var(--wa-color-brand-50, #3178c0);
    text-decoration: none;
}
.cc-footer a:hover {
    text-decoration: underline;
}
