/* 키워드 페이지 전용 스타일 */

/* 모든 input, textarea placeholder 글자크기 20% 축소 */
input::placeholder,
textarea::placeholder,
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
input::-moz-placeholder,
textarea::-moz-placeholder,
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    font-size: 13.44px !important;
}

/* 툴팁 스타일 */
.tooltip {
    position: absolute;
    background: #374151;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 350px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border: 6px solid transparent;
    border-top-color: #374151;
}

.tooltip .tooltip-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    background: white;
    border: 1px solid rgba(209, 213, 219, 1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    transition: all 0.2s ease;
    font-size: 18px;
    font-weight: bold;
    color: rgba(75, 85, 99, 1);
    line-height: 1;
}

.tooltip .tooltip-close:hover {
    background: rgba(249, 250, 251, 1);
    border-color: rgba(156, 163, 175, 1);
}

/* 물음표 아이콘 호버 효과 */
.w-5.h-5.bg-gray-600 {
    cursor: pointer;
    transition: all 0.2s ease;
}

.w-5.h-5.bg-gray-600:hover {
    background: #1f2937 !important;
    transform: scale(1.1);
}

/* 키워드 스위치 컨테이너 */
.keyword-switch-container {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f3f4f6;
    padding: 2px;
    position: relative;
    height: 42px;
    box-sizing: border-box;
    align-items: center;
}

/* 키워드 스위치 버튼 스타일 */
.keyword-switch-btn {
    transition: all 0.3s ease;
    border: none;
    font-weight: 700;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    background: transparent;
    color: #6b7280;
    flex: 1;
    text-align: center;
    border-radius: 6px;
    margin: 0;
    z-index: 1;
    white-space: nowrap;
    min-width: 0;
}

.keyword-switch-btn.active {
    background: #ffffff;
    color: rgba(105, 185, 223, 1);
    border: 1px solid rgba(105, 185, 223, 1);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(105, 185, 223, 0.25);
    z-index: 2;
    transform: translateY(-1px);
}

.keyword-switch-btn.inactive {
    background: transparent;
    color: #6b7280;
    border: none;
    box-shadow: none;
    transform: translateY(0);
    font-weight: 400;
}

.keyword-switch-btn:hover:not(.active) {
    background: #f9fafb;
    color: #4b5563;
}

/* 블로그 옵션 버튼 스타일 */
.blog-option-btn {
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.blog-option-btn.active {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
}

.blog-option-btn:not(.active) {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #6b7280;
}

.blog-option-btn:hover:not(.active) {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    color: #4b5563;
}

/* 조회 버튼 스타일 - 그라디언트 적용 */
.analyze-btn {
    background: linear-gradient(135deg, rgba(0, 153, 226, 1) 0%, rgba(0, 129, 198, 1) 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    height: 38px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 153, 226, 0.2);
}

.analyze-btn:hover {
    background: linear-gradient(135deg, rgba(0, 153, 226, 0.9) 0%, rgba(0, 129, 198, 0.9) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 153, 226, 0.3);
}

.analyze-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 153, 226, 0.2);
}

/* AI 추천 버튼 스타일 */
.ai-recommend-btn {
    background: #374151;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.ai-recommend-btn:hover {
    background: #1f2937;
}

/* 입력 필드 스타일 */
.keyword-input {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13.44px !important;
    color: #374151;
    resize: none;
    transition: all 0.2s ease;
}

/* Placeholder 글자크기 20% 축소 (20px → 16px) */
.keyword-input::placeholder {
    font-size: 16px !important;
}
.keyword-input::-webkit-input-placeholder {
    font-size: 16px !important;
}
.keyword-input::-moz-placeholder {
    font-size: 16px !important;
}
.keyword-input:-ms-input-placeholder {
    font-size: 16px !important;
}

.keyword-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 데스크탑에서 키워드 입력창 전체 높이 설정 */
@media (min-width: 1024px) {
    #keywordInput {
        height: calc(100vh - 420px) !important;
        min-height: 300px !important;
    }
}

/* 블로그 링크 입력 필드 */
.blog-link-input {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13.44px !important;
    color: #374151;
    transition: all 0.2s ease;
    height: 42px;
    box-sizing: border-box;
    background-color: #f8f9fa;
}

