/* IP 정보 조회 도구 스타일 - mockup-generator 디자인 언어 차용 (cyan/blue 테마) */
.ipinfo-tool {
    --tool-primary: #0891b2;
    --tool-bg: #ecfeff;
    --tool-gradient: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
}

/* 히어로 */
.ipinfo-hero {
    background: var(--tool-gradient);
    border-radius: 16px;
    padding: 36px 32px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}
.ipinfo-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}
.ipinfo-hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}
.ipinfo-hero h1 {
    font-size: 28px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    margin: 10px 0 6px;
}
.ipinfo-hero p {
    opacity: 0.85;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* 에디터 카드 */
.editor-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
}
.editor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f5;
}
.editor-title {
    font-weight: 700;
    font-size: 14px;
    color: #343a40;
}
.editor-title i {
    color: var(--tool-primary);
}
.editor-body {
    padding: 16px;
}

/* IP 입력란 */
.ipinfo-input {
    width: 100%;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fb;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #212529;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
.ipinfo-input:focus {
    border-color: var(--tool-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}

/* 액션 버튼 */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-action:hover {
    border-color: var(--tool-primary);
    color: var(--tool-primary);
    background: var(--tool-bg);
}
.btn-action-primary {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
}
.btn-action-primary:hover {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(8, 145, 178, 0.3);
}
.btn-action-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 결과 그리드 (테이블 → 재테마된 결과 카드) */
.result-grid {
    display: grid;
    grid-template-columns: 1fr;
}
.result-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f3f5;
}
.result-row:last-child {
    border-bottom: none;
}
.result-label {
    flex: 0 0 38%;
    max-width: 38%;
    font-weight: 600;
    font-size: 13.5px;
    color: #495057;
    display: flex;
    align-items: center;
}
.result-label i {
    color: var(--tool-primary);
    margin-right: 8px;
}
.result-value {
    flex: 1;
    font-size: 14px;
    color: #212529;
    word-break: break-all;
}
.result-value.is-strong {
    font-weight: 700;
    color: var(--tool-primary);
}

/* 결과 카드 헤더 그라데이션 */
.editor-head.result-head {
    background: var(--tool-gradient);
    border-bottom: none;
}
.editor-head.result-head .editor-title,
.editor-head.result-head .editor-title i {
    color: #fff;
}

/* 안내 문구 */
.ipinfo-hint {
    font-size: 12.5px;
    color: #868e96;
    margin-top: 10px;
}
.ipinfo-hint i {
    color: var(--tool-primary);
}

/* 서포트 카드 */
.support-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
}
.support-card .card-hd {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid #f1f3f5;
}
.support-card .card-bd {
    padding: 18px;
}
.support-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: #343a40;
    margin: 18px 0 10px;
}

/* 아코디언 */
.ipinfo-tool .accordion-button:not(.collapsed) {
    background-color: var(--tool-bg);
    color: var(--tool-primary);
    box-shadow: none;
}
.ipinfo-tool .accordion-button:focus {
    box-shadow: none;
}

/* 스피너 */
.ipinfo-tool .spinner-border {
    color: var(--tool-primary);
}

/* 반응형 */
@media (max-width: 768px) {
    .ipinfo-hero { padding: 28px 20px; border-radius: 12px; }
    .ipinfo-hero h1 { font-size: 22px; }
    .result-label { flex-basis: 44%; max-width: 44%; }
}
