/**
 * HrefLang SEO Checker - Frontend Styles
 * Clean light design with brand color #006466
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

/* Reset & Base */
* {
    box-sizing: border-box;
}

/* Main Container */
.hsc-frontend-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 100, 102, 0.1);
    border: 1px solid #d1e8e8;
    color: #1e293b;
}

/* Header Section */
.hsc-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 2px solid #e6f7f7;
}

.hsc-title-group {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.hsc-icon-pulse {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #006466 0%, #00a8aa 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 100, 102, 0.25);
}

.hsc-icon-pulse svg {
    color: #ffffff;
}

.hsc-title {
    font-size: 32px;
    font-weight: 700;
    color: #006466;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.hsc-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

/* Configuration Panel */
.hsc-config-panel {
    margin-bottom: 32px;
}

.hsc-input-group {
    margin-bottom: 32px;
}

.hsc-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #006466;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hsc-label svg {
    display: none;
}

.hsc-input-wrapper {
    position: relative;
}

.hsc-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-family: 'Fira Code', monospace;
    background: #f8fafa;
    border: 2px solid #d1e8e8;
    border-radius: 12px;
    color: #1e293b;
    transition: all 0.3s ease;
}

.hsc-input:focus {
    outline: none;
    border-color: #006466;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 100, 102, 0.1);
}

.hsc-input-border {
    display: none;
}

/* Checks Configuration */
.hsc-checks-config {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.hsc-check-item {
    position: relative;
}

.hsc-check-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hsc-check-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8fafa;
    border: 2px solid #d1e8e8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

.hsc-check-item label:hover {
    border-color: #006466;
    background: #e6f7f7;
}

.hsc-check-item input:checked + label {
    background: #e6f7f7;
    border-color: #006466;
}

.hsc-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #d1e8e8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.hsc-check-item input:checked + label .hsc-checkbox {
    background: #006466;
    border-color: #006466;
}

.hsc-check-item input:checked + label .hsc-checkbox::after {
    content: '✓';
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}

/* Primary Button */
.hsc-btn-primary {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #006466 0%, #00a8aa 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 100, 102, 0.25);
}

.hsc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 100, 102, 0.35);
}

.hsc-btn-primary:active {
    transform: translateY(0);
}

.hsc-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.hsc-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hsc-btn-glow {
    display: none;
}

/* Loading State */
.hsc-loading {
    text-align: center;
    padding: 60px 20px;
}

.hsc-loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    position: relative;
}

.hsc-spinner-ring {
    position: absolute;
    inset: 0;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: hsc-spin 1.5s linear infinite;
}

.hsc-spinner-ring:nth-child(1) {
    border-top-color: #006466;
    animation-delay: 0s;
}

.hsc-spinner-ring:nth-child(2) {
    border-right-color: #00a8aa;
    animation-delay: 0.3s;
}

.hsc-spinner-ring:nth-child(3) {
    border-bottom-color: #0e9594;
    animation-delay: 0.6s;
}

@keyframes hsc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hsc-loading-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1e293b;
}

.hsc-loading-progress {
    width: 100%;
    max-width: 400px;
    height: 4px;
    background: #e6f7f7;
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
}

.hsc-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #006466 0%, #00a8aa 100%);
    border-radius: 4px;
    /* Infinite animation removed - bar should be static or have definite end */
}

/* Loading animation removed - was causing endless movement */
/* @keyframes hsc-progress {
    0% { width: 0%; transform: translateX(0); }
    50% { width: 70%; }
    100% { width: 100%; transform: translateX(100%); }
} */

/* Results Section */
.hsc-results {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 2px solid #e6f7f7;
}

/* Score Card */
.hsc-score-card {
    display: none !important; /* REMOVED - Using progress indicator instead */
}

.hsc-score-visual {
    display: none; /* Part of removed score card */
}

.hsc-score-circle {
    display: none;
}

.hsc-score-value {
    display: none; /* Part of removed score card */
}

.hsc-score-number {
    display: none; /* Part of removed score card */
}

.hsc-score-label {
    display: none; /* Part of removed score card */
}

.hsc-score-info {
    display: none; /* Part of removed score card */
}

.hsc-score-title {
    display: none; /* Part of removed score card */
}