/* Placeholder 글자크기 20% 축소 (20px → 16px) */
.blog-link-input::placeholder {
    font-size: 16px !important;
}
.blog-link-input::-webkit-input-placeholder {
    font-size: 16px !important;
}
.blog-link-input::-moz-placeholder {
    font-size: 16px !important;
}
.blog-link-input:-ms-input-placeholder {
    font-size: 16px !important;
}

.blog-link-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 결과 표시 영역 */
.result-display-area {
    margin-top:20px !important;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 물음표 아이콘 */
.help-icon {
    width: 20px;
    height: 20px;
    background: #4b5563;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-icon:hover {
    background: #1f2937;
    transform: scale(1.1);
}

/* 블로그 등급 버튼 스타일 */
.blog-grade-btn {
    transition: all 0.2s ease;
    border: 1px solid transparent;
    padding: 6px 12px;
    font-size: 16.8px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: #6b7280;
    border-radius: 6px;
    white-space: nowrap;
    height: 42px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.blog-grade-btn.level-jun {
    color: #1EA152;
}

.blog-grade-btn.level-choi {
    color: #CF1D1C;
}

.blog-grade-btn.active {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
}

.blog-grade-btn:not(.active) {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 16px;
}

.blog-grade-btn.level-jun:not(.active) {
    color: #1EA152;
}

.blog-grade-btn.level-choi:not(.active) {
    color: #CF1D1C;
}

.blog-grade-btn:hover:not(.active) {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    color: #4b5563;
}

/* 새로고침 버튼 스타일 */
.refresh-btn {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: #e5e7eb;
    color: #4b5563;
}

/* 게이지 디자인 - 이미지와 100% 동일 */
.gauge-container {
    position: relative;
    width: 300px;
    height: 150px;
    margin: 0 auto;
}

.gauge-arc {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 150px 150px 0 0;
    overflow: hidden;
}

/* 색상 구간들 */
.gauge-segment {
    position: absolute;
    bottom: 0;
    height: 8px;
    border-radius: 4px;
}

.green-segment {
    left: 5%;
    width: 30%;
    background: #10b981;
}

.blue-segment {
    left: 35%;
    width: 15%;
    background: #3b82f6;
}

.purple-segment {
    left: 50%;
    width: 20%;
    background: #8b5cf6;
}

.orange-segment {
    left: 70%;
    width: 15%;
    background: #f59e0b;
}

.red-segment {
    left: 85%;
    width: 10%;
    background: #ef4444;
}

.gauge-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gauge-labels span {
    position: absolute;
    font-size: 7px;
    font-weight: 500;
    color: #6b7280;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 2;
}

/* 라벨 위치 - 이미지와 정확히 동일 */
.label-일반 { top: 25px; left: 8%; }
.label-준최1 { top: 20px; left: 15%; }
.label-준최2 { top: 15px; left: 22%; }
.label-준최3 { top: 12px; left: 29%; }
.label-준최4 { top: 10px; left: 40%; }
.label-준최5 { top: 8px; left: 47%; }
.label-준최6 { top: 8px; left: 55%; }
.label-준최7 { top: 10px; left: 62%; }
.label-최적1 { top: 12px; left: 68%; }
.label-최적2 { top: 15px; left: 75%; }
.label-최적3 { top: 18px; left: 82%; }
.label-최적1+ { top: 20px; left: 88%; }
.label-최적2+ { top: 25px; left: 92%; }
.label-최적3+ { top: 30px; left: 95%; }
.label-최적4+ { top: 35px; left: 97%; }

.gauge-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 3px;
    height: 80px;
    background: #3b82f6;
    transform-origin: bottom center;
    border-radius: 1px;
    z-index: 3;
}

.gauge-pivot {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #e5e7eb;
    border-radius: 50%;
    z-index: 4;
}

.gauge-pivot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
}

.gauge-center-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 5;
}

.gauge-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

.gauge-value {
    font-size: 16px;
    font-weight: 600;
    color: #10b981;
}

/* 키워드 페이지용 액션 버튼 스타일 - YouTube 스타일 적용 */
.action-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
}

