/* 웹사이트 속도 테스트 도구 스타일 - json-csv-converter 디자인 언어 차용 (orange/pink 테마) */
.speedtest-tool {
    --tool-primary: #ea580c;
    --tool-bg: #fff7ed;
    --tool-gradient: linear-gradient(135deg, #ea580c 0%, #db2777 100%);
}

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

/* 액션 버튼 */
.btn-action {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 13.5px;
    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-lg {
    padding: 12px 26px;
    font-size: 15px;
    border-radius: 12px;
}
.btn-action-primary {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
}
/* CRITICAL: hover 시 그라데이션·흰색 글자 유지(텍스트 사라짐 방지) */
.btn-action-primary:hover {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.3);
}

/* 에디터 카드 */
.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: 15px;
    color: #343a40;
}
.editor-title i {
    color: var(--tool-primary);
}
.editor-body {
    padding: 18px;
}

/* URL 입력 포커스 (테마 색상) */
.speedtest-tool .form-control:focus {
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

/* 로딩 스피너 테마 색상 */
.speedtest-spinner {
    color: var(--tool-primary);
}

/* 모바일/데스크탑 토글 (선택 시 테마 색상) */
.speedtest-tool .btn-check:checked + .btn-outline-secondary {
    background-color: var(--tool-primary);
    border-color: var(--tool-primary);
    color: #fff;
}
.speedtest-tool .btn-outline-secondary:hover {
    background-color: var(--tool-bg);
    border-color: var(--tool-primary);
    color: var(--tool-primary);
}

/* 점수 게이지 */
.speed-score-gauge svg {
    transform: rotate(-90deg);
}
.speed-score-gauge .gauge-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 8;
}
.speed-score-gauge .gauge-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
}
.speed-score-gauge .gauge-text {
    font-size: 2rem;
    font-weight: 700;
    fill: #212529;
    transform: rotate(90deg);
    transform-origin: 60px 60px;
}
.speed-score-gauge .gauge-label {
    font-size: 0.7rem;
    fill: #868e96;
    transform: rotate(90deg);
    transform-origin: 60px 60px;
}

/* 점수 색상 */
.score-good { --score-color: #0cce6b; }
.score-average { --score-color: #ffa400; }
.score-poor { --score-color: #ff4e42; }

.score-good .gauge-fill { stroke: #0cce6b; }
.score-average .gauge-fill { stroke: #ffa400; }
.score-poor .gauge-fill { stroke: #ff4e42; }

.score-good .gauge-text { fill: #0cce6b; }
.score-average .gauge-text { fill: #ffa400; }
.score-poor .gauge-text { fill: #ff4e42; }

/* 메트릭 카드 */
.metric-card {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    text-align: center;
    background: #f8f9fb;
}
.metric-card .metric-value {
    font-size: 1.25rem;
    font-weight: 700;
}
.metric-card .metric-label {
    font-size: 0.75rem;
    color: #868e96;
    margin-top: 0.25rem;
}
.metric-card .metric-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.25rem;
}
.metric-dot-good { background-color: #0cce6b; }
.metric-dot-average { background-color: #ffa400; }
.metric-dot-poor { background-color: #ff4e42; }

/* Web Vitals 카드 */
.vital-card {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8f9fb;
}
.vital-card .vital-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.vital-card .vital-value {
    font-size: 1.5rem;
    font-weight: 700;
}
.vital-card .vital-bar {
    height: 4px;
    border-radius: 2px;
    background-color: #e9ecef;
    margin-top: 0.5rem;
    overflow: hidden;
}
.vital-card .vital-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
}
.vital-badge {
    font-size: 0.7rem;
    padding: 0.2em 0.5em;
    border-radius: 0.25rem;
    font-weight: 600;
}
.vital-badge-good { background-color: rgba(12, 206, 107, 0.1); color: #0cce6b; }
.vital-badge-average { background-color: rgba(255, 164, 0, 0.1); color: #ffa400; }
.vital-badge-poor { background-color: rgba(255, 78, 66, 0.1); color: #ff4e42; }

/* 개선 사항 */
.opportunity-item {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #f8f9fb;
}
.opportunity-item .opportunity-title {
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
}
.opportunity-item .opportunity-savings {
    font-size: 0.8rem;
    white-space: nowrap;
    color: #868e96;
}
.opportunity-bar {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background-color: #e9ecef;
    overflow: hidden;
    flex-shrink: 0;
}
.opportunity-bar-fill {
    height: 100%;
    border-radius: 2px;
}

/* 호스팅 추천 카드 (테마 강조) */
.speedtest-hosting-card {
    border-left: 4px solid var(--tool-primary);
}
.speedtest-hosting-card .editor-title i {
    color: var(--tool-primary);
}

/* 호스팅 추천 affiliate 버튼 */
.hosting-affiliate-btn {
    font-size: 0.8rem;
    padding: 0.4em 1em;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.hosting-affiliate-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
.hosting-btn-cloudflare {
    background-color: #f38020;
    color: #fff;
    border: 1px solid #f38020;
}
.hosting-btn-cloudflare:hover { background-color: #d96d18; color: #fff; }
.hosting-btn-siteground {
    background-color: #6b2faf;
    color: #fff;
    border: 1px solid #6b2faf;
}
.hosting-btn-siteground:hover { background-color: #5a2793; color: #fff; }
.hosting-btn-hostinger {
    background-color: #673de6;
    color: #fff;
    border: 1px solid #673de6;
}
.hosting-btn-hostinger:hover { background-color: #5531c4; color: #fff; }

/* 서포트 카드 */
.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;
}

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

/* 반응형 */
@media (max-width: 768px) {
    .speedtest-hero { padding: 28px 20px; border-radius: 12px; }
    .speedtest-hero h1 { font-size: 22px; }
    .btn-action-lg { width: 100%; justify-content: center; }
}
</content>
