/**
 * SEO Check V2 Styles
 * V1 스타일 기반 개선 버전
 */

/* Reset & Base */
.seo-check-v2 {
    background: #fff;
    min-height: 100vh;
}

/* Search Section - V1 스타일 (흰색 배경) */
.seo-check-v2 .search-section {
    text-align: center;
    padding: 140px 20px 60px;
    background: #fff;
}

.seo-check-v2 .search-section .title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.seo-check-v2 .search-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.seo-check-v2 .search-section .description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.seo-check-v2 .btn-old-version {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: #888;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.seo-check-v2 .btn-old-version:hover {
    color: #555;
    border-color: #aaa;
    background: #f8f8f8;
}

/* URL Form - V1 스타일 (라운드 박스) */
.seo-check-v2 .url-form .input-group {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #222;
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.seo-check-v2 .url-form .input-group:focus-within {
    border-color: #00EB88;
    box-shadow: 0 0 0 3px rgba(0, 235, 136, 0.2);
}

.seo-check-v2 .url-form input[type="text"],
.seo-check-v2 .url-form input[name="url"] {
    flex: 1 1 auto !important;
    min-width: 0;
    width: auto !important;
    padding: 20px 30px !important;
    border: none !important;
    font-size: 1.1rem !important;
    outline: none !important;
    color: #333 !important;
    background: #fff !important;
    box-sizing: border-box;
}

.seo-check-v2 .url-form input[type="text"]::placeholder,
.seo-check-v2 .url-form input[name="url"]::placeholder {
    color: #999 !important;
}

.seo-check-v2 .url-form button {
    flex: 0 0 auto !important;
    padding: 20px 40px;
    background: #00EB88;
    color: #222;
    border: none;
    border-left: 2px solid #222;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seo-check-v2 .url-form button:hover {
    background: #00c474;
    color: #222;
}

.seo-check-v2 .url-form button:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.seo-check-v2 .url-form button .icon {
    font-size: 1.2rem;
}

.seo-check-v2 .input-hint {
    color: #999;
    margin-top: 15px;
    font-size: 0.9rem;
}

.seo-check-v2 .error-message {
    color: #f44336;
    margin-top: 15px;
    font-size: 0.9rem;
    background: #ffebee;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

/* Result Section */
.seo-check-v2 .result-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* 2컬럼 레이아웃 - Grid 사용 */
.seo-check-v2 .result-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    grid-template-rows: auto auto;
    gap: 30px;
    align-items: start;
}

.seo-check-v2 .result-main {
    grid-column: 1;
    grid-row: 1 / 3;
    min-width: 0;
}

.seo-check-v2 .result-sidebar-sticky {
    grid-column: 2;
    grid-row: 1;
}

.seo-check-v2 .result-sidebar-extra {
    grid-column: 2;
    grid-row: 2;
}

/* TOP5 별도 카드 */
.seo-check-v2 .sidebar-top5-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 20px;
    border: 1px solid #e8e8e8;
}

.seo-check-v2 .sidebar-top5-card .card-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px;
}

.seo-check-v2 .sidebar-top5-card .card-section-title svg {
    color: #FFD700;
}

.seo-check-v2 .sidebar-top5-card .top5-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-check-v2 .sidebar-top5-card .top5-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.seo-check-v2 .sidebar-top5-card .top5-item:last-child {
    margin-bottom: 0;
}

.seo-check-v2 .sidebar-top5-card .top5-item:hover {
    background: #f0f0f0;
}