.hsc-score-description {
    display: none; /* Part of removed score card */
}

.hsc-score-status {
    display: none; /* Part of removed score card */
}

.hsc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e6f7f7;
    color: #006466;
    border: 1px solid #006466;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Check Results */
.hsc-checks-results {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}

.hsc-check-result {
    background: #ffffff;
    border: 2px solid #d1e8e8;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.hsc-check-result:hover {
    border-color: #006466;
    box-shadow: 0 8px 24px rgba(0, 100, 102, 0.1);
}

.hsc-check-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hsc-check-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.hsc-check-icon {
    width: 40px;
    height: 40px;
    background: #e6f7f7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.hsc-check-status {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.hsc-check-result.pass .hsc-check-status {
    background: #d1fae5;
    color: #065f46;
}

.hsc-check-result.warning .hsc-check-status {
    background: #fef3c7;
    color: #92400e;
}

.hsc-check-result.fail .hsc-check-status {
    background: #fee2e2;
    color: #991b1b;
}

.hsc-check-result.info .hsc-check-status {
    background: #dbeafe;
    color: #1e40af;
}

.hsc-check-issues {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hsc-issue-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafa;
    border-left: 3px solid;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.hsc-issue-item code {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    background: #1e293b;
    color: #00ff88;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
}

.hsc-issue-item.success {
    border-left-color: #00a878;
    background: #d1fae5;
}

.hsc-issue-item.warning {
    border-left-color: #f59e0b;
    background: #fef3c7;
}

.hsc-issue-item.error {
    border-left-color: #dc2626;
    background: #fee2e2;
}

.hsc-issue-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.hsc-tags-info {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafa;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Fira Code', monospace;
}

.hsc-tags-info ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.hsc-tags-info strong {
    color: #006466;
}

/* Actions */
.hsc-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Code Generator Buttons */
.hsc-btn-copy:hover,
.hsc-btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 100, 102, 0.3);
}

.hsc-btn-copy:active,
.hsc-btn-download:active {
    transform: translateY(0);
}

/* Reciprocity Diagram */
/* Reciprocity Diagram - Interactive Version */
.hsc-reciprocity-diagram {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafa 100%);
    border: 2px solid #006466;
    border-radius: 12px;
    animation: fadeIn 0.5s ease-in;
}

.hsc-diagram-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.hsc-diagram-title {
    font-size: 16px;
    font-weight: 600;
    color: #006466;
}

.hsc-diagram-subtitle {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

.hsc-diagram-expand-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #006466 0%, #00a8aa 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 100, 102, 0.2);
}

.hsc-diagram-expand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 100, 102, 0.3);
}

.hsc-diagram-svg {
    max-width: 600px;
    margin: 0 auto;
    display: block;
    overflow: visible;
}

/* Center Node */
.hsc-center-node {
    fill: #006466;
    stroke: #00a8aa;
    stroke-width: 3;
    filter: drop-shadow(0 4px 8px rgba(0, 100, 102, 0.3));
}

.hsc-center-text-main {
    fill: #ffffff;
    font-weight: bold;
    font-size: 14px;
    pointer-events: none;
}

.hsc-center-text-sub {
    fill: #ffffff;
    font-size: 12px;
    pointer-events: none;
}

/* Connection Lines */
.hsc-connection-line {
    stroke-width: 2;
    opacity: 0.6;
    transition: all 0.3s;
}

.hsc-connection-line.success {
    stroke: #00a878;
    stroke-dasharray: 0;
}

.hsc-connection-line.failed {
    stroke: #ef4444;
    stroke-dasharray: 5,5;
}

.hsc-connection-line.unchecked {
    stroke: #cbd5e1;
    stroke-dasharray: 5,5;
}

.hsc-arrow {
    fill: none;
    stroke: #00a878;
    stroke-width: 2;
}

/* Language Nodes */
.hsc-language-node {
    transition: all 0.3s;
    cursor: default;
}

.hsc-language-node.unchecked {
    cursor: pointer;
}

.hsc-language-node:hover .hsc-node-circle {
    transform: scale(1.15);
    transform-origin: center;
}

