/**
 * NovaSearch — novasearch.css v1.0.4
 */

.novasearch-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 30px 20px 40px;
}

/* Header */
.novasearch-header {
    text-align: center;
    margin-bottom: 24px;
}

.novasearch-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--nt-dark, #1a1a1a);
}

.novasearch-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

/* Search box */
.novasearch-box {
    position: relative;
    margin-bottom: 14px;
}

.novasearch-box input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--nt-green, #096e09);
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    background: #fff;
}

.novasearch-box input:focus {
    box-shadow: 0 0 0 3px rgba(9, 110, 9, 0.15);
}

.novasearch-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

/* Tabs */
.novasearch-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.novasearch-tab {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
}

.novasearch-tab:hover {
    border-color: var(--nt-green, #096e09);
    color: var(--nt-green, #096e09);
}

.novasearch-tab.active {
    background: var(--nt-green, #096e09);
    border-color: var(--nt-green, #096e09);
    color: #fff;
}

/* Results */
.novasearch-results {
    min-height: 120px;
}

.novasearch-placeholder,
.novasearch-loading,
.novasearch-no-results {
    text-align: center;
    padding: 30px 15px;
    color: #6b7280;
    font-style: italic;
}

/* Result item */
.novasearch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.novasearch-item:hover {
    border-color: var(--nt-green, #096e09);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.novasearch-item-thumb {
    width: 56px;
    height: 32px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.novasearch-item-thumb-round {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.novasearch-item-info {
    flex: 1;
    min-width: 0;
}

.novasearch-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.novasearch-item:hover .novasearch-item-title {
    color: var(--nt-green, #096e09);
}

.novasearch-item-type {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 480px) {
    .novasearch-page {
        padding: 20px 16px 30px;
    }

    .novasearch-box input {
        padding: 12px 40px 12px 14px;
        font-size: 0.95rem;
    }

    .novasearch-tab {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    .novasearch-item {
        gap: 10px;
        padding: 8px 10px;
    }

    .novasearch-item-thumb {
        width: 48px;
        height: 27px;
    }

    .novasearch-item-thumb-round {
        width: 36px;
        height: 36px;
    }
}