.action-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.action-btn .action-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background-color: #B3B3B3; /* 기본값: 연한 그레이 */
}

.action-btn .action-icon i {
    font-size: 12px;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 900;
    color: white !important;
}

.action-btn .action-text {
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #B3B3B3; /* 기본값: 연한 그레이 */
}

/* 단일 키워드 결과에서는 버튼이 항상 원래 색상 (체크박스 없음) */
.single-keyword-result .reset-btn .action-icon {
    background-color: #6b7280 !important; /* 그레이 */
}

.single-keyword-result .reset-btn .action-text {
    color: #6b7280 !important; /* 그레이 */
}

.single-keyword-result .excel-btn .action-icon {
    background-color: #f59e0b !important; /* 오렌지 */
}

.single-keyword-result .excel-btn .action-text {
    color: #f59e0b !important; /* 오렌지 */
}

.single-keyword-result .favorite-btn .action-icon {
    background-color: #ec4899 !important; /* 핑크 */
}

.single-keyword-result .favorite-btn .action-text {
    color: #ec4899 !important; /* 핑크 */
}

/* 체크박스 선택시 버튼 색상 변경 - 각 버튼별로 다른 색상 (!important 사용) */
.reset-btn.selected .action-icon {
    background-color: #6b7280 !important; /* 그레이 */
}

.reset-btn.selected .action-text {
    color: #6b7280 !important; /* 그레이 */
}

.excel-btn.selected .action-icon {
    background-color: #f59e0b !important; /* 오렌지 */
}

.excel-btn.selected .action-text {
    color: #f59e0b !important; /* 오렌지 */
}

.favorite-btn.selected .action-icon {
    background-color: #ec4899 !important; /* 핑크 */
}

.favorite-btn.selected .action-text {
    color: #ec4899 !important; /* 핑크 */
}

.analysis-btn.selected .action-icon {
    background-color: #10b981 !important; /* 그린 */
}

.analysis-btn.selected .action-text {
    color: #10b981 !important; /* 그린 */
}

.filter-btn.selected .action-icon {
    background-color: #8b5cf6 !important; /* 퍼플 */
}

.filter-btn.selected .action-text {
    color: #8b5cf6 !important; /* 퍼플 */
}

.filter-btn .action-icon {
    background-color: #B3B3B3; /* 기본값: 연한 그레이 */
}

.filter-btn .action-icon:hover {
    background-color: #999999;
    transform: scale(1.05);
}

.filter-btn .action-text {
    color: #B3B3B3 !important; /* 기본값: 연한 그레이 */
}

/* 초기화 버튼 - 기본값은 그레이, 선택시 그레이 */
.reset-btn .action-icon {
    background-color: #B3B3B3; /* 기본값: 연한 그레이 */
}

.reset-btn .action-icon:hover {
    background-color: #999999;
    transform: scale(1.05);
}

.reset-btn .action-text {
    color: #B3B3B3 !important; /* 기본값: 연한 그레이 */
}

.reset-btn:hover .action-text {
    color: #999999 !important;
}

/* 엑셀 다운로드 버튼 - 기본값은 그레이, 선택시 오렌지 */
.excel-btn .action-icon {
    background-color: #B3B3B3; /* 기본값: 연한 그레이 */
}

.excel-btn .action-icon:hover {
    background-color: #999999;
    transform: scale(1.05);
}

.excel-btn .action-text {
    color: #B3B3B3 !important; /* 기본값: 연한 그레이 */
}

.excel-btn:hover .action-text {
    color: #999999 !important;
}

/* 찜 버튼 - 기본값은 그레이, 선택시 핑크 */
.favorite-btn .action-icon {
    background-color: #B3B3B3; /* 기본값: 연한 그레이 */
}

.favorite-btn .action-icon:hover {
    background-color: #999999;
    transform: scale(1.05);
}

.favorite-btn .action-text {
    color: #B3B3B3 !important; /* 기본값: 연한 그레이 */
}

.favorite-btn:hover .action-text {
    color: #999999 !important;
}

