/* Name Comparison Tool Styles — Theme: #FF6725 (orange), Prefix: nmc- */

/* Hero Section */
.nmc-search-hero {
    background: linear-gradient(135deg, #ff6725 0%, #ff8f5c 50%, #ffb88c 100%);
    border-radius: 20px 20px 0 0;
    padding: 30px 30px 25px;
    position: relative;
    overflow: hidden;
}
.nmc-search-hero-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}
.nmc-search-hero-decoration::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}
.nmc-search-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.nmc-search-hero-badge i {
    font-size: 11px;
}
.nmc-search-hero-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.nmc-search-hero-desc {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-bottom: 0;
}
.nmc-search-hero-desc a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.nmc-search-hero-desc a:hover {
    color: #fff;
    text-decoration-thickness: 2px;
}
.nmc-search-hero + .nmc-search-card {
    border-radius: 0 0 20px 20px;
    margin-top: -1px;
}

/* Search Card */
.nmc-search-card {
    position: relative;
}

/* Name Input Fields */
.nmc-name-input {
    width: 100%;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.nmc-name-input:focus {
    outline: none;
    border-color: #FF6725;
    box-shadow: 0 0 0 3px rgba(255,103,37,0.12);
}
.nmc-name-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}
.nmc-input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}
.nmc-input-label .nmc-doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff5f0;
    color: #FF6725;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.nmc-vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 0;
}
.nmc-vs-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff5f0;
    border: 2px solid #ffd4c2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #FF6725;
    letter-spacing: 0.5px;
}

/* Results Section */
#nmc-results-section {
    display: none;
}
#nmc-results-section.visible {
    display: block;
}

/* Score Circle */
.nmc-score-container {
    text-align: center;
    padding: 30px 20px;
}
.nmc-score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 16px;
}
.nmc-score-circle::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid currentColor;
    opacity: 0.15;
}
.nmc-score-value {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}
.nmc-score-percent {
    font-size: 18px;
    font-weight: 700;
}
.nmc-score-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 4px;
}
.nmc-confidence-text {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.nmc-confidence-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Score color variants */
.nmc-score-high .nmc-score-circle {
    background: #ecfdf5;
    color: #059669;
}
.nmc-score-high .nmc-confidence-text { color: #059669; }

.nmc-score-probable .nmc-score-circle {
    background: #fefce8;
    color: #ca8a04;
}
.nmc-score-probable .nmc-confidence-text { color: #ca8a04; }

.nmc-score-possible .nmc-score-circle {
    background: #fff7ed;
    color: #ea580c;
}
.nmc-score-possible .nmc-confidence-text { color: #ea580c; }

.nmc-score-unlikely .nmc-score-circle {
    background: #fef2f2;
    color: #dc2626;
}
.nmc-score-unlikely .nmc-confidence-text { color: #dc2626; }

/* Analysis Details */
.nmc-analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
}
.nmc-analysis-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
}
.nmc-analysis-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.nmc-analysis-item-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nmc-analysis-item-value {
    font-size: 14px;
    font-weight: 700;
}
.nmc-analysis-item-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}
.nmc-analysis-item-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Bar colors */
.nmc-bar-green { background: #10b981; }
.nmc-bar-yellow { background: #f59e0b; }
.nmc-bar-orange { background: #f97316; }
.nmc-bar-red { background: #ef4444; }

/* Token Comparison */
.nmc-tokens-section {
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
}
.nmc-tokens-title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
}
.nmc-token-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}
.nmc-token-row:last-child {
    margin-bottom: 0;
}
.nmc-token-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}
.nmc-token-match {
    background: #ecfdf5;
    color: #059669;
}
.nmc-token-partial {
    background: #fefce8;
    color: #ca8a04;
}
.nmc-token-missing {
    background: #fef2f2;
    color: #dc2626;
}
.nmc-token-text {
    color: #374151;
    font-weight: 500;
}
.nmc-token-text strong {
    font-weight: 700;
}
.nmc-token-detail {
    color: #9ca3af;
    font-size: 12px;
    margin-left: auto;
}

/* Issues Found Section */
.nmc-issues-section {
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
}
.nmc-issues-title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
}
.nmc-issue-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}
.nmc-issue-item:last-child {
    margin-bottom: 0;
}
.nmc-issue-item i {
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}
.nmc-no-issues {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 13px;
    color: #065f46;
}
.nmc-no-issues i {
    color: #10b981;
    flex-shrink: 0;
}

/* Sample Names Quick Fill */
.nmc-samples-section {
    margin-top: 16px;
}
.nmc-samples-title {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.nmc-sample-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nmc-sample-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.nmc-sample-chip:hover {
    background: #fff5f0;
    border-color: #ffd4c2;
    color: #FF6725;
}
.nmc-sample-chip i {
    font-size: 10px;
    opacity: 0.5;
}

/* Reference Table */
.nmc-ref-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    font-size: 14px;
    margin: 20px 0;
}
.nmc-ref-table thead th {
    background: #FF6725;
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}
.nmc-ref-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.nmc-ref-table tbody tr:nth-child(even) {
    background: #fffaf7;
}
.nmc-ref-table tbody tr:hover {
    background: #fff5f0;
}
.nmc-ref-table tbody tr:last-child td {
    border-bottom: none;
}
.nmc-ref-table code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #374151;
}

/* FAQ Section */
.nmc-faq-section {
    margin-top: 30px;
}
.nmc-faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.nmc-faq-question {
    padding: 15px 20px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    transition: background 0.2s;
}
.nmc-faq-question:hover {
    background: #fff5f0;
}
.nmc-faq-question .faq-icon {
    transition: transform 0.3s;
    font-size: 12px;
    color: #FF6725;
}
.nmc-faq-question.open .faq-icon {
    transform: rotate(180deg);
}
.nmc-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
}
.nmc-faq-answer.open {
    padding: 15px 20px;
    max-height: 600px;
}

/* Article Section */
#tool-article h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}
#tool-article h3 {
    font-size: 17px;
    font-weight: 600;
    color: #374151;
    margin-top: 25px;
    margin-bottom: 10px;
}
#tool-article p {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 12px;
}
#tool-article ul, #tool-article ol {
    padding-left: 22px;
    margin-bottom: 15px;
}
#tool-article li {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 8px;
}
#tool-article a {
    color: #FF6725;
    font-weight: 500;
    text-decoration: none;
}
#tool-article a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .nmc-search-hero {
        padding: 22px 20px 18px;
        border-radius: 16px 16px 0 0;
    }
    .nmc-search-hero-title {
        font-size: 1.2rem;
    }
    .nmc-analysis-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    .nmc-score-circle {
        width: 120px;
        height: 120px;
    }
    .nmc-score-value {
        font-size: 34px;
    }
    .nmc-score-percent {
        font-size: 16px;
    }
    .nmc-tokens-section,
    .nmc-issues-section {
        padding: 15px;
    }
    .nmc-name-input {
        font-size: 15px;
        padding: 12px 14px;
    }
}
@media (max-width: 480px) {
    .nmc-sample-chips {
        gap: 6px;
    }
    .nmc-sample-chip {
        padding: 4px 10px;
        font-size: 11px;
    }
    .nmc-token-detail {
        display: none;
    }
}