.hsc-node-circle {
    stroke-width: 3;
    transition: all 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Success State */
.hsc-language-node.success .hsc-node-circle {
    fill: #00a878;
    stroke: #34d399;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(0, 168, 120, 0.3));
    }
    50% {
        filter: drop-shadow(0 4px 12px rgba(0, 168, 120, 0.6));
    }
}

/* Failed State */
.hsc-language-node.failed .hsc-node-circle {
    fill: #ef4444;
    stroke: #f87171;
    animation: failedShake 0.5s ease-in-out;
}

@keyframes failedShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Unchecked State */
.hsc-language-node.unchecked .hsc-node-circle {
    fill: #94a3b8;
    stroke: #cbd5e1;
}

.hsc-language-node.unchecked:hover .hsc-node-circle {
    fill: #64748b;
    stroke: #94a3b8;
    filter: drop-shadow(0 4px 8px rgba(100, 116, 139, 0.4));
}

/* Node Text */
.hsc-node-icon {
    fill: #ffffff;
    font-weight: bold;
    font-size: 20px;
    pointer-events: none;
}

.hsc-language-node.unchecked .hsc-node-icon {
    fill: #64748b;
}

.hsc-node-label {
    fill: #ffffff;
    font-weight: bold;
    font-size: 12px;
    pointer-events: none;
    text-transform: uppercase;
}

/* Tooltip */
.hsc-node-tooltip {
    position: absolute;
    z-index: 10000;
    background: #ffffff;
    border: 2px solid #006466;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    max-width: 350px;
    pointer-events: none;
}

