/**
 * Trademark Center Search - Styles
 */

.tc-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tc-search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tc-search-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.tc-search-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

/* Search Form */
.tc-search-form {
    margin-bottom: 2rem;
}

.tc-search-input-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tc-search-input {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.tc-search-input:focus {
    border-color: #2563eb;
}

.tc-search-button {
    padding: 0.875rem 2rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tc-search-button:hover {
    background: #1d4ed8;
}

/* Filters */
.tc-search-filters {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tc-search-filters label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #6b7280;
}

.tc-search-filters input[type="radio"] {
    cursor: pointer;
    accent-color: #2563eb;
}

/* Loading */
.tc-loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: #6b7280;
}

.tc-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results */
.tc-results-count {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.tc-search-results {
    display: grid;
    gap: 1.5rem;
}

.tc-result-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tc-result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tc-result-image-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.tc-result-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tc-result-no-image {
    color: #9ca3af;
    font-size: 0.875rem;
    text-align: center;
}

.tc-result-content {
    flex: 1;
}

.tc-result-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.tc-result-owner {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
}

.tc-result-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.tc-result-status,
.tc-result-serial,
.tc-result-reg {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.375rem;
    background: #f3f4f6;
    color: #4b5563;
}

.tc-result-status.status-registered {
    background: #d1fae5;
    color: #065f46;
}

.tc-result-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.tc-result-status.status-inactive,
.tc-result-status.status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.tc-result-date {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
}

.tc-result-goods {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.tc-view-details-btn {
    padding: 0.5rem 1.25rem;
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tc-view-details-btn:hover {
    background: #2563eb;
    color: white;
}

/* Pagination */
.tc-pagination {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.tc-pagination-inner {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tc-page-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tc-page-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.tc-page-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Error & No Results */
.tc-error,
.tc-no-results {
    padding: 2rem;
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.tc-error {
    color: #dc2626;
    background: #fee2e2;
}

/* Responsive */
@media (max-width: 768px) {
    .tc-search-input-wrapper {
        flex-direction: column;
    }
    
    .tc-result-card {
        flex-direction: column;
    }
    
    .tc-result-image-wrapper {
        width: 100%;
        height: 150px;
    }
    
    .tc-search-filters {
        gap: 1rem;
    }
}