/* 제목 짓기 버튼 - 다른 3개 버튼과 동일한 스타일 (작은 아이콘 + 텍스트) */
.title-btn .action-icon {
    background-color: #B3B3B3; /* 기본값: 연한 그레이 */
}

.title-btn .action-icon:hover {
    background-color: #999999;
    transform: scale(1.05);
}

.title-btn .action-text {
    color: #B3B3B3 !important; /* 기본값: 연한 그레이 */
}

.title-btn:hover .action-text {
    color: #999999 !important;
}

/* 단일 키워드 결과에서는 제목 짓기 버튼도 항상 원래 색상 (파란색) */
.single-keyword-result .title-btn .action-icon {
    background-color: #0099E2 !important; /* 파란색 */
}

.single-keyword-result .title-btn .action-text {
    color: #0099E2 !important; /* 파란색 */
}

/* 다중 키워드 결과 테이블의 제목 짓기 버튼 - 파란색 둥근 스타일 */
.original-title-btn {
    background-color: rgba(0, 153, 226, 1) !important;
    color: white !important;
    border: none !important;
    padding: 4px 20px !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    text-align: center !important;
    white-space: nowrap !important;
    min-width: 100px !important;
}

.original-title-btn:hover {
    background-color: rgba(0, 138, 204, 1) !important;
    color: white !important;
}

.original-title-btn::after {
    content: '→';
    margin-left: 4px;
}

/* 상위노출 분석 버튼 - 기본값은 그레이, 선택시 그린 */
.analysis-btn .action-icon {
    background-color: #B3B3B3; /* 기본값: 연한 그레이 */
}

.analysis-btn .action-icon:hover {
    background-color: #999999;
    transform: scale(1.05);
}

.analysis-btn .action-text {
    color: #B3B3B3 !important; /* 기본값: 연한 그레이 */
}

.analysis-btn:hover .action-text {
    color: #999999 !important;
}

/* 재요청 버튼 - 그레이 */
.refresh-btn .action-icon {
    background-color: #6b7280;
}

.refresh-btn .action-icon:hover {
    background-color: #4b5563;
    transform: scale(1.05);
}

.refresh-btn .action-text {
    color: #6b7280 !important;
}

.refresh-btn:hover .action-text {
    color: #4b5563 !important;
}

/* 키워드 페이지용 상단 배너 스타일 */
.keyword-banner {
    background-color: #374151;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px; /* 16.8px / 1.2 = 14px */
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.keyword-banner .banner-icon {
    color: #ef4444;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 900;
}

.keyword-banner .banner-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(96, 165, 250, 0.1);
    transition: all 0.2s ease;
}

.keyword-banner .banner-link:hover {
    background-color: rgba(96, 165, 250, 0.2);
    color: #93c5fd;
}

.keyword-banner .banner-link i {
    font-size: 12px;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 900;
}


/* 키워드 검색량 테이블 스타일 */
.keyword-search-table th {
    width: 14.28% !important; /* 7개 컬럼을 균등 분할 (100% / 7) */
    text-align: center !important;
    padding: 12px 8px !important;
    font-weight: 600 !important;
    background-color: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
}

.keyword-search-table td {
    width: 14.28% !important; /* 7개 컬럼을 균등 분할 (100% / 7) */
    text-align: center !important;
    padding: 12px 8px !important;
    border: 1px solid #e5e7eb !important;
    vertical-align: middle !important;
}

/* 체크박스 컬럼은 조금 더 좁게 */
.keyword-search-table th:first-child,
.keyword-search-table td:first-child {
    width: 8% !important;
}

/* 순서 컬럼은 조금 더 좁게 */
.keyword-search-table th:nth-child(2),
.keyword-search-table td:nth-child(2) {
    width: 8% !important;
}

/* 키워드 컬럼은 조금 더 넓게 */
.keyword-search-table th:nth-child(3),
.keyword-search-table td:nth-child(3) {
    width: 20% !important;
}

/* PC, 모바일 컬럼은 조금 더 좁게 */
.keyword-search-table th:nth-child(4),
.keyword-search-table td:nth-child(4),
.keyword-search-table th:nth-child(5),
.keyword-search-table td:nth-child(5) {
    width: 12% !important;
}