.hsc-tooltip-header {
    padding: 12px 16px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hsc-tooltip-header.success {
    background: linear-gradient(135deg, #00a878 0%, #34d399 100%);
}

.hsc-tooltip-header.failed {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.hsc-tooltip-header.unchecked {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
}

.hsc-tooltip-icon {
    font-size: 24px;
    color: #ffffff;
}

.hsc-tooltip-lang {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.hsc-tooltip-url {
    padding: 12px 16px;
    font-size: 13px;
    color: #64748b;
    word-break: break-all;
    border-bottom: 1px solid #e6f7f7;
}

.hsc-tooltip-status {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
}

.hsc-tooltip-status.success {
    color: #00a878;
}

.hsc-tooltip-status.failed {
    color: #ef4444;
}

.hsc-tooltip-status.unchecked {
    color: #64748b;
}

.hsc-tooltip-hint {
    padding: 8px 16px;
    background: #f0fdf4;
    border-top: 1px solid #d1fae5;
    border-radius: 0 0 10px 10px;
    font-size: 12px;
    color: #065f46;
    font-style: italic;
}

/* Legend */
.hsc-diagram-legend {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafa;
    border-radius: 8px;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 13px;
}

.hsc-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hsc-legend-icon {
    font-size: 18px;
    font-weight: bold;
}

.hsc-legend-icon.success {
    color: #00a878;
}

.hsc-legend-icon.failed {
    color: #ef4444;
}

.hsc-legend-icon.unchecked {
    color: #94a3b8;
}

/* Batch Testing Progress Bar */
.hsc-batch-progress {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #006466;
    border-radius: 12px;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hsc-batch-progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #006466;
    margin-bottom: 12px;
    text-align: center;
}

.hsc-batch-progress-bar {
    width: 100%;
    height: 24px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hsc-batch-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #006466 0%, #00a8aa 100%);
    border-radius: 12px;
    transition: width 0.5s ease-out, background 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 168, 170, 0.5);
}

.hsc-batch-progress-fill:after {
    /* Shimmer removed - batch testing feature is disabled */
    display: none;
}

/* Batch progress shimmer removed - feature disabled */
/* @keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
} */

@media (max-width: 768px) {
    .hsc-reciprocity-diagram {
        padding: 16px;
    }
    
    .hsc-diagram-svg {
        height: 300px;
    }
    
    .hsc-diagram-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hsc-diagram-expand-btn {
        width: 100%;
    }
    
    .hsc-node-tooltip {
        max-width: 280px;
    }
}

/* Tooltips */
.hsc-tooltip-icon {
    display: inline-block;
    margin-left: 8px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #e6f7f7;
    color: #006466;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    cursor: help;
    transition: all 0.3s;
}

/* Priority Badges */
.hsc-priority-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgePulse 0.5s ease-out;
}

@keyframes badgePulse {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hsc-priority-badge.critical {
    color: #ef4444;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.hsc-priority-badge.warning {
    color: #f59e0b;
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.hsc-priority-badge.info {
    color: #3b82f6;
    background: #dbeafe;
    border: 1px solid #93c5fd;
}

/* Priority explanations */
.hsc-priority-explanation {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8fafa;
    border-left: 3px solid #006466;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.hsc-priority-explanation strong {
    color: #006466;
}

/* URL History */
.hsc-url-history {
    margin-bottom: 24px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e6f7f7;
    border-radius: 12px;
    animation: fadeIn 0.5s ease-out;
}

.hsc-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e6f7f7;
}

.hsc-history-title {
    font-size: 16px;
    font-weight: 600;
    color: #006466;
    margin: 0;
}

.hsc-history-clear-btn {
    padding: 6px 12px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.hsc-history-clear-btn:hover {
    background: #ef4444;
    color: #ffffff;
    transform: translateY(-2px);
}

.hsc-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hsc-history-item {
    padding: 12px;
    background: #f8fafa;
    border-radius: 8px;
    border-left: 4px solid #006466;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    cursor: pointer;
}

.hsc-history-item:hover {
    background: #e6f7f7;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 100, 102, 0.1);
}

.hsc-history-info {
    flex: 1;
    min-width: 0;
}

.hsc-history-url-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.hsc-history-icon {
    font-size: 16px;
    line-height: 1;
}

.hsc-history-url {
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hsc-history-critical-badge {
    padding: 2px 6px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hsc-history-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
}

.hsc-history-score {
    font-weight: 500;
}

.hsc-history-date {
    opacity: 0.8;
}

.hsc-history-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.hsc-history-recheck-btn {
    padding: 8px 16px;
    background: #006466;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.hsc-history-recheck-btn:hover {
    background: #00a8aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 100, 102, 0.3);
}

.hsc-history-delete-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.hsc-history-delete-btn:hover {
    background: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .hsc-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .hsc-history-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .hsc-history-url {
        max-width: 100%;
    }
}

/* Issue Counter Badges */
.hsc-issue-counter-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 6px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    vertical-align: middle;
    animation: badgePop 0.3s ease-out;
}

@keyframes badgePop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hsc-issue-counter-badge.critical {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.hsc-issue-counter-badge.warning {
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.hsc-issue-counter-badge:hover {
    transform: scale(1.05);
    cursor: help;
}

/* Progress Score Indicator */
.hsc-progress-indicator {
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafa 100%);
    border: 2px solid #e6f7f7;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 100, 102, 0.08);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hsc-progress-score-display {
    text-align: center;
    margin-bottom: 20px;
}

.hsc-progress-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.hsc-progress-score {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.hsc-progress-score-number {
    font-size: 56px;
}

.hsc-progress-score-total {
    font-size: 28px;
    opacity: 0.6;
}

.hsc-progress-status-text {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.hsc-progress-bar-container {
    width: 100%;
    height: 16px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.hsc-progress-bar {
    height: 100%;
    border-radius: 8px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer removed - bar should be static after animation completes */

.hsc-progress-issues {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e6f7f7;
}

.hsc-progress-issue-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.hsc-progress-issue-item.critical {
    background: #fef2f2;
    color: #991b1b;
}

.hsc-progress-issue-item.warning {
    background: #fffbeb;
    color: #92400e;
}

.hsc-progress-issue-item:hover {
    transform: translateX(4px);
}

.hsc-progress-hint {
    margin-top: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e6f7f7 0%, #d4f1f4 100%);
    border-left: 4px solid #006466;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.6;
}

.hsc-progress-hint strong {
    color: #006466;
}

.hsc-progress-perfect {
    padding: 16px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 12px;
    border: 2px solid #86efac;
    text-align: center;
    font-size: 16px;
    color: #065f46;
    animation: celebratePulse 2s ease-in-out infinite;
}

@keyframes celebratePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.hsc-progress-perfect strong {
    color: #047857;
}

@media (max-width: 768px) {
    .hsc-progress-indicator {
        padding: 20px 16px;
    }
    
    .hsc-progress-score {
        font-size: 40px;
    }
    
    .hsc-progress-score-number {
        font-size: 48px;
    }
    
    .hsc-progress-score-total {
        font-size: 24px;
    }
    
    .hsc-progress-status-text {
        font-size: 16px;
    }
}

/* Share Results Section */
.hsc-share-section {
    margin-bottom: 32px;
}

.hsc-share-container {
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafa 100%);
    border: 2px solid #e6f7f7;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 100, 102, 0.08);
}

.hsc-share-header {
    font-size: 18px;
    color: #006466;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hsc-share-info {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.hsc-share-button {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #006466 0%, #00a8aa 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 100, 102, 0.2);
}

.hsc-share-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 100, 102, 0.3);
}

.hsc-share-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hsc-share-success {
    animation: slideDown 0.5s ease-out;
}

.hsc-share-success-header {
    font-size: 18px;
    color: #047857;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hsc-share-url-container {
    margin-bottom: 16px;
}

.hsc-share-url-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1fae5;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    background: #f0fdf4;
    color: #065f46;
    cursor: pointer;
}

.hsc-share-url-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.hsc-share-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.hsc-share-copy-btn,
.hsc-share-email-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.hsc-share-copy-btn {
    background: #006466;
    color: #ffffff;
}

.hsc-share-copy-btn:hover {
    background: #00a8aa;
    transform: translateY(-2px);
}

.hsc-share-email-btn {
    background: #f1f5f9;
    color: #006466;
}

.hsc-share-email-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.hsc-share-expiry {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    padding: 12px;
    background: #fef3c7;
    border-radius: 8px;
}

.hsc-share-expiry strong {
    color: #92400e;
}

@media (max-width: 768px) {
    .hsc-share-actions {
        flex-direction: column;
    }
}

/* Fix Button */
.hsc-fix-button {
    margin-left: 12px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.hsc-fix-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Fix Modal */
.hsc-fix-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
    padding: 20px;
}

.hsc-fix-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hsc-fix-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: 2px solid #e6f7f7;
}

.hsc-fix-modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #006466;
}

.hsc-fix-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    color: #64748b;
}

.hsc-fix-modal-close:hover {
    background: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

.hsc-fix-platform,
.hsc-fix-issue {
    padding: 16px 24px;
    font-size: 14px;
    line-height: 1.6;
}

.hsc-fix-platform {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    margin: 0;
}

.hsc-fix-platform strong {
    color: #065f46;
}

.hsc-fix-issue {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    margin: 0;
}

.hsc-fix-issue strong {
    color: #991b1b;
}

.hsc-fix-code-section {
    padding: 24px;
}

.hsc-fix-code-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.hsc-fix-code {
    background: #1e293b;
    color: #10b981;
    padding: 20px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    margin: 0 0 16px 0;
    font-family: 'Courier New', Courier, monospace;
}

.hsc-fix-copy-btn {
    width: 100%;
    padding: 12px 20px;
    background: #006466;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.hsc-fix-copy-btn:hover:not(:disabled) {
    background: #00a8aa;
    transform: translateY(-2px);
}

.hsc-fix-copy-btn:disabled {
    opacity: 0.7;
}

.hsc-fix-instructions {
    padding: 24px;
    background: #f8fafa;
    border-top: 2px solid #e6f7f7;
}

.hsc-fix-instructions h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #006466;
}

.hsc-fix-steps {
    margin: 0;
    padding-left: 24px;
}

.hsc-fix-steps li {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #1e293b;
}

.hsc-fix-steps li:last-child {
    margin-bottom: 0;
}

.hsc-fix-steps code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #1e293b;
}

.hsc-fix-steps strong {
    color: #006466;
}

@media (max-width: 768px) {
    .hsc-fix-modal-content {
        max-height: 95vh;
    }
    
    .hsc-fix-modal-header {
        padding: 20px 16px 12px 16px;
    }
    
    .hsc-fix-modal-header h3 {
        font-size: 18px;
    }
    
    .hsc-fix-platform,
    .hsc-fix-issue,
    .hsc-fix-code-section,
    .hsc-fix-instructions {
        padding: 16px;
    }
    
    .hsc-fix-code {
        font-size: 12px;
        padding: 16px;
    }
}

.hsc-tooltip-icon:hover {
    background: #006466;
    color: #ffffff;
    transform: scale(1.1);
}

.hsc-tooltip-popup {
    position: fixed;
    max-width: 400px;
    background: #ffffff;
    border: 2px solid #006466;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 100, 102, 0.2);
    z-index: 10000;
    animation: tooltipFadeIn 0.2s ease-out;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hsc-tooltip-title {
    font-size: 16px;
    font-weight: 600;
    color: #006466;
    margin-bottom: 12px;
    padding-right: 24px;
}

.hsc-tooltip-text {
    font-size: 14px;
    line-height: 1.6;
    color: #1e293b;
    margin-bottom: 12px;
}

.hsc-tooltip-example {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    background: #f8fafa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid #00a8aa;
}

.hsc-tooltip-example strong {
    color: #006466;
}

.hsc-tooltip-learn-more {
    display: inline-block;
    padding: 8px 16px;
    background: #006466;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.hsc-tooltip-learn-more:hover {
    background: #00a8aa;
    transform: translateX(3px);
}

.hsc-tooltip-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.hsc-tooltip-close:hover {
    background: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .hsc-tooltip-popup {
        max-width: calc(100vw - 40px);
        left: 20px !important;
        right: 20px;
    }
}

.hsc-btn-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #ffffff;
    border: 2px solid #d1e8e8;
    border-radius: 10px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hsc-btn-secondary:hover {
    border-color: #006466;
    background: #e6f7f7;
    transform: translateY(-2px);
}

/* Error State */
.hsc-error {
    text-align: center;
    padding: 60px 20px;
}

.hsc-error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
}

.hsc-error-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1e293b;
}