.seo-check-v2 .sidebar-top5-card .top5-item .rank {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.seo-check-v2 .sidebar-top5-card .top5-item:nth-child(1) .rank {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #222;
}

.seo-check-v2 .sidebar-top5-card .top5-item:nth-child(2) .rank {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #222;
}

.seo-check-v2 .sidebar-top5-card .top5-item:nth-child(3) .rank {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: #fff;
}

.seo-check-v2 .sidebar-top5-card .top5-item .domain {
    flex: 1;
    font-size: 0.85rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seo-check-v2 .sidebar-top5-card .top5-item .score {
    font-size: 0.9rem;
    font-weight: 700;
}

.seo-check-v2 .sidebar-top5-card .top5-item .score.excellent { color: #2E7D32; }
.seo-check-v2 .sidebar-top5-card .top5-item .score.good { color: #558B2F; }
.seo-check-v2 .sidebar-top5-card .top5-item .score.average { color: #F57C00; }
.seo-check-v2 .sidebar-top5-card .top5-item .score.poor { color: #C62828; }

.seo-check-v2 .sidebar-sticky {
    position: sticky;
    top: 100px;
    background: linear-gradient(180deg, #e0fff2 0%, #f5fdf9 50%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 20px;
    border: 1px solid #c5f0e0;
}

/* 사이드바 총점 */
.seo-check-v2 .sidebar-score-box {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.seo-check-v2 .sidebar-score-box .score-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.seo-check-v2 .sidebar-score-box .score-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #222;
    line-height: 1;
    margin-bottom: 15px;
}

.seo-check-v2 .sidebar-score-box .score-unit {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

.seo-check-v2 .sidebar-score-box .btn-consult {
    display: block;
    padding: 12px 20px;
    background: #00EB88;
    color: #222;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.seo-check-v2 .sidebar-score-box .btn-consult:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 235, 136, 0.4);
}

/* 사이드바 단계 표시 */
.seo-check-v2 .sidebar-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
}

.seo-check-v2 .sidebar-step {
    flex: 0 0 calc(33.33% - 4px);
    text-align: center;
    padding: 10px 6px;
    background: #f8f8f8;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #666;
    transition: all 0.2s;
}

.seo-check-v2 .sidebar-step.active {
    background: #00EB88;
    color: #222;
}

.seo-check-v2 .sidebar-step .step-num {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 3px;
}

.seo-check-v2 .sidebar-step .step-name {
    display: block;
    font-size: 0.8rem;
}

/* 사이드바 단계 메시지 */
.seo-check-v2 .sidebar-message {
    background: #222;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.seo-check-v2 .sidebar-message .msg-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
}

.seo-check-v2 .sidebar-message .msg-range {
    display: inline-block;
    padding: 3px 12px;
    border: 1px solid #00EB88;
    border-radius: 15px;
    color: #00EB88;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 사이드바 분야별 점수 그래프 */
.seo-check-v2 .sidebar-chart-box {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    overflow: hidden;
}

.seo-check-v2 .sidebar-chart-box .chart-title {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.seo-check-v2 .sidebar-chart-box .chart-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.seo-check-v2 .sidebar-chart-box .legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #666;
}

.seo-check-v2 .sidebar-chart-box .legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.seo-check-v2 .sidebar-chart-box .legend-color.max {
    background: #555555;
}

.seo-check-v2 .sidebar-chart-box .legend-color.score {
    background: #00EB88;
}

.seo-check-v2 .sidebar-chart-box #seoBarChart {
    height: 200px;
    overflow: hidden;
}

/* 사이드바 카테고리 */
.seo-check-v2 .sidebar-categories {
    margin-bottom: 15px;
}

.seo-check-v2 .sidebar-cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.seo-check-v2 .sidebar-cat-item:hover {
    background: #f5f5f5;
}

.seo-check-v2 .sidebar-cat-item .cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.seo-check-v2 .sidebar-cat-item .cat-icon svg {
    width: 18px;
    height: 18px;
}

.seo-check-v2 .sidebar-cat-item .cat-name {
    flex: 1;
    font-size: 0.85rem;
    color: #333;
}

.seo-check-v2 .sidebar-cat-item .cat-percent {
    font-size: 0.9rem;
    font-weight: 700;
}

.seo-check-v2 .sidebar-cat-item .cat-percent.excellent { color: #4CAF50; }
.seo-check-v2 .sidebar-cat-item .cat-percent.good { color: #8BC34A; }
.seo-check-v2 .sidebar-cat-item .cat-percent.average { color: #FFC107; }
.seo-check-v2 .sidebar-cat-item .cat-percent.poor { color: #f44336; }

/* 다시 점검 버튼 */
.seo-check-v2 .btn-recheck {
    display: block;
    text-align: center;
    padding: 12px 16px;
    background: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.seo-check-v2 .btn-recheck:hover {
    background: #444;
    transform: translateY(-1px);
}

/* 사이드바 프리미엄 카드 */
.seo-check-v2 .sidebar-premium {
    background: #222;
    border-radius: 16px;
    padding: 20px;
    margin-top: 15px;
    text-align: center;
}

.seo-check-v2 .sidebar-premium h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 12px;
}

.seo-check-v2 .sidebar-premium ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    text-align: left;
}

.seo-check-v2 .sidebar-premium li {
    color: #ccc;
    font-size: 0.8rem;
    padding: 4px 0;
}

.seo-check-v2 .sidebar-premium li::before {
    content: "✓ ";
    color: #00EB88;
}

.seo-check-v2 .btn-premium-sidebar {
    display: block;
    padding: 10px 20px;
    background: #00EB88;
    color: #222;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.seo-check-v2 .btn-premium-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 235, 136, 0.4);
}

/* Detail Results */
.seo-check-v2 .detail-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.seo-check-v2 .result-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.seo-check-v2 .card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 25px;
    background: #222;
    color: #fff;
    border-bottom: 1px solid #333;
    margin: 0;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.seo-check-v2 .card-title:hover {
    background: #333;
}

.seo-check-v2 .card-title .icon svg path,
.seo-check-v2 .card-title .icon svg line,
.seo-check-v2 .card-title .icon svg rect,
.seo-check-v2 .card-title .icon svg circle {
    stroke: #fff;
}

.seo-check-v2 .card-title .icon svg path[fill="#00EB88"],
.seo-check-v2 .card-title .icon svg circle[fill="#00EB88"] {
    fill: #00EB88;
}

.seo-check-v2 .card-title .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.seo-check-v2 .card-title .icon svg {
    width: 24px;
    height: 24px;
}

.seo-check-v2 .section-score {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.seo-check-v2 .section-score.excellent { background: #E8F5E9; color: #4CAF50; }
.seo-check-v2 .section-score.good { background: #F1F8E9; color: #689F38; }
.seo-check-v2 .section-score.average { background: #FFF8E1; color: #F57C00; }
.seo-check-v2 .section-score.poor { background: #FFEBEE; color: #f44336; }

/* Toggle Icon */
.seo-check-v2 .toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    background: #00EB88;
    border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
}

.seo-check-v2 .toggle-icon svg {
    width: 16px;
    height: 16px;
}

.seo-check-v2 .toggle-icon svg path {
    stroke: #222;
}

.seo-check-v2 .card-title:hover .toggle-icon {
    background: #00c474;
}

.seo-check-v2 .result-card.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

/* Card Content (collapsible) */
.seo-check-v2 .card-content {
    padding: 15px 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.seo-check-v2 .result-card.collapsed .card-content {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
}

/* Check Items */
.seo-check-v2 .check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.seo-check-v2 .check-item:last-child {
    border-bottom: none;
}

.seo-check-v2 .status-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
}

.seo-check-v2 .check-item.pass .status-icon {
    background: #00EB88;
    color: #222;
}

.seo-check-v2 .check-item.fail .status-icon {
    background: #f44336;
    color: #fff;
}

.seo-check-v2 .check-item.warning .status-icon {
    background: #FFC107;
    color: #222;
}

.seo-check-v2 .check-item.na .status-icon {
    background: #e0e0e0;
    color: #666;
}

.seo-check-v2 .item-content {
    flex: 1;
}

.seo-check-v2 .item-title {
    font-weight: 600;
    color: #333;
    margin: 0 0 4px;
}

.seo-check-v2 .item-detail {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.seo-check-v2 .item-detail a {
    color: #00EB88;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}

.seo-check-v2 .item-detail a:hover {
    color: #00c474;
    text-decoration: underline;
}

.seo-check-v2 .item-score {
    flex: 0 0 50px;
    text-align: right;
    font-weight: 700;
    font-size: 1rem;
}

.seo-check-v2 .check-item.pass .item-score {
    color: #00EB88;
}

.seo-check-v2 .check-item.fail .item-score {
    color: #f44336;
}

.seo-check-v2 .check-item.warning .item-score {
    color: #FFC107;
}

.seo-check-v2 .check-item.na .item-score {
    color: #9e9e9e;
}

/* Code Block Styles */
.seo-check-v2 .code-block {
    margin-top: 12px;
    background: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
    border-left: 4px solid #00EB88;
}

.seo-check-v2 .code-block pre {
    margin: 0;
    padding: 15px 20px;
    overflow-x: auto;
}

.seo-check-v2 .code-block code {
    font-family: 'Pretendard', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e0e0e0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* HTML Syntax Highlighting */
.seo-check-v2 .code-block .hl-tag {
    color: #00EB88;
}

.seo-check-v2 .code-block .hl-attr {
    color: #82aaff;
}

.seo-check-v2 .code-block .hl-value {
    color: #c3e88d;
}

.seo-check-v2 .code-block .hl-bracket {
    color: #89ddff;
}

/* Loading Overlay (V1 스타일) */
.seo-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.seo-loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}

.seo-loading-spinner .spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #00EB88;
    border-radius: 50%;
    animation: seoSpin 1s linear infinite;
}

.seo-loading-spinner .spinner-ring:nth-child(1) {
    animation-delay: 0s;
}

.seo-loading-spinner .spinner-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: #00a3ff;
    animation-delay: 0.2s;
}

.seo-loading-spinner .spinner-ring:nth-child(3) {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-top-color: #00EB88;
    animation-delay: 0.4s;
}

.seo-loading-spinner .spinner-ring:nth-child(4) {
    width: 30%;
    height: 30%;
    top: 35%;
    left: 35%;
    border-top-color: #00c474;
    animation-delay: 0.6s;
}

@keyframes seoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.seo-loading-text {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
    animation: seoPulse 2s ease-in-out infinite;
}

@keyframes seoPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 1200px) {
    .seo-check-v2 .result-layout {
        grid-template-columns: 1fr 320px;
    }

    .seo-check-v2 .sidebar-score-box .score-value {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .seo-check-v2 .result-layout {
        display: flex;
        flex-direction: column;
    }

    .seo-check-v2 .result-sidebar-sticky {
        width: 100%;
        order: -1;
        margin-bottom: 0;
    }

    .seo-check-v2 .result-sidebar-extra {
        width: 100%;
        order: 999;
    }

    .seo-check-v2 .result-main {
        width: 100%;
        order: 0;
    }

    /* TOP5 카드 - 태블릿에서 맨 하단 */
    .seo-check-v2 .sidebar-top5-card {
        width: 100%;
    }

    .seo-check-v2 .sidebar-sticky {
        position: static;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    .seo-check-v2 .result-card {
        width: 100%;
        box-sizing: border-box;
    }

    .seo-check-v2 .sidebar-steps {
        gap: 4px;
    }

    .seo-check-v2 .sidebar-step {
        flex: 0 0 calc(16.66% - 4px);
        padding: 6px 2px;
    }

    .seo-check-v2 .sidebar-categories {
        display: flex;
        gap: 8px;
    }

    .seo-check-v2 .sidebar-cat-item {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 8px 4px;
    }

    .seo-check-v2 .sidebar-cat-item .cat-name {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .seo-check-v2 .search-section {
        padding: 60px 15px 40px;
    }

    .seo-check-v2 .search-section h1 {
        font-size: 2rem;
    }

    .seo-check-v2 .url-form .input-group {
        flex-direction: column;
        border-radius: 15px;
    }

    .seo-check-v2 .url-form input[type="text"],
    .seo-check-v2 .url-form input[name="url"] {
        border-radius: 15px 15px 0 0;
        text-align: center;
    }

    .seo-check-v2 .url-form button {
        border-radius: 0 0 15px 15px;
        border-left: none;
        border-top: 2px solid #222;
        justify-content: center;
    }

    .seo-check-v2 .sidebar-step {
        flex: 0 0 calc(33.33% - 4px);
    }

    .seo-check-v2 .sidebar-categories {
        flex-wrap: wrap;
    }

    .seo-check-v2 .sidebar-cat-item {
        flex: 0 0 calc(50% - 4px);
    }

    .seo-check-v2 .check-item {
        flex-wrap: wrap;
    }

    .seo-check-v2 .item-score {
        flex: 0 0 100%;
        text-align: left;
        margin-top: 8px;
        padding-left: 40px;
    }
}


/* Security Section Styles (점수 없음, 권장사항) */
.seo-check-v2 .security-card {
    border-left: 4px solid #6c757d;
}

.seo-check-v2 .section-badge {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.seo-check-v2 .section-badge.recommend {
    background: #e9ecef;
    color: #495057;
}

.seo-check-v2 .security-notice {
    font-size: 0.9rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 0 0 15px;
    border-left: 3px solid #6c757d;
}

/* Security items don't show score */
.seo-check-v2 .security-card .item-score {
    display: none;
}

/* Analysis Warning Banner */
.seo-check-v2 .analysis-warning {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 25px;
    padding: 20px 24px;
    border-radius: 12px;
    background: #FEF3C7;
    border: 1px solid #F59E0B;
}

.seo-check-v2 .analysis-warning.cloudflare {
    background: #FEF3C7;
    border-color: #F59E0B;
}

.seo-check-v2 .analysis-warning.failed {
    background: #FEE2E2;
    border-color: #EF4444;
}

.seo-check-v2 .analysis-warning .warning-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.seo-check-v2 .analysis-warning .warning-content {
    flex: 1;
}

.seo-check-v2 .analysis-warning .warning-content strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #92400E;
    margin-bottom: 6px;
}

.seo-check-v2 .analysis-warning.failed .warning-content strong {
    color: #991B1B;
}

.seo-check-v2 .analysis-warning .warning-content p {
    font-size: 0.95rem;
    color: #78350F;
    margin: 0;
    line-height: 1.5;
}

.seo-check-v2 .analysis-warning.failed .warning-content p {
    color: #7F1D1D;
}

@media (max-width: 768px) {
    .seo-check-v2 .analysis-warning {
        margin: 0 15px 20px;
        padding: 16px;
        gap: 12px;
    }

    .seo-check-v2 .analysis-warning .warning-content strong {
        font-size: 0.95rem;
    }

    .seo-check-v2 .analysis-warning .warning-content p {
        font-size: 0.9rem;
    }
}

/* =====================================================
   SEO Check Intro Section (검색 전 설명)
   ===================================================== */
.seo-check-v2 .seo-check-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.seo-check-v2 .seo-check-intro h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 15px;
}

.seo-check-v2 .seo-check-intro .intro-desc {
    text-align: center;
    font-size: 1.05rem;
    color: #666;
    margin: 0 0 40px;
}

.seo-check-v2 .seo-check-intro .intro-desc strong {
    color: #00EB88;
    font-weight: 700;
}

/* Category Cards Grid */
.seo-check-v2 .check-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.seo-check-v2 .category-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.seo-check-v2 .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.seo-check-v2 .category-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: #222;
    color: #fff;
}

.seo-check-v2 .category-card .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.seo-check-v2 .category-card .card-icon svg {
    width: 24px;
    height: 24px;
}

.seo-check-v2 .category-card .card-icon svg path,
.seo-check-v2 .category-card .card-icon svg line,
.seo-check-v2 .category-card .card-icon svg rect,
.seo-check-v2 .category-card .card-icon svg circle {
    stroke: #fff;
}

.seo-check-v2 .category-card .card-icon svg path[fill="#00EB88"],
.seo-check-v2 .category-card .card-icon svg circle[fill="#00EB88"] {
    fill: #00EB88;
}

.seo-check-v2 .category-card .card-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.seo-check-v2 .category-card .card-score {
    padding: 6px 14px;
    background: #00EB88;
    color: #222;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Check List */
.seo-check-v2 .check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-check-v2 .check-list li {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.seo-check-v2 .check-list li:last-child {
    border-bottom: none;
}

.seo-check-v2 .check-list li strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.seo-check-v2 .check-list li p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Score Structure */
.seo-check-v2 .score-structure {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

.seo-check-v2 .score-structure h3 {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 25px;
}

.seo-check-v2 .score-bars {
    max-width: 600px;
    margin: 0 auto;
}

.seo-check-v2 .score-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.seo-check-v2 .score-bar:last-child {
    margin-bottom: 0;
}

.seo-check-v2 .score-bar .bar-label {
    flex: 0 0 120px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    text-align: right;
}

.seo-check-v2 .score-bar .bar-track {
    flex: 1;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.seo-check-v2 .score-bar .bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
}

.seo-check-v2 .score-bar .bar-fill.content {
    background: linear-gradient(90deg, #00EB88, #00c474);
}

.seo-check-v2 .score-bar .bar-fill.technical {
    background: linear-gradient(90deg, #4ECDC4, #2EAA9B);
}

.seo-check-v2 .score-bar .bar-fill.search-engine {
    background: linear-gradient(90deg, #00a3ff, #0088d4);
}

.seo-check-v2 .score-bar .bar-fill.speed {
    background: linear-gradient(90deg, #FFD93D, #F4C300);
}

.seo-check-v2 .score-bar .bar-value {
    flex: 0 0 50px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
}

/* Grade Guide */
.seo-check-v2 .grade-guide {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
}

.seo-check-v2 .grade-guide h3 {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 25px;
}

.seo-check-v2 .grade-items {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.seo-check-v2 .grade-item {
    text-align: center;
    padding: 16px 10px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.seo-check-v2 .grade-item:hover {
    transform: scale(1.05);
}

.seo-check-v2 .grade-item .grade-range {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.seo-check-v2 .grade-item .grade-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.seo-check-v2 .grade-item .grade-desc {
    display: block;
    font-size: 0.75rem;
}

/* Grade Colors */
.seo-check-v2 .grade-item.excellent {
    background: #E8F5E9;
    color: #2E7D32;
}

.seo-check-v2 .grade-item.good {
    background: #F1F8E9;
    color: #558B2F;
}

.seo-check-v2 .grade-item.average {
    background: #FFF8E1;
    color: #F57C00;
}

.seo-check-v2 .grade-item.below {
    background: #FFF3E0;
    color: #E65100;
}

.seo-check-v2 .grade-item.poor {
    background: #FFEBEE;
    color: #C62828;
}

.seo-check-v2 .grade-item.critical {
    background: #FCEDEF;
    color: #B71C1C;
}

/* Responsive - Check Intro */
@media (max-width: 992px) {
    .seo-check-v2 .check-categories {
        grid-template-columns: 1fr;
    }

    .seo-check-v2 .grade-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .seo-check-v2 .seo-check-intro {
        padding: 0 15px 60px;
    }

    .seo-check-v2 .seo-check-intro h2 {
        font-size: 1.6rem;
    }

    .seo-check-v2 .score-structure {
        padding: 20px 15px;
    }

    .seo-check-v2 .score-bar {
        flex-wrap: wrap;
    }

    .seo-check-v2 .score-bar .bar-label {
        flex: 0 0 100%;
        text-align: left;
        margin-bottom: 8px;
    }

    .seo-check-v2 .score-bar .bar-track {
        flex: 1;
    }

    .seo-check-v2 .grade-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-check-v2 .grade-guide {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .seo-check-v2 .grade-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .seo-check-v2 .grade-item {
        padding: 12px 8px;
    }

    .seo-check-v2 .grade-item .grade-name {
        font-size: 0.9rem;
    }
}

/* =====================================================
   채점 기준 보기 버튼
   ===================================================== */
.seo-check-v2 .btn-scoring-guide {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fff6 0%, #e8faf0 100%);
    border: 1.5px solid #00EB88;
    border-radius: 8px;
    color: #1a7a4c;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.seo-check-v2 .btn-scoring-guide:hover {
    background: linear-gradient(135deg, #e0ffed 0%, #d8f5e5 100%);
    border-color: #00d67a;
    color: #0f5c38;
    box-shadow: 0 2px 8px rgba(0, 235, 136, 0.25);
}

.seo-check-v2 .btn-scoring-guide svg {
    flex-shrink: 0;
}

/* =====================================================
   채점 기준 슬라이드 패널
   ===================================================== */
.scoring-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 9998;
}

.scoring-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.scoring-panel {
    position: fixed;
    top: 0;
    right: -480px;
    width: 480px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.scoring-panel.active {
    right: 0;
}

/* 패널 헤더 */
.scoring-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #222;
    color: #fff;
    flex-shrink: 0;
}

.scoring-panel-header .panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.scoring-panel-header .panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.scoring-panel-header .panel-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* 패널 바디 */
.scoring-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* 패널 섹션 */
.scoring-panel .panel-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.scoring-panel .panel-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.scoring-panel .panel-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #222;
}

.scoring-panel .panel-section h4 svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* 점수 바 */
.scoring-panel .panel-score-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scoring-panel .panel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
}

.scoring-panel .panel-bar .bar-name {
    font-size: 0.9rem;
    color: #333;
}

.scoring-panel .panel-bar .bar-score {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.scoring-panel .panel-bar .bar-score.content { background: #E8F5E9; color: #2E7D32; }
.scoring-panel .panel-bar .bar-score.technical { background: #E0F7FA; color: #00838F; }
.scoring-panel .panel-bar .bar-score.search { background: #E3F2FD; color: #1565C0; }
.scoring-panel .panel-bar .bar-score.speed { background: #FFF8E1; color: #F57C00; }

/* 패널 리스트 */
.scoring-panel .panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scoring-panel .panel-list li {
    position: relative;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #00EB88;
}

.scoring-panel .panel-list li:last-child {
    margin-bottom: 0;
}

.scoring-panel .panel-list li strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.scoring-panel .panel-list li .pts {
    float: right;
    font-size: 0.8rem;
    font-weight: 700;
    color: #00EB88;
    background: #E8F5E9;
    padding: 2px 8px;
    border-radius: 10px;
}

.scoring-panel .panel-list li p {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

/* 등급 안내 */
.scoring-panel .panel-grades {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.scoring-panel .panel-grades .grade {
    text-align: center;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.scoring-panel .panel-grades .grade span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    margin-bottom: 2px;
    opacity: 0.8;
}

.scoring-panel .panel-grades .grade.excellent { background: #E8F5E9; color: #2E7D32; }
.scoring-panel .panel-grades .grade.good { background: #F1F8E9; color: #558B2F; }
.scoring-panel .panel-grades .grade.average { background: #FFF8E1; color: #F57C00; }
.scoring-panel .panel-grades .grade.below { background: #FFF3E0; color: #E65100; }
.scoring-panel .panel-grades .grade.poor { background: #FFEBEE; color: #C62828; }
.scoring-panel .panel-grades .grade.critical { background: #FCEDEF; color: #B71C1C; }

/* 패널 푸터 */
.scoring-panel-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.scoring-panel-footer .btn-panel-close {
    width: 100%;
    padding: 14px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.scoring-panel-footer .btn-panel-close:hover {
    background: #444;
}

/* 패널 반응형 */
@media (max-width: 520px) {
    .scoring-panel {
        width: 100%;
        right: -100%;
    }

    .scoring-panel .panel-grades {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   이전 체크 기록 카드 (사이드바 내부)
   ===================================================== */
.seo-check-v2 .result-history-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

.seo-check-v2 .result-history-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #222;
}

.seo-check-v2 .result-history-card h4 svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.seo-check-v2 .history-table-wrap {
    overflow-x: auto;
    margin: 0 -6px;
    padding: 0 6px;
}

.seo-check-v2 .history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.seo-check-v2 .history-table th,
.seo-check-v2 .history-table td {
    padding: 6px 4px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}

.seo-check-v2 .history-table th {
    font-weight: 600;
    color: #888;
    background: transparent;
    font-size: 0.7rem;
}

.seo-check-v2 .history-table th:first-child,
.seo-check-v2 .history-table td:first-child,
.seo-check-v2 .history-table th:nth-child(2),
.seo-check-v2 .history-table td:nth-child(2) {
    text-align: left;
}

.seo-check-v2 .history-table tbody tr:hover {
    background: #f0f0f0;
}

.seo-check-v2 .history-table tbody tr:last-child td {
    border-bottom: none;
}

.seo-check-v2 .history-table td.date {
    color: #888;
    font-size: 0.65rem;
    white-space: nowrap;
}

.seo-check-v2 .history-table td.url-path {
    font-size: 0.7rem;
    white-space: nowrap;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.seo-check-v2 .history-table td.url-path a {
    color: #555;
    text-decoration: none;
    position: relative;
}

.seo-check-v2 .history-table td.url-path a:hover {
    color: #00EB88;
    text-decoration: underline;
}

.seo-check-v2 .history-table td.url-path[data-fullpath] {
    cursor: help;
}

/* URL 툴팁 */
/* URL 툴팁 (JS로 생성) */
.url-tooltip {
    position: fixed;
    z-index: 9999;
    background: #111;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
    pointer-events: none;
}

.seo-check-v2 .history-table td.total {
    font-weight: 700;
}

.seo-check-v2 .history-table td.total.excellent { color: #2E7D32; }
.seo-check-v2 .history-table td.total.good { color: #558B2F; }
.seo-check-v2 .history-table td.total.average { color: #F57C00; }
.seo-check-v2 .history-table td.total.poor { color: #C62828; }

.seo-check-v2 .history-legend {
    margin: 10px 0 0;
    font-size: 0.65rem;
    color: #999;
    line-height: 1.4;
}
