/* Tool-specific styles only - base styles are in tool-layout.css */

.tool-main {
    margin-top: 60px;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-btn {
    padding: 8px 16px;
    background: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
}

.category-btn:hover {
    background: #374151;
    color: #e5e7eb;
}

.category-btn.category-active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.results-count {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.status-codes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-card {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 150ms ease;
}

.status-card:hover {
    border-color: #4b5563;
}

.status-card.expanded {
    border-color: #3b82f6;
}

.status-card-header {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    gap: 16px;
}

.status-code {
    font-size: 18px;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    min-width: 48px;
}

.status-code.info { color: #60a5fa; }

.status-code.success { color: #34d399; }

.status-code.redirect { color: #fbbf24; }

.status-code.client-error { color: #f97316; }

.status-code.server-error { color: #f87171; }

.status-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #e5e7eb;
}

.status-description-short {
    flex: 2;
    font-size: 14px;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expand-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    transition: transform 150ms ease;
    flex-shrink: 0;
}

.status-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.copy-code-btn {
    padding: 6px 12px;
    background: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 4px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
    flex-shrink: 0;
}

.copy-code-btn:hover {
    background: #374151;
    color: #e5e7eb;
}

.copy-code-btn.copied {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
}

.status-card-details {
    display: none;
    padding: 0 16px 16px 16px;
    border-top: 1px solid #374151;
    margin-top: 0;
}

.status-card.expanded .status-card-details {
    display: block;
}

.detail-section {
    margin-top: 16px;
}

.detail-section:first-child {
    margin-top: 16px;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.detail-content {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.6;
}

.detail-content ul {
    margin: 0;
    padding-left: 20px;
}

.detail-content li {
    margin-bottom: 4px;
}

.detail-content code {
    background: #1a1a1a;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 13px;
    color: #fbbf24;
}

.example-box {
    background: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 12px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 13px;
    color: #d1d5db;
    overflow-x: auto;
}

.example-box .http-method {
    color: #34d399;
}

.example-box .http-status {
    color: #60a5fa;
}

.example-box .http-header {
    color: #fbbf24;
}

.category-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-badge.info {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.category-badge.success {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.category-badge.redirect {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.category-badge.client-error {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.category-badge.server-error {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.no-results {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.no-results-title {
    font-size: 16px;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 8px;
}

.no-results-hint {
    font-size: 14px;
}

@media (max-width: 768px) {
    .category-filters {
        gap: 6px;
    }

    .category-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .status-card-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .status-code {
        font-size: 16px;
    }

    .status-name {
        font-size: 14px;
        flex: none;
        width: calc(100% - 80px);
    }

    .status-description-short {
        display: none;
    }

    .copy-code-btn {
        order: -1;
        margin-left: auto;
    }
}

.status-card-header:focus {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
}

.status-card-header:focus:not(:focus-visible) {
    outline: none;
}

.highlight {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    padding: 0 2px;
    border-radius: 2px;
}