.hsc-error-message {
    font-size: 16px;
    color: #475569;
    margin: 0 0 32px 0;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hsc-check-result {
    animation: slideIn 0.5s ease-out backwards;
}

.hsc-check-result:nth-child(1) { animation-delay: 0.1s; }
.hsc-check-result:nth-child(2) { animation-delay: 0.2s; }
.hsc-check-result:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 768px) {
    .hsc-frontend-wrapper {
        padding: 32px 24px;
        margin: 20px;
    }
    
    .hsc-header {
        flex-direction: column;
        text-align: center;
    }
    
    .hsc-title-group {
        flex-direction: column;
    }
    
    .hsc-title {
        font-size: 24px;
    }
    
    .hsc-checks-config {
        grid-template-columns: 1fr;
    }
    
    .hsc-actions {
        flex-direction: column;
    }
    
    .hsc-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hsc-score-number {
        font-size: 48px;
    }
}

/* Print Styles */
@media print {
    .hsc-config-panel,
    .hsc-actions {
        display: none !important;
    }
    
    .hsc-frontend-wrapper {
        box-shadow: none;
        border: 1px solid #d1e8e8;
    }
}

/* ================================================
   SITEMAP ANALYSIS SECTION
   ================================================ */

.hsc-sitemap-analysis {
    margin: 24px 0;
    animation: slideIn 0.4s ease-out;
}