/* 월 검색량 컬럼은 조금 더 넓게 */
.keyword-search-table th:nth-child(6),
.keyword-search-table td:nth-child(6) {
    width: 18% !important;
}

/* AI 생성 컬럼은 조금 더 넓게 */
.keyword-search-table th:nth-child(7),
.keyword-search-table td:nth-child(7) {
    width: 22% !important;
}

/* 모바일 경고 배너 스타일 */
.mobile-warning-banner {
    position: relative;
    margin: auto;
    height: 70px;
    min-width: 347px;
    overflow-x: auto;
}

.mobile-banner-bg {
    background: #293b48;
    border-radius: 9px;
    width: 100%;
    min-width: 347px;
    height: 70px;
    position: absolute;
    left: 0px;
    top: 0px;
    box-shadow: 2.43px 2.43px 18.21px 0px rgba(51, 51, 51, 0.05);
}

.mobile-banner-icon {
    color: #ef4444;
    text-align: center;
    font-family: "Pretendard-SemiBold", sans-serif;
    font-size: 18px;
    line-height: 140%;
    font-weight: 600;
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.mobile-banner-content {
    position: relative;
    width: 100%;
    min-width: 347px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px 0 42px;
    gap: 12px;
}

.mobile-banner-text-wrapper {
    color: #ffffff;
    text-align: left;
    font-family: "Pretendard-Medium", sans-serif;
    font-size: 15px;
    line-height: 160%;
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.mobile-banner-text-line {
    white-space: nowrap;
}

.mobile-banner-inline-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0 8px;
    margin: 0 4px;
    vertical-align: middle;
}

.mobile-banner-inline-button-bg {
    background: #0099e2;
    border-radius: 6000px;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.mobile-banner-inline-button-text {
    color: #ffffff;
    text-align: center;
    font-family: "Pretendard-Bold", sans-serif;
    font-size: 10px;
    line-height: 140%;
    font-weight: 700;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .keyword-tab-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .blog-option-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .analyze-btn {
        padding: 6px 12px;
        font-size: 13px;
        height: auto;
        min-height: 36px;
    }
    
    .keyword-switch-container {
        height: auto;
        min-height: 36px;
    }
    
    .ai-recommend-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .gauge-container {
        width: 240px;
        height: 120px;
    }
    
    .gauge-labels span {
        font-size: 6px;
    }
    
    .gauge-needle {
        height: 60px;
        width: 2px;
    }
    
    .gauge-title {
        font-size: 12px;
    }
    
    .gauge-value {
        font-size: 14px;
    }
    
    .action-btn {
        padding: 6px 8px;
        gap: 6px;
    }
    
    .action-btn .action-icon {
        width: 20px;
        height: 20px;
    }
    
    .action-btn .action-icon i {
        font-size: 10px;
    }
    
    .action-btn .action-text {
        font-size: 12px;
    }
    
    /* 모바일에서 배너 텍스트 크기 축소 (16.8px → 14px) */
    .keyword-banner {
        font-size: 14px;
    }
    
    /* 모바일 키워드 추천 버튼 크기 축소 (1.2배 축소) */
    #mobileKeywordRecommendBtn {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    
    #mobileKeywordRecommendBtn img {
        width: 24px !important;
        height: 24px !important;
    }
    
    /* 모바일에서 배너 아이콘 크기 1.5배 확대 */
    .keyword-banner .banner-icon {
        font-size: 21px;
    }
    
    /* 모바일 툴팁 디자인 개선 */
    .tooltip {
        max-width: calc(100vw - 40px); /* 화면 넘어가지 않게 */
        min-width: 280px; /* 왼쪽으로 가로 확장 */
        font-size: 13px;
        white-space: normal; /* 줄바꿈 허용 */
    }
    
    /* 모바일 툴팁 화살표 위치 변경 (위에서 아래로) */
    .tooltip::after {
        top: auto;
        bottom: -12px; /* 툴팁 아래에 화살표 */
        left: auto;
        right: 20px; /* 오른쪽 정렬 */
        border: 6px solid transparent;
        border-top-color: #374151; /* 위쪽 화살표 */
        border-bottom-color: transparent;
    }
}