.hsc-sitemap-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0284c7;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: default;
}

.hsc-sitemap-header.collapsible {
    cursor: pointer;
    transition: all 0.3s;
}

.hsc-sitemap-header.collapsible:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-color: #0369a1;
}

.hsc-sitemap-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #0c4a6e;
}

.hsc-sitemap-icon {
    font-size: 24px;
}

.hsc-collapse-icon {
    margin-left: auto;
    font-size: 14px;
    color: #0284c7;
    transition: transform 0.3s;
}

.hsc-sitemap-summary {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #bae6fd;
    font-size: 14px;
    color: #075985;
}

.hsc-sitemap-content {
    background: white;
    border: 2px solid #e0f2fe;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 20px;
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.hsc-sitemap-content.collapsed {
    max-height: 0;
    padding: 0 20px;
    border: none;
}

.hsc-sitemap-info {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.hsc-sitemap-info strong {
    color: #1e293b;
}

/* No Sitemap Message */
.hsc-no-sitemap {
    background: #fef3c7;
    border-color: #f59e0b;
}

.hsc-no-sitemap-message,
.hsc-no-pattern-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fffbeb;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    margin-top: 16px;
}

.hsc-info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.hsc-info-text {
    font-size: 14px;
    line-height: 1.6;
}

.hsc-info-text strong {
    color: #92400e;
}

/* Coverage Section */
.hsc-coverage-section {
    margin: 20px 0;
}

.hsc-coverage-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.hsc-coverage-bar {
    margin-bottom: 16px;
}

.hsc-coverage-label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.hsc-coverage-track {
    background: #e2e8f0;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hsc-coverage-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease-out;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.hsc-coverage-fill.perfect {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.hsc-coverage-fill.good {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.hsc-coverage-fill.warning {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.hsc-coverage-fill.critical {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* Missing Section */
.hsc-missing-section {
    margin: 20px 0;
    padding: 16px;
    background: #fef2f2;
    border: 2px solid #fca5a5;
    border-radius: 10px;
}

.hsc-missing-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: #991b1b;
    margin: 0 0 12px 0;
}

.hsc-missing-item {
    padding: 8px 12px;
    margin: 6px 0;
    background: white;
    border-left: 4px solid #f87171;
    border-radius: 6px;
    font-size: 14px;
}

.hsc-missing-item strong {
    color: #991b1b;
    font-weight: 700;
}

/* Success Message */
.hsc-success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 10px;
    margin: 16px 0;
}

.hsc-success-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.hsc-success-text {
    font-size: 14px;
    line-height: 1.6;
}

.hsc-success-text strong {
    color: #166534;
}

/* Action Buttons */
.hsc-sitemap-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.hsc-btn-action {
    padding: 10px 20px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
}

.hsc-btn-action:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(2, 132, 199, 0.3);
}

.hsc-btn-action:active {
    transform: translateY(0);
}

/* Notification */
.hsc-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.hsc-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.hsc-notification-success {
    border-left: 4px solid #10b981;
    color: #065f46;
}

.hsc-notification-error {
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 768px) {
    .hsc-sitemap-actions {
        flex-direction: column;
    }
    
    .hsc-btn-action {
        width: 100%;
    }
    
    .hsc-notification {
        right: 15px;
        left: 15px;
        bottom: 15px;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sample URLs Display */
.hsc-sample-urls {
    margin: 20px 0;
    padding: 16px;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
}

.hsc-sample-urls h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.hsc-url-help {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

.hsc-url-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hsc-sample-url {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
}

.hsc-url-number {
    color: #64748b;
    font-weight: 600;
    flex-shrink: 0;
    width: 20px;
}

.hsc-url-code {
    font-family: 'Courier New', monospace;
    color: #0f172a;
    word-break: break-all;
    flex: 1;
}

.hsc-no-pattern-message strong {
    display: block;
    margin-bottom: 6px;
}

.hsc-no-pattern-message {
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .hsc-sample-url {
        flex-direction: column;
        gap: 4px;
    }
    
    .hsc-url-number {
        width: auto;
    }
}

/* ========================================
   HREFLANG STRUCTURE OPTIMIZER
   ======================================== */

.hsc-structure-optimizer {
    margin: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 3px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    animation: slideIn 0.5s ease-out;
}

.hsc-optimizer-header {
    background: white;
    padding: 24px;
    border-radius: 14px 14px 0 0;
}

.hsc-optimizer-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.hsc-optimizer-icon {
    font-size: 28px;
}

.hsc-optimizer-badge {
    padding: 4px 12px;
    background: #ef4444;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.hsc-optimizer-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-left: 40px;
}

.hsc-optimizer-content {
    background: white;
    padding: 24px;
    border-radius: 0 0 14px 14px;
}

/* Current Structure */
.hsc-current-structure {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 24px;
}

.hsc-current-structure h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.hsc-structure-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hsc-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hsc-stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hsc-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

/* Issues */
.hsc-optimizer-issues {
    margin-bottom: 32px;
}

.hsc-optimizer-issues h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.hsc-optimizer-issue {
    padding: 16px;
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.hsc-optimizer-issue.critical {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.hsc-issue-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.hsc-issue-message {
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.6;
}

.hsc-issue-details {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    margin-top: 8px;
}

.hsc-issue-examples {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.hsc-issue-examples strong {
    font-size: 13px;
    color: #1e293b;
    display: block;
    margin-bottom: 8px;
}

.hsc-issue-examples ul {
    margin: 0;
    padding-left: 20px;
}

.hsc-issue-examples li {
    font-size: 13px;
    color: #475569;
    margin-bottom: 4px;
}

.hsc-issue-examples code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

/* Options */
.hsc-optimizer-options {
    margin-bottom: 32px;
}

.hsc-optimizer-options h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.hsc-options-intro {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.hsc-option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hsc-option:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.hsc-option-header {
    padding: 16px 20px;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.hsc-option-header:hover {
    background: #f1f5f9;
}

.hsc-option-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.hsc-option-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hsc-option-count {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.hsc-option-reduction {
    padding: 4px 12px;
    background: #10b981;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.hsc-option-content {
    padding: 20px;
    max-height: 1000px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hsc-option-content.collapsed {
    max-height: 0;
    padding: 0 20px;
}

.hsc-option-description {
    font-size: 14px;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.6;
}

.hsc-option-preview {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}

.hsc-option-preview strong {
    font-size: 13px;
    color: #1e293b;
    display: block;
    margin-bottom: 12px;
}

.hsc-option-preview ul {
    margin: 0;
    padding-left: 20px;
}

.hsc-option-preview li {
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
    font-family: 'Courier New', monospace;
}

.hsc-option-preview code {
    color: #667eea;
    font-weight: 600;
}

.hsc-option-preview .hsc-more {
    color: #64748b;
    font-style: italic;
    font-family: inherit;
}

.hsc-option-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.hsc-btn-view-code,
.hsc-btn-copy-code {
    padding: 10px 20px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hsc-btn-view-code:hover,
.hsc-btn-copy-code:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.hsc-btn-copy-code {
    background: #667eea;
    color: white;
}

.hsc-btn-copy-code:hover {
    background: #5568d3;
}

.hsc-option-code {
    margin-top: 16px;
}

.hsc-option-code pre {
    margin: 0;
    padding: 16px;
    background: #1e293b;
    border-radius: 8px;
    overflow-x: auto;
    max-height: 400px;
}

.hsc-option-code code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #e2e8f0;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Help Section */
.hsc-optimizer-help {
    padding: 20px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 12px;
    border: 2px dashed #667eea;
}

.hsc-optimizer-help h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.hsc-optimizer-help ol {
    margin: 0;
    padding-left: 24px;
}

.hsc-optimizer-help li {
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.6;
}

.hsc-optimizer-help strong {
    color: #667eea;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .hsc-structure-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .hsc-option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .hsc-option-actions {
        flex-direction: column;
    }
    
    .hsc-btn-view-code,
    .hsc-btn-copy-code {
        width: 100%;
    }
}

/* ========================================
   MISSING LANGUAGES WARNING
   ======================================== */

.hsc-missing-languages-warning {
    margin: 24px 0 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 6px solid #f59e0b;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    animation: slideIn 0.5s ease-out;
}

.hsc-warning-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.hsc-warning-icon {
    font-size: 32px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hsc-warning-title {
    font-size: 20px;
    font-weight: 700;
    color: #92400e;
}

.hsc-warning-content p {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #78350f;
    line-height: 1.6;
}

.hsc-warning-content p:last-child {
    margin-bottom: 0;
}

.hsc-warning-content strong {
    color: #92400e;
    font-weight: 700;
}

.hsc-warning-missing {
    padding: 12px;
    background: rgba(146, 64, 14, 0.1);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
}

.hsc-warning-action {
    padding: 12px;
    background: rgba(16, 185, 129, 0.15);
    border-left: 4px solid #10b981;
    border-radius: 8px;
    font-size: 14px !important;
}

/* Expansion Option Styling */
.hsc-option-expansion {
    border-color: #10b981 !important;
}

.hsc-option-expansion:hover {
    border-color: #059669 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.hsc-option-expansion .hsc-option-header {
    background: linear-gradient(135deg, #d1fae515 0%, #a7f3d015 100%);
}

.hsc-option-expansion-badge {
    padding: 4px 12px;
    background: #10b981;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .hsc-missing-languages-warning {
        padding: 16px;
    }
    
    .hsc-warning-icon {
        font-size: 24px;
    }
    
    .hsc-warning-title {
        font-size: 16px;
    }
    
    .hsc-warning-content p {
        font-size: 14px;
    }
}
